C | |
Commands |
In this module there is the function to create the Intermediate Code for commands
|
D | |
Declaration |
Here are all the functions used to generate the declaration table
|
E | |
Exceptions |
Here are listed all the exceptions used into the program
|
Expressions |
Here are all the functions to generate the intermediate code for the arithmetical and boolean expressions
|
I | |
Intermediate |
This module contains all the informations about types, structures and classes that are used almost anywhere along the code; other specific objects are declared only where needed
|
L | |
Lexer | |
M | |
Main |
This is the main function of the compiler, which s formed by five phases:
1-Generation of the Abstract Syntax Tree (with file output)
2-Generation of the Declarations Table
3-Generation of the Procedure Table
4-Generation of the Intermediate Code (with file output)
5-Generation of the Target Code (with file output)
|
P | |
Parser | |
Contains the function to print the intermediate code into an output channel
| |
Print_syntaxtree |
Contains the functions to print the Abstract Syntax Tree
|
S | |
Semantic |
Contains all the functions to perform a small semantic analisys, which means only type checking :)
To do this has been introduced the "Semantic Type" which simplify the check
|
Subroutines |
Contains the functions to create the procedure/function table
|
Syntaxtree | |
T | |
Target |
Contains all the functions to generate the tagret code from the intermediate code instructions list
All this methods return unit, or the string which has to be printed out
|