How have I never heard of this language before?
Very much a work in progress, but I hope to soon be able to provide the same minimal interpreter in Java/C/Common Lisp, each using the unique strengths of the host language.
> Rather, I’m after a particular kind of software hygge: Loads instantly, doesn’t crash, and fits nicely in the hand.
The author is talking about the language, but this is what parser combinators feel like to me, and could be another option. Tarsec is probably the most fun side project I have built in a while.
That sounds difficult.
I'm trying to think through how that would work, you would have to map language elements to geometry elements and be able to seamlessly update both on any changes. Plus be able to insert/delete elements on both the text and geometry sides including during renamings and reorderings of elemental lists.
I suppose one could treat the geometry elements as the 'model' (to use MVC parlance) and the 'view' could either be source code or UI elements generated on the fly. Maybe add some 'non-display' attributes for comments and whatnot for pretty printing the source code.
I'm sure someone much smarter than me figured out how to do this kind of thing back in the '70s.
norir•8mo ago
The error reporting function is not easy to write correctly, but a decent one can be written in fewer than 100 lines of lua (and I am certain it can be done in all but the least expressive languages in under 200).
thrance•8mo ago