It's surprisingly fiddly to parse unfinished multiline expressions in a REPL.
In Garden, my toy language, the parser distinguishes 'incomplete' from other others, so I can keep appending text and re-parsing until something useful comes out.
miniblog.
Related Posts
Blogged: Devlog 2: The Importance of Sandboxing
Exploring PL opportunities when you have a first-class sandbox.
I've added an eval button to the website of my programming language!
It's a been a lot of work to lock down appropriately. It still needs some UI polish but it's so nice to be able to try snippets immediately.
Blogging about my programming language project: choosing the basic syntax!


