minor bug fixing in the parser generator and main generator. generated parser code appears to work correctly