* @return a descriptor representing the outcoming of this operation
*
* @throws Throwable in case of any errors
*/
public ParsingResult run() throws Throwable {
Lexer lexer = getLexer();
ParsingResult parsingResult = null;
if ( grammarRuleTestGroup.getRuleType() == RuleType.LEXER ) {
Method rule = lexer.getClass().getMethod( "m" + grammarRuleTestGroup.getName() );
parsingResult = invokeRule( lexer, rule );
}
else {
CommonTokenStream tokens = new CommonTokenStream( lexer );