https://github.com/noot/csc467-lab3
implementation of ast allocation and semantic checks
https://github.com/noot/csc467-lab3
Last synced: 10 months ago
JSON representation
implementation of ast allocation and semantic checks
- Host: GitHub
- URL: https://github.com/noot/csc467-lab3
- Owner: noot
- Created: 2018-10-27T09:16:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T16:33:42.000Z (over 7 years ago)
- Last Synced: 2025-03-03T00:15:54.612Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
to make project: `make`
to run compiler467 with trace scanner and input file: `./compiler467 -Tn test.in`
```
Part 1: (Elizabeth)
Set up of files:
- MakeFile
- AST --> starter code given (header and C file)
- C file for semantic parsing --> need to write
- Symbol Table -> create header and C files for
- Fix mistake from lab2
Part 2:
AST:
- AST contruction (Elizabeth)
- AST teardown (Elizabeth?)
- AST printing
Part 3:
Semantic Checking:
- Implicit type conversions
- Operators
- Conditions
- Function calls
- Constructor calls
- Vector indexing
- Initialization
- Assignment
- Variables
- Predefined variables
- Report Semantic Errors
Part 4:
- Symbol Table (Elizabeth?)
```