Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 653 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 653 Bytes

Programming language interpreter implemented with C. The entry point is main.c, and the test files are entree1.txt, etc.

The program works like this: Structure of solution

The recognition of lexemes is made with an automat while the recognition of the syntax is made with a grammer. After the syntax analysis an "abstract syntax tree" is created and then evaluated.

This is the evaluation of the entree4.txt Example of execution

The test cases are made in order, starting with basic affirmations (entree1.txt). Next level is write/read functions. Then conditional statements and finishing with loops.