java_cup.runtime.lr_parser g;
g = new Parse.Parser(l);
ParseNode p=(ParseNode) g./*debug_*/parse().value;
- System.out.println(p.PPrint(4,true));
+ // System.out.println(p.PPrint(2,true));
State state=new State(p);
BuildIR bir=new BuildIR(state);
bir.buildtree();
LPAREN primitive_type:type
//dims_opt
RPAREN unary_expression:exp {:
- ParseNode pn=new ParseNode("cast");
+ ParseNode pn=new ParseNode("cast1");
pn.addChild("type").addChild(type);
pn.addChild("exp").addChild(exp);
RESULT=pn;
:}
| LPAREN expression:type RPAREN unary_expression_not_plus_minus:exp {:
- ParseNode pn=new ParseNode("cast");
+ ParseNode pn=new ParseNode("cast2");
pn.addChild("type").addChild(type);
pn.addChild("exp").addChild(exp);
RESULT=pn;