🐐 TYPVS

This commit is contained in:
2026-04-21 21:09:59 +02:00
parent 693054491f
commit 78b1dd7667
7 changed files with 50 additions and 1 deletions

View File

@@ -1121,6 +1121,13 @@ class BuiltIn(Node):
case "EVERRO":
print("\033[2J\033[H", end="", flush=True)
return vtable, ValNul()
case "TYPVS":
type_map = {
ValInt: "NVMERVS", ValStr: "LITTERA", ValBool: "VERAX",
ValList: "CATALOGVS", ValFrac: "FRACTIO", ValDict: "TABVLA",
ValFunc: "FVNCTIO", ValNul: "NVLLVS",
}
return vtable, ValStr(type_map[type(params[0])])
case _:
raise NotImplementedError(self.builtin)