Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 16675:0fc43b066eee
SL/SourceAttribution: correct some omissions, and in particular add new node SLParenExpressionNode to represent a parenthesized expression; this is semantically neutral of course, but needed to account correctly for the text of such an expression (as opposed to its contents).
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Fri, 01 Aug 2014 16:30:22 -0700 |
parents | 618d92152d3c |
children | 7c8ddb4233cd |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Fri Aug 01 16:28:06 2014 -0700 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Fri Aug 01 16:30:22 2014 -0700 @@ -153,6 +153,9 @@ sourceCallback.startLoading(source); } Parser.parseSL(context, source, null); + System.out.println(source.getName() + "========================"); + System.out.println(source.getCode()); + System.out.println(source.getName() + "========================"); if (sourceCallback != null) { sourceCallback.endLoading(source); } @@ -165,7 +168,7 @@ /* Change to true if you want to see the AST on the console. */ boolean printASTToLog = false; /* Change to true if you want to see source attribution for the AST to the console */ - boolean printSourceAttributionToLog = false; + boolean printSourceAttributionToLog = true; /* Change to dump the AST to IGV over the network. */ boolean dumpASTToIGV = false; @@ -192,6 +195,7 @@ } finally { printScript("after execution", context, logOutput, printASTToLog, printSourceAttributionToLog, dumpASTToIGV); } + return; } /**