extending REPL to read and print parsed AST