a couple of bug fixes for parser generator. generated parsers still don't compile