tdp2110 / crafting-interpreters-rs

Crafting Interpreters in Rust
Boost Software License 1.0
259 stars 12 forks source link

don't require semicolon in repl #17

Closed tdp2110 closed 3 years ago

tdp2110 commented 3 years ago

for example, in the repl, we get barked at for writing

>>> print "hi"

Parse error: Expected token Semicolon, but found token Eof at line=1,col=9: Expected ; after value

it wants us to write

>>> print "hi";
'hi'

It should be able to figure this out for itself and correct.