ANTLRLexer lexer = new ANTLRLexer(new ANTLRStringStream(ruleText));
ANTLRParser parser = ANTLRParser.createParser(new CommonTokenStream(lexer));
parser.setGrammar(this);
parser.setGrammarType(this.type);
try {
ANTLRParser.rule_return result = parser.rule();
return result.getTree();
}
catch (Exception e) {
ErrorManager.error(ErrorManager.MSG_ERROR_CREATING_ARTIFICIAL_RULE,
e);