lr0 parser, cleanup