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
- Host: GitHub
- URL: https://github.com/thechrisu/selfmade-compillionaire
- Owner: thechrisu
- Created: 2017-01-18T16:59:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-10T23:55:16.000Z (over 9 years ago)
- Last Synced: 2025-04-05T01:14:07.447Z (about 1 year ago)
- Topics: bytecode, createdunderstress, cup, java, jflex, lex
- Language: Assembly
- Size: 1.23 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# 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!)