Written by
Pedro Demarchi Gomes
on
on
My pascal toy compiler
I developed a simple pascal toy compiler for x86-64 using flex and bison. The reason to start this project was to learn more about compilers.
This is a checklist of functionalities that I plan to implement. The marked ones are already implemented.
- Simple variable assignment(e.g. a = 1)
- Simple write(e.g. write(a) or write(12))
- Expressions(e.g. 4+a*5-2 >,>=, <=, <>, =)
- If..Else
- While
- For
- Add error messages
- Procedure
- Function
- Support other variable types besides integer
You can check the source code of this project here