128129130131132133134135136137138
Parser p = new Parser("ITSA Parser"); ParserRuleParam prp = new ParserRuleParam("series"); for (String s : series) prp.addValue(s); ParserRule pr = new ParserRule(itsaRule, prp); pr.setQuickRule(" [series]<"); p.addRule(pr);
259260261262263264265266267268269
for (int i=0; i < 3; i++) { ParserRuleParam prp = new ParserRuleParam("param"+(i+1)); for (int j=0; j < 5; j++) prp.addValue("value"+(j+1)); pr.addParam(prp); }