Catching more tokens

This commit is contained in:
2022-12-03 02:20:50 +01:00
parent 5296396107
commit 256424f646
4 changed files with 24 additions and 13 deletions

View File

@ -9,7 +9,8 @@ if __name__ == "__main__":
expr = input('> ')
if expr not in EXIT_CONDITION:
try:
parse_expression(expr)
result = parse_expression(expr)
print(result)
except Exception as e:
print(f"[red]Failed:[/red] {e}")
else: