h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
311 stars 23 forks source link

Feature Request for REPL #52

Open zenon opened 4 years ago

zenon commented 4 years ago

The REPL currently assumes that a complete expression has been entered when you press ENTER, or input a line feed; and it gives an error otherwise. This prohibits me from pasting multi line expressions (as I have them in my files) into the REPL, e.g.

{ 1 :uno 2 :due 3 :tres 4 :quattro }

In the REPL of Julia, e.g., I can enter an expression line by line, it recognizes when the expression is done. Navigation in the REPL (cursor key UP) brings me back to the complete expression, so I can change it as a whole.

For min this would need the REPL to recognise quotations and dictionaries, and nested of the same.

This would be cool.

h3rald commented 4 years ago

Nice. And agreed, it's needed, but it's potentially a very big feature for nimline, the simple readline/linenoise alternative I am using for the min REPL.

See h3rald/nimline#12