(no title)
int0x80 | 1 year ago
Additonally, is essential to provide an API to transform trees or even construct new ones using immutable ASTs like implemented in many compilers eg .NET Roslin or typescript TSC.
int0x80 | 1 year ago
Additonally, is essential to provide an API to transform trees or even construct new ones using immutable ASTs like implemented in many compilers eg .NET Roslin or typescript TSC.
Rusky|1 year ago
It only introduces parent pointers in a convenience wrapper layer, built on-demand as you traverse the tree - you could equivalently just pass the parent down as an argument to your tree walking functions.
(The ownership problem of parent pointers also goes away when you use the arena allocation approach that the post arrives at.)