ziyadss / CMPN403-Compiler

Languages and Compilers Project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMPN403-Compiler

Languages and Compilers Project - third year CUFE students.

A compiler for a language inspired by C.
Major differences include:

  • No pointers.
  • No casts.
  • No structs or unions.
  • A 'try-catch-finally' block and a 'throw' statement.
  • A built-in string type.

Notes about generated quadruples

  • Assumes the presence of five registers - retval, retadr, temp1, temp2, and temp3.

Building and Running

    make
    ./bin/compiler.exe tests/source.c

Team Members

  • Ahmed Ayman Saad
  • Khaled Ashraf Zohair
  • Mazen Amr
  • Muhab Hossam
  • Ziyad Sameh Sobhy

About

Languages and Compilers Project.


Languages

Language:C++ 40.9%Language:C 37.5%Language:Yacc 12.7%Language:Python 4.1%Language:Lex 3.9%Language:Assembly 0.7%Language:Makefile 0.2%