You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 months ago | |
---|---|---|
META-INF | 8 months ago | |
src/main/rascal | 7 months ago | |
test/input | 7 months ago | |
.gitignore | 8 months ago | |
README.md | 8 months ago | |
pom.xml | 8 months ago |
README.md
A compiler for MiniPas using Rascal
- In my compiler construction subject, we made a compiler for a language called
MiniPas
(a subset ofPascal
) in C. It generates LLIR code from a.pas
file.
Grammar
- The grammar of the langauge can be found in
src/Syntax.rsc
. We make some comments here. - Since
MiniPas
has notions of both functions and procedures, we refer to either as aSubProg
. - Keywords are case insensitive but identifiers are case sensitive.
Acknowledgements
- The grammar of
MiniPas
is from the courseCompiler Construction
in the University of Groningen. The programs intest/input
forMiniPas
are from this course as well. - The structure of the
Rascal
code comes from the courseSoftware Language Engineering
in the University of Groningen