Skip to content

Instantly share code, notes, and snippets.

@ikeikeikeike
Created March 26, 2012 17:35
Show Gist options
  • Save ikeikeikeike/2207148 to your computer and use it in GitHub Desktop.
Save ikeikeikeike/2207148 to your computer and use it in GitHub Desktop.
run parser.py
$ py parser.py
Discard(Const('test'))
----------
Discard(Mul((Const(Decimal('1')), Sub((Const(Decimal('2')), Div((Const(Decimal('1')), Const(Decimal('3')))))))))
----------
Assign([AssName('name', 'OP_ASSIGN')], Add((Const(Decimal('1')), Add((Const(Decimal('2')), Const(Decimal('10')))))))
----------
Assign([AssName('name', 'OP_ASSIGN')], Const('name'))
----------
Assign([AssName('name', 'OP_ASSIGN')], Const('(`\xd0\x94\xc2\xb4)\xef\xbe\x89'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment