Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noughtmare/uuagc-constant-folding

Example of a constant folding transformation implemented with uuagc.
https://github.com/noughtmare/uuagc-constant-folding

ast-transformations attribute-grammars haskell

Last synced: 23 days ago
JSON representation

Example of a constant folding transformation implemented with uuagc.

Awesome Lists containing this project

README

        

# 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](https://old.reddit.com/r/haskell/comments/i2js6q/lenses_for_tree_traversals/).

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](http://web.archive.org/web/20200803120122/http://www.cs.uu.nl/docs/vakken/mapa/downloads/agmanual.pdf))