🐐 NVMERVS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user