molikto’s weblog

Middle Grounds between Structural Editing and Text Editing

For editors of programming languages, where user manipulate some textual representation of the AST, users usually have some level of freedom to break out what is considered valid AST, and we list some of them from the most strict ones to least:

I think editors more strict (including) than MPS has their problems (which I will not elaborate here).

Let’s consider what’s between MPS and Eco, remembering Eco’s idea is based on incremental lexing & parsing:

This has the advantage:

Also this allows a much more text-editor like UX: actually it is just a rich text editor.