Lines Matching refs:jjtree
1 /*@bgen(jjtree) Generated By:JJTree: Do not edit this line. Mini.jj */
7 public class MiniParser/*@bgen(jjtree)*/implements MiniParserTreeConstants/*@egen*/ {/*@bgen(jjtree…
8 protected static JJTMiniParserState jjtree = new JJTMiniParserState();
48 void Program() : {/*@bgen(jjtree) Program */
51 jjtree.openNodeScope(jjtn000);
54 {/*@bgen(jjtree) Program */
58 <EOF>/*@bgen(jjtree)*/
61 jjtree.clearNodeScope(jjtn000);
64 jjtree.popNode();
75 jjtree.closeNodeScope(jjtn000, true);
85 {/*@bgen(jjtree) FunDecl */
88 jjtree.openNodeScope(jjtn000);
94 {/*@bgen(jjtree) FunDecl */
109 Expr()/*@bgen(jjtree)*/
112 jjtree.clearNodeScope(jjtn000);
115 jjtree.popNode();
126 jjtree.closeNodeScope(jjtn000, true);
134 {/*@bgen(jjtree) Expr */
137 jjtree.openNodeScope(jjtn000);
143 {/*@bgen(jjtree) Expr */
152 un_op = UnOp() { jjtn000.setUnOp(un_op); } Expr()/*@bgen(jjtree)*/
155 jjtree.clearNodeScope(jjtn000);
158 jjtree.popNode();
169 jjtree.closeNodeScope(jjtn000, true);
182 {/*@bgen(jjtree) IfExpr */
185 jjtree.openNodeScope(jjtn000);
190 {/*@bgen(jjtree) IfExpr */
194 Expr() "THEN" Expr() [ LOOKAHEAD(1) "ELSE" Expr() ] "FI"/*@bgen(jjtree)*/
197 jjtree.clearNodeScope(jjtn000);
200 jjtree.popNode();
211 jjtree.closeNodeScope(jjtn000, true);
219 {/*@bgen(jjtree) LetExpr */
222 jjtree.openNodeScope(jjtn000);
227 {/*@bgen(jjtree) LetExpr */
231 (Ident() <ASSIGN> Expr())+ "IN" Expr()/*@bgen(jjtree)*/
234 jjtree.clearNodeScope(jjtn000);
237 jjtree.popNode();
248 jjtree.closeNodeScope(jjtn000, true);
256 {/*@bgen(jjtree) FunAppl */
259 jjtree.openNodeScope(jjtn000);
264 {/*@bgen(jjtree) FunAppl */
269 [Expr() (<COMMA> Expr())*] <RPAREN>/*@bgen(jjtree)*/
271 jjtree.closeNodeScope(jjtn000, true);
276 { return t; }/*@bgen(jjtree)*/
279 jjtree.clearNodeScope(jjtn000);
282 jjtree.popNode();
293 jjtree.closeNodeScope(jjtn000, true);
302 {/*@bgen(jjtree) Term */
305 jjtree.openNodeScope(jjtn000);
310 {/*@bgen(jjtree) Term */
313 Factor() [kind = MultOp() { jjtn000.setKind(kind); } Term()]/*@bgen(jjtree)*/
315 jjtree.closeNodeScope(jjtn000, true);
320 { jjtn000.setPosition(expr_token.beginLine, expr_token.beginColumn); }/*@bgen(jjtree)*/
323 jjtree.clearNodeScope(jjtn000);
326 jjtree.popNode();
337 jjtree.closeNodeScope(jjtn000, true);
345 {/*@bgen(jjtree) Factor */
348 jjtree.openNodeScope(jjtn000);
353 {/*@bgen(jjtree) Factor */
356 Element() [kind = CmpOp() { jjtn000.setKind(kind); } Factor()]/*@bgen(jjtree)*/
358 jjtree.closeNodeScope(jjtn000, true);
363 { jjtn000.setPosition(expr_token.beginLine, expr_token.beginColumn); }/*@bgen(jjtree)*/
366 jjtree.clearNodeScope(jjtn000);
369 jjtree.popNode();
380 jjtree.closeNodeScope(jjtn000, true);
402 {/*@bgen(jjtree) Integer */
405 jjtree.openNodeScope(jjtn000);
411 {/*@bgen(jjtree) Integer */
414 t = <INTEGER>/*@bgen(jjtree)*/
416 jjtree.closeNodeScope(jjtn000, true);
425 }/*@bgen(jjtree)*/
428 jjtree.closeNodeScope(jjtn000, true);
436 {/*@bgen(jjtree) Ident */
439 jjtree.openNodeScope(jjtn000);
445 {/*@bgen(jjtree) Ident */
449 t = <IDENT>)/*@bgen(jjtree)*/
451 jjtree.closeNodeScope(jjtn000, true);
460 }/*@bgen(jjtree)*/
463 jjtree.closeNodeScope(jjtn000, true);