/toycompiler

Toy compiler for TLA@ITBA

Primary LanguageShell

Automatons and Language Theory @ ITBA (Buenos Aires Institute of Technology)

  • Reznik, Luciana
  • Marseillan, AgustĂ­n

Description

Implementation of a simple language parser and compiler for a defined gramatic. We've done basic code optimizations at compilance level and solved the "hangling else" problem.

Make

To compile type: ./make while standing in the main directory

Convert

To use type: ./c_converter input

The input should be the code in the created language. A .c file will be created with the same name than the input. Then, you should compile de C program whith gcc to get the executable.