https://github.com/darinm223/lambcalc
https://github.com/darinm223/lambcalc
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/darinm223/lambcalc
- Owner: DarinM223
- Created: 2022-03-15T07:55:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T01:40:31.000Z (about 4 years ago)
- Last Synced: 2025-06-11T03:35:59.246Z (about 1 year ago)
- Language: Haskell
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Lambcalc
========
A compiler from an extended variant of lambda calculus to LLVM.
To build and run the example program (in `src-exe/Main.hs`):
First run (in the project folder):
```
cabal build
```
to build the Haskell project. Then run:
```
cabal run lambcalc
```
to compile the example program (`example` in `src-exe/Main.hs`) that calculates the factorial of 5. The compiled LLVM file should be `main.ll` in the project folder. Then run:
```
sh run.sh
```
to compile and run the LLVM file. The output should be `120`.