@@ -0,0 +1,2383 @@
+package som.tests;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.util.Collection;%0A%0Aimport org.graalvm.polyglot.Context;%0Aimport org.graalvm.polyglot.Context.Builder;%0Aimport org.graalvm.polyglot.Source;%0Aimport org.graalvm.polyglot.Value;%0Aimport org.graalvm.polyglot.tck.LanguageProvider;%0Aimport org.graalvm.polyglot.tck.Snippet;%0A%0Aimport som.Launcher;%0Aimport som.interpreter.SomLanguage;%0Aimport som.vm.VmOptions;%0A%0A%0Apublic class SomSnippets implements LanguageProvider %7B%0A%0A  @SuppressWarnings(%22unused%22)%0A  void foo() %7B%0A    Builder builder = Launcher.createContextBuilder(new String%5B%5D %7B%0A        %22--kernel%22, VmOptions.STANDARD_KERNEL_FILE,%0A        %22--platform%22, VmOptions.STANDARD_PLATFORM_FILE%7D);%0A    Context context = builder.build();%0A%0A    InputStream in = getClass().getResourceAsStream(%22TruffleSomTCK.ns%22);%0A    try %7B%0A      Source source = Source.newBuilder(%0A          SomLanguage.LANG_ID, new InputStreamReader(in), %22TruffleSomTCK.ns%22).build();%0A    %7D catch (IOException e) %7B%0A      throw new RuntimeException(e);%0A    %7D%0A%0A    // TODO:%0A    // Value tckModule = context.eval(source);%0A    // tckModule.SClass tck = tckModule.as(SClass.class);%0A    //%0A    // ObjectTransitionSafepoint.INSTANCE.register();%0A    // tck.getMixinDefinition().instantiateObject(tck, vm.getVmMirror());%0A    // ObjectTransitionSafepoint.INSTANCE.unregister();%0A  %7D%0A%0A  @Override%0A  public String getId() %7B%0A    return SomLanguage.LANG_ID;%0A  %7D%0A%0A  @Override%0A  public Value createIdentityFunction(final Context context) %7B%0A    // TODO Auto-generated method stub%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Collection%3C? extends Snippet%3E createValueConstructors(final Context context) %7B%0A    // TODO Auto-generated method stub%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Collection%3C? extends Snippet%3E createExpressions(final Context context) %7B%0A    // TODO Auto-generated method stub%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Collection%3C? extends Snippet%3E createStatements(final Context context) %7B%0A    // TODO Auto-generated method stub%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Collection%3C? extends Snippet%3E createScripts(final Context context) %7B%0A    // TODO Auto-generated method stub%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Collection%3C? extends Source%3E createInvalidSyntaxScripts(final Context context) %7B%0A    // TODO Auto-generated method stub%0A    return null;%0A  %7D%0A%0A%7D%0A

Add support for Polyglot TCK