//Exprest:top// //Exprest:import// import java.util.*; // **= public class Exprest /*Exprest:class*/ { public static final String $className = "Exprest"; public static final String $ruleString = " **= "; public List opList; public List multList; public Exprest(List opList, List multList) { //Exprest:init// this.opList = opList; this.multList = multList; } public static Exprest parse(Scan scn$, Trace trace$) { if (trace$ != null) trace$ = trace$.nonterm("", scn$.lno); List opList = new ArrayList(); List multList = new ArrayList(); while (true) { Token t$ = scn$.cur(); Token.Match match$ = t$.match; switch(match$) { case OP: opList.add(scn$.match(Token.Match.OP, trace$)); multList.add(Mult.parse(scn$, trace$)); continue; default: return new Exprest(opList, multList); } } } //Exprest// }