Module Print_syntaxtree


module Print_syntaxtree: sig .. end
Contains the functions to print the Abstract Syntax Tree


Contains the functions to print the Abstract Syntax Tree
val print_ide : Syntaxtree.ide -> string
Prints an ide
val print_string_list : string list -> string
Prints a list of string
al : The string list to print
val print_aexp : Syntaxtree.aexp -> string
Prints arithmetical expressions
a : The aexp to print
val print_bexp : Syntaxtree.bexp -> string
Prints boolean expressions
b : The bexp to print
val print_lexp : Syntaxtree.lexp -> string
Prints left expressions
l : The lexp to print
val print_cmd : Syntaxtree.cmd -> string
Prints commands
c : The command to print
val print_bType : Syntaxtree.bType -> string
Prints basic Type
b : The basic Type to print
val print_gType : Syntaxtree.gType -> string
Prints generic Type
g : The generic Type to print
val print_dec : Syntaxtree.dec -> string
Prints a declaration
val print_param : Syntaxtree.param -> string
Prints Parameters of functions/procedures
val print_ret : Syntaxtree.ret -> string
Prints the return value of functions
val print_proc : Syntaxtree.proc -> string
Prints The definition of procedures and functions
s : The procedure/function to print
val print_program : Syntaxtree.program -> Pervasives.out_channel -> unit
Prints the Abstract Syntax Tree
p : The AST
out : The output channel