mirror of
https://github.com/lloeki/wasp.git
synced 2025-12-06 10:44:39 +01:00
10 lines
222 B
Python
10 lines
222 B
Python
import wasp.parser as parser
|
|
|
|
line = raw_input(">> ")
|
|
while line != "":
|
|
ptree = parser.parse(line)
|
|
print " ^ %s" % ptree
|
|
ast = ptree.ast()
|
|
print " ‡ %r" % ast
|
|
#tree.eval()
|
|
line = raw_input(">> ")
|