Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngzhian/cs4212-project-2
Compiler for mini-go!
https://github.com/ngzhian/cs4212-project-2
Last synced: about 1 month ago
JSON representation
Compiler for mini-go!
- Host: GitHub
- URL: https://github.com/ngzhian/cs4212-project-2
- Owner: ngzhian
- License: mit
- Created: 2016-10-04T04:39:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T14:24:45.000Z (about 8 years ago)
- Last Synced: 2024-10-13T06:50:58.145Z (3 months ago)
- Language: OCaml
- Homepage: http://www.home.hs-karlsruhe.de/~suma0002/CS4212/project.html#(5)
- Size: 103 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CS4212 Project 2 [![Build Status](https://travis-ci.org/burnflare/CS4212-project-2.svg?branch=master)](https://travis-ci.org/burnflare/CS4212-project-2)
Compiler for mini-go!
Members:
1. Ng Zhi An
2. Victor Hazali
3. Vishnu Prem## Compile
Uses make to build the compiler, which will output a binary named `main` in the current directory.
```
make
```## Running
There are test cases that work correctly in `testcases/vm/pass/`, you can run them like so:
```
./main testcases/vm/pass/fib-recur
```## Cleanup
```
make clean
```## Test cases
Note, the test script isn't updated anymore because our build file has changed.
Some test cases are in the testcases folder.
To run the tests:```
make # build files
make test # for both parse test and type checks
```## References
Official project description: http://www.home.hs-karlsruhe.de/~suma0002/CS4212/project.html
Some tips: http://www.home.hs-karlsruhe.de/~suma0002/CS4212/project-tips.html
Helpful external guide: http://www.cse.chalmers.se/edu/year/2015/course/DAT150/lectures/proglang-07.html