Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikestaub/pascal-compiler
A small compiler for a subset of the Pascal programming language.
https://github.com/mikestaub/pascal-compiler
Last synced: about 1 month ago
JSON representation
A small compiler for a subset of the Pascal programming language.
- Host: GitHub
- URL: https://github.com/mikestaub/pascal-compiler
- Owner: mikestaub
- Created: 2012-01-06T23:59:28.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2021-01-21T15:21:14.000Z (almost 4 years ago)
- Last Synced: 2024-11-29T10:52:26.466Z (about 1 month ago)
- Language: C
- Homepage:
- Size: 21.5 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
I have completed the pascal compiler assignment to about 90%. I have Three Address Codes generated for all of the assigned grammar, as well as multidimensional arrays and infinitely nested functions.
I have assembly code generating for everything but arrays and function calls. I have a good understanding how to go about doing it, but I have run out of time.I have included a file called TESTFILE.p to demonstrate what code I CAN generate thus far.
To build the compiler just run the make command.
To run the compiler: ./compiler FINALTEST.p > output.s <-- need the redirection meta character, as the compiler just calls printf()
gcc output.s
./a.out