Execute input in the REPL.

Guesses whether the input is an expression or statement and handles it
appropriately. Finally, after over a year, the Wren REPL automatically
prints "3" if you type in "1 + 2". \o/
This commit is contained in:
Bob Nystrom
2016-05-20 23:03:05 -07:00
parent 689cd42269
commit bc7f1de758
9 changed files with 347 additions and 177 deletions

View File

@ -0,0 +1,5 @@
var foo =
123
System.print(foo) // expect: 123