🐐 NVMERVS

This commit is contained in:
2026-04-22 12:24:11 +02:00
parent 3af2115e7d
commit 791ed2491e
10 changed files with 65 additions and 10 deletions

View File

@@ -1185,6 +1185,13 @@ class BuiltIn(Node):
raise CentvrionError(f"Invalid numeral input: {raw!r}")
case "AVDI":
return vtable, ValStr(input())
case "NVMERVS":
if len(params) != 1:
raise CentvrionError("NVMERVS takes exactly I argument")
val = params[0]
if not isinstance(val, ValStr):
raise CentvrionError(f"NVMERVS expects a string, got {type(val).__name__}")
return vtable, ValInt(num_to_int(val.value(), magnvm, svbnvlla))
case "DIC":
print_string = ' '.join(
make_string(i, magnvm, svbnvlla) for i in params