This commit is contained in:
2024-02-23 16:00:19 +01:00
parent 1a793bebe7
commit 6234f3fb50
11 changed files with 111 additions and 26 deletions

View File

@ -25,13 +25,18 @@ BUILTIN_TOKENS = [("BUILTIN", i+"<") for i in [
"print",
"input",
"random",
"len"
"len",
"int",
"str",
"flo"
]]
DATA_TOKENS = [
("DATA_STRING", r"\'.*?\'"),
("DATA_INT", r"\d+"),
("DATA_FLOAT", r"\d+(\.\d+)")
("DATA_FLOAT", r"\d+(\.\d+)"),
("DATA_BOOL", "true"),
("DATA_BOOL", "false")
]
SYMBOL_TOKENS = [