Module Print


module Print: sig .. end
Contains the function to print the intermediate code into an output channel


Contains the function to print the intermediate code into an output channel
val print_instcode : Intermediate.inst_type -> Pervasives.out_channel -> unit
Prints on the provided channel the selected instruction type
inst : The instruction code
out : The output stream
val string_of_value : Intermediate.value -> string
Converts a value into a string
Returns The string conversion of the value
v : A value
val print_element : Intermediate.element -> Pervasives.out_channel -> unit
Prints on the provided channel the selected element
e : The element to print
out : The output channel
val print_instruction : Intermediate.instruction -> Pervasives.out_channel -> unit
Takes an instruction and print it our into the provided channel
(inst,e1,e2,e3) : e3 : The third element of the instruction
e2 : The second element of the instruction
e1 : The first element of the instruction
inst : The instruction code to print
out : The output channel
val print_ICode : Pervasives.out_channel -> Intermediate.instruction list -> unit
Prints the list of instructions
out : The output channel
ic : The instruction list
val dumpDecTable : Pervasives.out_channel ->
Syntaxtree.ide -> int * int * Intermediate.element -> unit
Prints one bind of an Hashtable
out : The output channel
(a,b,c) : c : The third element of the value binded with the ide into the table
b : The second element of the value binded with the ide into the table
a : The first element of the value binded with the ide into the table
val print_DecTable : Pervasives.out_channel -> Intermediate.dec_table -> unit
Calls the dumpDecTable for all the declarations table
out : The output channel
dect : The declarations table