Prog* Parser::prog(){ Prog* myProg = new Prog(); myProg->addNode(decls()); if (!error) { myProg->addNode(statements()); } return myProg; }