diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java @ 21890:894f82515e38

Truffle/APIs and Debugging: Evolutionary steps to integrating debugging and tool support with TruffleVM APIs - Add a version string to language registration: Language.getShortName() produces a string with both language and version - Rename SLMain --> SLLanguage (little change current machinery) - Remove DebugEngine dependence on ExecutionContext: Visualizer access migrated to TruffleLanguage - ExecutionContext now has only one method left: getCompilerOptions() - Rename SourceExecutionProvider to DebugSupportProvider, now supplied by implementing abstract TruffleLanguage.getDebugSupport() - Revise DebugEngine and its helper classes to work with the new APIs
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 09 Jun 2015 15:20:30 -0700
parents 3286fb5fea4a
children
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Fri Jun 05 18:05:13 2015 -0700
+++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Tue Jun 09 15:20:30 2015 -0700
@@ -62,11 +62,6 @@
         this.emptyShape = LAYOUT.createShape(new ObjectType());
     }
 
-    @Override
-    public String getLanguageShortName() {
-        return "Simple";
-    }
-
     /**
      * Returns the default input, i.e., the source for the {@link SLReadlnBuiltin}. To allow unit
      * testing, we do not use {@link System#in} directly.
@@ -146,16 +141,11 @@
     }
 
     /**
-     * This function will parse the given source code, parse the code using the {@link Parser}, and
-     * then execute the function named main. To use this method with instrumentation,
-     * setASTNodeProber must have been already called. There is currently no guard to check if this
-     * is the case. <br/>
-     * Due to the experimental nature of the instrumentation framework, the parse that happens in
-     * this method will remove any previously added instrumentation.
+     * Evaluate a source, causing any definitions to be registered (but not executed).
      *
-     * @param source The {@link Source} to execute.
+     * @param source The {@link Source} to parse.
      */
-    public void executeMain(Source source) {
+    public void evalSource(Source source) {
         Parser.parseSL(this, source);
     }