https://github.com/huchenlei/csc467
CSC467 Compiler course at University of Toronto
https://github.com/huchenlei/csc467
Last synced: 2 months ago
JSON representation
CSC467 Compiler course at University of Toronto
- Host: GitHub
- URL: https://github.com/huchenlei/csc467
- Owner: huchenlei
- Created: 2017-10-01T18:11:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T17:49:58.000Z (about 7 years ago)
- Last Synced: 2025-03-28T19:53:41.291Z (2 months ago)
- Language: C
- Size: 165 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSC467 Compiler and Interpreters 2017 F
## Project Outline
### Phase 1 (Lab1 ~ 2)
#### Lab1
Writing a scanner(tokenizer) with flex. (Basically writing regular expressions)
Most work done in `scanner.l`.
#### Lab2
Writing a parser with bison. (Writing unambiguous context-free grammar(CFG))
Most work done in `parser.y`.### Phase 2 (Lab3 ~ 4)
#### Lab3
Construction of Abstract Syntax Tree (AST), and doing semantic analysis.
Most work done in `semantic.c`, `ast.c`, `symbol.c`.#### Lab4
Code generation. Map each part of mini-GL language to assembly language.
Most work done in `codegen.c`.## Testing
Test the code with
```
perl ./test/
```