Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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!

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