mirror of
https://github.com/lloeki/wasp.git
synced 2025-12-06 02:34:39 +01:00
trivial REPL
This commit is contained in:
parent
992f774baa
commit
5819dba46a
1 changed files with 8 additions and 0 deletions
8
repl.py
Normal file
8
repl.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import wasp.parser as parser
|
||||
|
||||
line = raw_input(">> ")
|
||||
while line != "":
|
||||
tree = parser.parse(line)
|
||||
print "^^", tree
|
||||
#tree.eval()
|
||||
line = raw_input(">> ")
|
||||
Loading…
Add table
Add a link
Reference in a new issue