Skip to content

A tiny pascal compiler, made to gide my studies in compilers

License

Notifications You must be signed in to change notification settings

arielrodrigues/TinyPascalCompiler

Repository files navigation

br.ufs.dcomp.tinypascalcompiler

this version still with bugs in intermediate code generate (TreeTranslate.java). Those will probably not be solved by me, as I believe that this project has already fulfilled my personal objectives.

This version contains:

  • Lexical Analysis w/ JFLEX
  • Syntactic Analysis w/ CUP
  • using Visitor Pattern:
  • Pretty Printer
  • Type Checker
  • Intermediate Code Generator (Translate into TREEs) - Not bug-free

This compiler was made using JFLEX for Lexical Analysis and CUP for Syntactic Analysis. Type Checker, Pretty Print and Intermediate Code Generator (Using TREE as intermediate language, as proposed by Appel and Palsberg in Modern Compiler Implementation in Java.

I am gratefull to Giovanny Lucero (UFS), compiler's class was extremely interesting and fun.

About

A tiny pascal compiler, made to gide my studies in compilers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published