🐐 ERVMPE builtin case removed

This commit is contained in:
2026-05-30 18:07:39 +02:00
parent 19f8cb5232
commit 1d6a93be32
3 changed files with 2 additions and 8 deletions
-3
View File
@@ -1466,9 +1466,6 @@ class BuiltIn(Node):
) )
print(print_string) print(print_string)
return vtable, ValStr(print_string) return vtable, ValStr(print_string)
case "ERVMPE":
vtable["#break"] = True
return vtable, ValNul()
case "FORTVITVS_NVMERVS": case "FORTVITVS_NVMERVS":
if "FORS" not in vtable["#modules"]: if "FORS" not in vtable["#modules"]:
raise CentvrionError("Cannot use 'FORTVITVS_NVMERVS' without module 'FORS'") raise CentvrionError("Cannot use 'FORTVITVS_NVMERVS' without module 'FORS'")
-5
View File
@@ -310,11 +310,6 @@ def _emit_builtin(node, ctx):
else: else:
lines.append(f"CentValue {tmp} = cent_senatus(NULL, 0);") lines.append(f"CentValue {tmp} = cent_senatus(NULL, 0);")
case "ERVMPE":
# break as expression (side-effecting; result is unused)
lines.append("break;")
lines.append(f"CentValue {tmp} = cent_null();")
case "CLAVES": case "CLAVES":
lines.append(f"CentValue {tmp} = cent_dict_keys({param_vars[0]});") lines.append(f"CentValue {tmp} = cent_dict_keys({param_vars[0]});")
+2
View File
@@ -107,6 +107,8 @@ error_tests = [
("SI [] TVNC { DESIGNA r VT I }", CentvrionError), # non-bool SI condition: empty list ("SI [] TVNC { DESIGNA r VT I }", CentvrionError), # non-bool SI condition: empty list
("DESIGNA x VT I\nDVM x FAC {\nDESIGNA x VT x + I\n}", CentvrionError), # non-bool DVM condition: int ("DESIGNA x VT I\nDVM x FAC {\nDESIGNA x VT x + I\n}", CentvrionError), # non-bool DVM condition: int
("NON I", CentvrionError), # NON on integer ("NON I", CentvrionError), # NON on integer
("ERVMPE()", SyntaxError), # ERVMPE is statement-only
("CONTINVA()", SyntaxError), # CONTINVA is statement-only
("DESIGNA z VT I - I\nNON z", CentvrionError), # NON on zero integer ("DESIGNA z VT I - I\nNON z", CentvrionError), # NON on zero integer
('NON "hello"', CentvrionError), # NON on string ('NON "hello"', CentvrionError), # NON on string
("DESIGNA a, b VT III", CentvrionError), # destructure non-array ("DESIGNA a, b VT III", CentvrionError), # destructure non-array