pass error through to a printer to display
passthrough function wasn't necessary
manage prompt state so that incomplete statements can have a continuation prompt
need error callback so that parser can be reset cleanly
move initialization code to a reset function so that the parser can be reset for continued use
reset parser and prompt when a statement ends in success or error