Add support for creating custom functions

This commit is contained in:
Bartłomiej Pluta
2019-07-01 10:55:54 +02:00
parent 611317c890
commit ebd3d1f275
6 changed files with 238 additions and 80 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: