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.
705249bfae | 10 months ago | |
---|---|---|
META-INF | 10 months ago | |
src/main/rascal | 10 months ago | |
test/input | 10 months ago | |
.gitignore | 10 months ago | |
README.md | 10 months ago | |
pom.xml | 10 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