- Read crafting interpreters implement in Zig/Go
- Do lambda lift alpha etc in Eyg
- pages in standard Eyg interpreter etc in Go/Nim/Zig
need flat tree to implement in EYG without recursive data structures.
- https://en.wikipedia.org/wiki/Galois_group
- Flatten trees https://www.classes.cs.uchicago.edu/archive/2016/winter/32001-1/papers/flatten-tree.pdf
- Euler tour technique
- Building a hierarchical tree from a flat list: an easy-to-understand solution & visualisation https://medium.com/@lizhuohang.selina/building-a-hierarchical-tree-from-a-flat-list-an-easy-to-understand-solution-visualisation-19cb24bdfa33
- fAST: Flattening Abstract Syntax Trees for Efficiency https://ieeexplore.ieee.org/document/8802796
- Adventures in data-oriented design – Part 2: Hierarchical data https://blog.molecular-matters.com/2013/02/22/adventures-in-data-oriented-design-part-2-hierarchical-data/
there is probably also a standard combination of zipper and datalog query for available actions. maybe even query to ui elemens that can be manipulated