From: bdemsky Date: Wed, 15 Feb 2006 21:04:17 +0000 (+0000) Subject: Small change X-Git-Tag: preEdgeChange~980 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b9fe9516e1510ea74176301f5b4dde289e940740;p=IRC.git Small change --- diff --git a/Robust/src/Main/Main.java b/Robust/src/Main/Main.java index 4cb5ca8d..31309bc3 100644 --- a/Robust/src/Main/Main.java +++ b/Robust/src/Main/Main.java @@ -24,7 +24,7 @@ public class Main { 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(); diff --git a/Robust/src/Parse/java14.cup b/Robust/src/Parse/java14.cup index 483f01f8..74945097 100644 --- a/Robust/src/Parse/java14.cup +++ b/Robust/src/Parse/java14.cup @@ -1120,13 +1120,13 @@ cast_expression ::= 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;