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

https://github.com/thechrisu/selfmade-compillionaire

Compilers coursework using JFlex + CUP
https://github.com/thechrisu/selfmade-compillionaire

bytecode createdunderstress cup java jflex lex

Last synced: about 1 month ago
JSON representation

Compilers coursework using JFlex + CUP

Awesome Lists containing this project

README

          

![](https://travis-ci.com/culshoefer/selfmade-compillionaire.svg?token=zQVzEtnHpKj7VnQb2PQK&branch=master)

# COMP207P Lexer and Parser Coursework

## Running original

Please put your Lexer.lex and Parser.cup files into the src subdirectory.

To build, issue `make`.

To test, issue `make test`.

To run on a single test file, issue `./bin/sc tests/open/.s`

## Running custom tests

Use `tim-test.sh` scripts in this repository. Run `./tim-test.sh all` to recursively execute all custom tests. Additionally, you can run a single test using `tim-test.sh one ` or all tests from a directory using `tim-test.sh dir `.

TODO: Test for position of syntax error (say, when there's a semicolon missing!)