Re:So You Want to Write Your Own Language (2014)
by hashkb on Friday May 19, 2017 @10:59AM
(#14376283)
Except for editing lisp, which manipulating the AST directly in code.
[ Parent
| on HN ]
Re:So You Want to Write Your Own Language (2014)
by aninhumer on Friday May 19, 2017 @11:23AM
(#14376555)
Not really. The AST in lisps is much more obvious, but you're still editing a text serialisation format, and any features that operate on the AST itself are provided by the IDE on top of that.
Re:So You Want to Write Your Own Language (2014)
by TeMPOraL on Friday May 19, 2017 @07:07PM
(#14379995)
There is no "concrete" AST that's not a "serialization format". A binary AST is also a serialization of AST.
Lisp source is pretty much as close to AST as you can get while still staying in text-land. That said, experienced Lisp developers often use tools like Paredit mode that let them navigate and edit the code in terms of tree nodes, not characters.