public DecisionInfo[] interpAndGetDecisionInfo(
LexerGrammar lg, Grammar g,
String startRule, String... input)
{
LexerInterpreter lexEngine = lg.createLexerInterpreter(null);
ParserInterpreter parser = g.createParserInterpreter(null);
parser.setProfile(true);
for (String s : input) {
lexEngine.reset();
parser.reset();
lexEngine.setInputStream(new ANTLRInputStream(s));
CommonTokenStream tokens = new CommonTokenStream(lexEngine);
parser.setInputStream(tokens);
Rule r = g.rules.get(startRule);
if ( r==null ) {
return parser.getParseInfo().getDecisionInfo();