1#!/usr/bin/env python
2
3import sys
4import expression
5
6def run (exp):
7    tokens = exp.split()
8    expparser = expression.ExpParser(tokens)
9    expparser.build()
10    expparser.dumpTree()
11
12def main ():
13    run("6 + 34")
14    run("6 + 34 - 10")
15    run("6 + 34 - 10 + 200")
16    run("6 + 34 - 10 * 200")
17    run("6 + 34 - 10 * 200 + 18")
18    run("6 + 34 - 10 * 200 + 18 / 2")
19
20    run("6 * ( ( 10 + 2 ) - 10 ) * 33")
21
22if __name__ == '__main__':
23    main()
24