tonylukasavage / triple

REPL for Titanium
MIT License
96 stars 21 forks source link

Support multi-line code #14

Closed tonylukasavage closed 10 years ago

tonylukasavage commented 10 years ago

Currently, triple does not support more than one like of code at a time. For example, the following would end in a parse error:

> for (var i = 0; i < 10; i++) {
SyntaxError: Parse error

In the node.js repl, it recognizes that the statement is not yet complete and while allow you to keep typing on the next line, prefixing it with an ellipsis, like this:

> for (var i = 0; i < 10; i++) {
... }

The same behavior should be implemented for triple.

tonylukasavage commented 10 years ago

This was a duplicate and fixed in #17