public class CeylonToolProvider {
public static Compiler getCompiler(Backend backend){
switch(backend){
case Java:
return new JavaCompilerImpl();
case JavaScript:
return new JavaScriptCompilerImpl();
default:
throw new RuntimeException("Compiler for backend not supported yet: "+backend);
}