module Expressions: sig
.. end
Here are all the functions to generate the intermediate code for the arithmetical and boolean expressions
Here are all the functions to generate the intermediate code for the arithmetical and boolean expressions
val genParam : Syntaxtree.aexp list ->
Intermediate.dec_table ->
Intermediate.proc_table -> Intermediate.intermediateCode -> unit
Creates the instructions for the parameters before a call
plist
: The parameter list
dect
: The declarations table
proct
: The procedures table
ic
: The instance of the intermediateCode instance
val genArithmetical : Syntaxtree.aexp ->
Intermediate.dec_table ->
Intermediate.proc_table ->
Intermediate.intermediateCode -> Intermediate.element
Creates the instruction for the arithmetical expressions
Returns An element, which can be a Value, an Offset or a temporary register
a
: The arithmetical expression to analize
dect
: The declarations table
proct
: The procedures table
ic
: The intermediateCode class instance
val genBoolean : Syntaxtree.bexp ->
Intermediate.dec_table ->
Intermediate.proc_table ->
Intermediate.intermediateCode -> Intermediate.element
Creates the instruction for the boolean expressions
Returns An element, which can be a Value or a temporary register
a
: The boolean expression to analize
dect
: The declarations table
proct
: The procedures table
ic
: The intermediateCode class instance