argument to print resulting AST
we need double pointers to solve the copying problem