Example of a constant folding transformation implemented with uuagc.
I've written this to show an alternative way of implementing the traversal from https://www.michaelpj.com/blog/2020/08/02/lenses-for-tree-traversals.html, which is discussed at this reddit thread.
This repository is meant for people who want to try out attribute grammars for themselves.
$ git clone https://github.com/noughtmare/uuagc-constant-folding.git
$ cd uuagc-constant-folding
$ cabal run
http://www.cs.uu.nl/docs/vakken/mapa/downloads/agmanual.pdf
(also saved in the wayback machine)