tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

buffer input on syntaxerror #17

Closed tonylukasavage closed 10 years ago

tonylukasavage commented 10 years ago

When a dev is typing a complex command like a function or loop, they'll probably want to use multiple lines. In that case, triple currently will just choke on the SyntaxError. The SyntaxError should be caught and it should be assumed that the developer has more to type. If this is not the case, the developer will likely realize they made a mistake and can either adjust it or break the current command and continue.

tonylukasavage commented 10 years ago

To alleviate the need to eval on the app and send back the results, I'm going to use acorn to verify the syntax from the server.