Re:Flattening ASTs (and Other Compiler Data Structures)
by vanderZwan on Saturday January 11, 2025 @01:36PM
(#42667948)
> All flat, just parens.
So not flat then. Prefix is not postfix. Forth, and most concatenative languages, are much closer to actually bein, flat.
Lisp is trivial to flatten, but that's not the same thing.
Some of my compilers export the AST as lisp trees. Much smaller and more readable than json, and it can be executed. Uniform like bricks