Small change
authorbdemsky <bdemsky>
Wed, 15 Feb 2006 21:04:17 +0000 (21:04 +0000)
committerbdemsky <bdemsky>
Wed, 15 Feb 2006 21:04:17 +0000 (21:04 +0000)
Robust/src/Main/Main.java
Robust/src/Parse/java14.cup

index 4cb5ca8d3281501d75495119b1bcfdfe6bd2d30b..31309bc38c8c16dba200c7d3b0b4299a25f43d41 100644 (file)
@@ -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();
index 483f01f852c8494e87fa84df486b4c00be65e2f0..749450974a78a5ba9c12e16e2e324ca2cb962bd3 100644 (file)
@@ -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;