uuagc-constant-folding

Example of a constant folding transformation implemented with uuagc.

GPL-3.0 License

Stars
3

uuagc-constant-folding

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.

How to run

$ git clone https://github.com/noughtmare/uuagc-constant-folding.git
$ cd uuagc-constant-folding
$ cabal run

UUAGC manual

http://www.cs.uu.nl/docs/vakken/mapa/downloads/agmanual.pdf (also saved in the wayback machine)