|
|
|
|
|
by pbiggar
2335 days ago
|
|
This is kinda how the compiler-stuff in Dark is written. Everything - the editor, semantic analysis, version control, execution engine, everything - all use the same data structures (the same abstract syntax tree). We use functional data structure everywhere and we do functional updates within the AST all the time; that's even how text entry in the editor updates the program. |
|
Is that data structure suitable for all those purposes though?
How do you do optimisations like GVN on an AS->T<-?