chris-martin / bricks

Bricks is a lazy functional language based on Nix.
https://hackage.haskell.org/package/bricks
6 stars 1 forks source link

Define both concrete and abstract syntax trees #20

Open chris-martin opened 6 years ago

chris-martin commented 6 years ago

Right now the Expression type represents an abstract syntax tree (with a small bit of concrete conflated into it) - really what we want is to be able to parse into a concrete syntax tree and then simplify that into an AST. The concrete tree is what will let the autoformatter preserve some formatting.