Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sbolanowski/m2r_translator

Repository files navigation

M2R Translator

This project involves building a translator for the M2R object language using bison and flex, based on a syntactic and lexical specification.


Commands

make

Compiles the project and generates the executable plp5.

make clean

Removes all object files and the executable plp5, cleaning the project directory.

./autocorrector-plp5.sh

Executes a test suite for translation and compilation.

./plp5 sources/fuentes/something.fnt

Generates the translation to M2R in the folder sources/salida-obtenida by compiling the input file something.fnt. The output file will have the same name as the original, but with a .cod extension.

./m2r sources/salida-obtenida/p-something.fnt.cod

Executes the output file from the sources/salida-obtenida folder with the M2R compiler.


Lexical Specification

esp_lexica


Syntactic Specification

esp_sintactica


The M2R Language

See PDF specification


gIF