From: jjenista Date: Tue, 12 Oct 2010 17:57:17 +0000 (+0000) Subject: a hack to enable when adding new language features to our compiler X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c2f5d8af3b07154d127ec5516627dd58ed1f93af;p=IRC.git a hack to enable when adding new language features to our compiler --- diff --git a/Robust/src/IR/Tree/BuildIR.java b/Robust/src/IR/Tree/BuildIR.java index a2bd61e7..3d47b148 100644 --- a/Robust/src/IR/Tree/BuildIR.java +++ b/Robust/src/IR/Tree/BuildIR.java @@ -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();