Final PECL of "Procesadores del Lenguaje" for course 2016/17
This project builds an analyzer (lexical, syntactic and semantic) for an imperative language. That language only use two control structures ('if' and 'while'). The variables are explicitly declare as integer or boolean.
The syntax of this analyzer uses jLex and Java Cup.
- Run at the command prompt to compile the project:
java JLex.Main lex.lex
javac lex.lex.java
- You can analyze created tests or create new ones.
For example, if you want to analyze
test1.txt
, run in a terminal:
java Yylex test1.txt #Analyze the file test1.txt
In order to do it faster, you may run this script in two ways:
- Launch script without parameters for compile the project:
./make.sh
- Launch the script with tests files to analyze it:
./make.sh test1.txt #Analyze the file test1.txt
This proyect is under the MIT License. See LICENSE.md