a hack to enable when adding new language features to our compiler
authorjjenista <jjenista>
Tue, 12 Oct 2010 17:57:17 +0000 (17:57 +0000)
committerjjenista <jjenista>
Tue, 12 Oct 2010 17:57:17 +0000 (17:57 +0000)
Robust/src/IR/Tree/BuildIR.java

index a2bd61e783aea8f2dd805b93e08450c971215d50..3d47b14891416bdc995c229d9feeefafc55c7cd6 100644 (file)
@@ -585,6 +585,17 @@ public class BuildIR {
       BlockNode bn=parseBlock(bodyn);
       cn.addMethod(md);
       state.addTreeCode(md,bn);
+
+      // this is a hack for investigating new language features
+      // at the AST level, someday should evolve into a nice compiler
+      // option *wink*
+      //if( cn.getSymbol().equals( ***put a class in here like:     "Test" ) &&
+      //    md.getSymbol().equals( ***put your method in here like: "main" ) 
+      //) {
+      //  bn.setStyle( BlockNode.NORMAL );
+      //  System.out.println( bn.printNode( 0 ) );
+      //}
+
     } catch (Exception e) {
       System.out.println("Error with method:"+md.getSymbol());
       e.printStackTrace();