modified AST generation to insert forth commands for printing