Skip to content

Instantly share code, notes, and snippets.

@syoyo
Created October 5, 2008 08:49
Show Gist options
  • Save syoyo/14864 to your computer and use it in GitHub Desktop.
Save syoyo/14864 to your computer and use it in GitHub Desktop.
$ 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment