Skip to content

felixarpa/LP-Compiladors

Repository files navigation

LP-Compiladors

Compilers, Programming Languages (FIB)

Mountains

First of all you'll need to intall pccts (antlr and dlg) as explanied in the pccts/README file.

Once you have pccts intalled run:

➜ antlr -gt mountains.g
➜ dlg -ci parser.dlg scan.c
➜ g++ -o mountains mountains.c scan.c err.c

This last command may generate a lot of warnings. Run the program doing:

➜ ./mountains

You can check the inputs inputs and the outputs in the files:

Enjoy ;)