Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/noughtmare/uuagc-constant-folding
- Owner: noughtmare
- License: gpl-3.0
- Created: 2020-08-03T10:46:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T14:47:58.000Z (4 months ago)
- Last Synced: 2024-07-16T18:15:26.440Z (4 months ago)
- Topics: ast-transformations, attribute-grammars, haskell
- Language: Haskell
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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))