Added convenience methods to LexerGenerator and ParserGenerator.