comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 16687:7c8ddb4233cd

SL/SourceAttribution: restore some attribution fixes that were lost in a tussle with hg; turn off tracing code in SL tests.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 04 Aug 2014 18:53:21 -0700
parents 0fc43b066eee
children 7661cc464239
comparison
equal deleted inserted replaced
16686:a59d447dde94 16687:7c8ddb4233cd
151 /* Parse the SL source file. */ 151 /* Parse the SL source file. */
152 if (sourceCallback != null) { 152 if (sourceCallback != null) {
153 sourceCallback.startLoading(source); 153 sourceCallback.startLoading(source);
154 } 154 }
155 Parser.parseSL(context, source, null); 155 Parser.parseSL(context, source, null);
156 System.out.println(source.getName() + "========================");
157 System.out.println(source.getCode());
158 System.out.println(source.getName() + "========================");
159 if (sourceCallback != null) { 156 if (sourceCallback != null) {
160 sourceCallback.endLoading(source); 157 sourceCallback.endLoading(source);
161 } 158 }
162 /* Lookup our main entry point, which is per definition always named "main". */ 159 /* Lookup our main entry point, which is per definition always named "main". */
163 SLFunction main = context.getFunctionRegistry().lookup("main"); 160 SLFunction main = context.getFunctionRegistry().lookup("main");
166 } 163 }
167 164
168 /* Change to true if you want to see the AST on the console. */ 165 /* Change to true if you want to see the AST on the console. */
169 boolean printASTToLog = false; 166 boolean printASTToLog = false;
170 /* Change to true if you want to see source attribution for the AST to the console */ 167 /* Change to true if you want to see source attribution for the AST to the console */
171 boolean printSourceAttributionToLog = true; 168 boolean printSourceAttributionToLog = false;
172 /* Change to dump the AST to IGV over the network. */ 169 /* Change to dump the AST to IGV over the network. */
173 boolean dumpASTToIGV = false; 170 boolean dumpASTToIGV = false;
174 171
175 printScript("before execution", context, logOutput, printASTToLog, printSourceAttributionToLog, dumpASTToIGV); 172 printScript("before execution", context, logOutput, printASTToLog, printSourceAttributionToLog, dumpASTToIGV);
176 try { 173 try {