Add support for access operator

This commit is contained in:
Bartłomiej Pluta
2019-07-03 00:38:08 +02:00
parent 7b176b66c8
commit 8313d2dcfd
6 changed files with 143 additions and 42 deletions

View File

@@ -12,9 +12,9 @@ if __name__ == "__main__":
env = createEnvironment()
tokens = tokenize(lines)
tokens = tokenize(lines)
ast = parse(tokens)
ast = parse(tokens)
evaluate(ast, env)
except SyntaxException as e:
@@ -23,3 +23,4 @@ if __name__ == "__main__":
print(e.msg)
except KeyboardInterrupt:
print("Program interrupted")