/* file: /yacco2/diagrams+etc/treemodify.txt Example of re-aligning the parser's LA T when dynamically modifying the tree */ tok_can<yacco2::AST*>* ct = (tok_can<yacco2::AST*>*)parser()->token_supplier(); ct->remove();//drop the la T as i could have morphed this into a comment parser()->override_current_token_pos(parser()->current_token_pos()-1); parser()->get_next_token();