Enable extending existing types to add custom methods

This commit is contained in:
Bartłomiej Pluta
2019-07-06 00:36:54 +02:00
parent f11b3b67f2
commit bf40c5130c
8 changed files with 86 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ def main():
lines = [line.rstrip('\n') for line in source.readlines()]
tokens = tokenize(lines)
print(tokens)
ast = Program.parse(tokens)
ast.node.print()