From c2f5d8af3b07154d127ec5516627dd58ed1f93af Mon Sep 17 00:00:00 2001 From: jjenista Date: Tue, 12 Oct 2010 17:57:17 +0000 Subject: [PATCH] a hack to enable when adding new language features to our compiler --- Robust/src/IR/Tree/BuildIR.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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(); -- 2.34.1