예제 #1
0
 /**
  * Goes through the other registered languages to find an exported global symbol of the specified
  * name. The expected return type is either <code>TruffleObject</code>, or one of wrappers of Java
  * primitive types ({@link Integer}, {@link Double}).
  *
  * @param name the name of the symbol to search for
  * @return object representing the symbol or <code>null</code>
  */
 @TruffleBoundary
 public Object importSymbol(String name) {
   Object object = env.importSymbol(name);
   Object slValue = fromForeignValue(object);
   return slValue;
 }
예제 #2
0
 public CallTarget parse(Source source) throws IOException {
   return env.parse(source);
 }