Re:Forest, a multi-syntax functional language that compiles ...
by nemaar on Friday September 14, 2018 @12:39AM
(#17984704)
Hi, I am working on something similar, it's nowhere near usable but I hope that a proof of concept version could be ready this year.
My variant is focused on visual programming with various representations.
I will definitely read your docs. I am very interested in the models you have come up with.
The main idea is to represent languages as a graph of 'language constructs' and individual programs as paths through some language graph. That path is the 'model' which an editor or compiler/interpreter would operate on—but in the case of the editor, since the program model has no connection to syntax, you can configure how it's rendered on a per-user basis (or use it to experiment with new language UI concepts, etc.).
Here's a write-up with illustrations: http://westoncb.blogspot.com/2015/06/how-to-make-view-indepe...
I've had this on the back burner for a while now, waiting for the write moment to try building out a proof-of-concept version—but if someone could point out some kind of critical flaw in it and prevent me from wasting so much time, that'd be awesome :)