Index of values


__ocaml_lex_lex_rec [Lexer]
__ocaml_lex_tables [Lexer]

A
array_get [Target]
Used to calculate the offset for a vector, with the same controls used for normal elements

C
c_element [Target]
If the element is a declared variable, then if the boolean stored into the element is true (which means that is an element declared into a function/procedure) we have to calculate the offset from the basepointer, otherwise we calculate it directly into the stack.
c_generator [Target]
Generates the target code for all the elements of the instructions list
c_instruction [Target]
Conver the intermediate code instructions into the target code instructions
c_procedure [Target]
Generates the target code for the subroutines, using the stored funUtils instance
c_subroutine [Target]
If the c element is null, it means that the subroutine is void, so we have only to call it, otherwise c is the temporary variable where the return value is stored
c_subroutines [Target]
Calls the c_procedure method for all the entries of the procedure table
checkAexp [Semantic]
Checks the Semantic types of the arithmetical expressions
checkBool [Semantic]
Checks the semantic type of boolean operations (compare is only allowed betrween int and int or float and float, not mixed operations)
checkLexp [Semantic]
Checks the semantic type of left expression
checkParTypes [Semantic]
Checks the semantic type of a list of parameters
cmdsemantic [Semantic]
Checks the semantic type of commands
convertList [Subroutines]
Converts a param list into a dec list

D
dumpDecTable [Print]
Prints one bind of an Hashtable

G
genArithmetical [Expressions]
Creates the instruction for the arithmetical expressions
genBoolean [Expressions]
Creates the instruction for the boolean expressions
genBtype [Declaration]
Used to create a single variable entry on the dec_table
genCommand [Commands]
Creates the instructions for a command and adds the instructions to the Intermediate Code list of instructions
genDecTable [Declaration]
Generate the table of declarations from the dec list
genGtype [Declaration]
Used to build the correct number of entries into the Declaration Hashtable
genParam [Expressions]
Creates the instructions for the parameters before a call
genParamTable [Subroutines]
Generate the Hashtable with the declaration of the parameters
genSub [Subroutines]
Builds the Building entry for the Hashtable and then replace it with the Subroutine entry, which is build by the genSubruotine method.
genSubTable [Subroutines]
Generate the subroutines table from the proc list
genSubroutine [Subroutines]
Generates the Subroutine entry for the Hashtable, after creating an Hashtable containing all the declarations of the local variables and the parameters; then is checked the semantic of the subroutine's body and finally the intermediate code is generated and saved.
getElementType [Target]
Used to recover the type of data contained into an element (int or float)
getType [Semantic]
Recovers the semantic type from an offset
getVarDeclaration [Declaration]
Find the binded value corresponding to the ide into the Hashtable (where ide is the identifier for a variable, NOT Vectors or Matrix)
getVecDeclaration [Declaration]
Find the binded value corresponding to the ide into the Hashtable (where ide is the identifier for Vectors or Matrix)

H
header [Target]
The header of the target code

I
isVarDeclared [Declaration]
Check if the variable is binded into the Hashtable

J
jointable [Subroutines]
Used to join two Hashtable into a single one

L
lex [Lexer]

M
main_end [Target]
The end of the main
main_start [Target]
The signature of the main function, with the first instructions for initialization

N
newstack_pointer [Target]
Initialize a new stack-pointer

P
print_DecTable [Print]
Calls the dumpDecTable for all the declarations table
print_ICode [Print]
Prints the list of instructions
print_aexp [Print_syntaxtree]
Prints arithmetical expressions
print_bType [Print_syntaxtree]
Prints basic Type
print_bexp [Print_syntaxtree]
Prints boolean expressions
print_cmd [Print_syntaxtree]
Prints commands
print_dec [Print_syntaxtree]
Prints a declaration
print_element [Print]
Prints on the provided channel the selected element
print_gType [Print_syntaxtree]
Prints generic Type
print_ide [Print_syntaxtree]
Prints an ide
print_instcode [Print]
Prints on the provided channel the selected instruction type
print_instruction [Print]
Takes an instruction and print it our into the provided channel
print_lexp [Print_syntaxtree]
Prints left expressions
print_param [Print_syntaxtree]
Prints Parameters of functions/procedures
print_proc [Print_syntaxtree]
Prints The definition of procedures and functions
print_program [Print_syntaxtree]
Prints the Abstract Syntax Tree
print_ret [Print_syntaxtree]
Prints the return value of functions
print_return [Target]
Prints the return type of the subroutines
print_string_list [Print_syntaxtree]
Prints a list of string
program [Parser]
push_params [Target]
Pushes all the list of parameters retrieved for the procedures table
push_single_param [Target]
Pushes a single parameter, incrementing the stackpointer and copying his value in the pointed location

S
string_of_value [Print]
Converts a value into a string

Y
yyact [Parser]
yycheck [Parser]
yydefred [Parser]
yydgoto [Parser]
yygindex [Parser]
yylen [Parser]
yylhs [Parser]
yynames_block [Parser]
yynames_const [Parser]
yyrindex [Parser]
yysindex [Parser]
yytable [Parser]
yytables [Parser]
yytablesize [Parser]
yytransl_block [Parser]
yytransl_const [Parser]