Skip to content

Example of a constant folding transformation implemented with uuagc.

License

Notifications You must be signed in to change notification settings

noughtmare/uuagc-constant-folding

Repository files navigation

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)

About

Example of a constant folding transformation implemented with uuagc.

Topics

Resources

License

Stars

Watchers

Forks