Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ python main.py
- input = (4+3)*7+9
- AST = [['add', ['mul', ['add', ['id', '4'], ['id', '3']], ['id', '7']], ['id', '9']]]
- eval = 58
- input = (4+3)*a
- (4+3)*a
- ^
- Expected end of text (at char 5), (line:1, col:6)
Add Comment
Please, Sign In to add comment