feat(furvm): introduce slice type

Refs: #63
This commit is contained in:
2026-09-03 23:55:31 +02:00
parent 977b22d8f5
commit fe37bf8058
4 changed files with 112 additions and 19 deletions
+8
View File
@@ -30,6 +30,14 @@ static void print_thing(const furvm::thing<>& thing) {
}
std::cout << " }";
break;
case thing_type::Slice:
std::cout << "Slice [" << thing.length() << "] { ";
for (thing_type::u64 i = 0; i < thing.length(); ++i) {
if (i > 0) std::cout << ", ";
print_thing(thing.at(i));
}
std::cout << " }";
break;
default: std::cerr << "{Type not recognized}";
}
}