arielrodrigues / TinyPascalCompiler

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:Java 92.1%Language:Lex 6.9%Language:Pascal 1.0%