1.1 --- a/rt/vm/src/main/java/org/apidesign/vm4brwsr/VM.java Tue May 07 19:01:14 2013 +0200
1.2 +++ b/rt/vm/src/main/java/org/apidesign/vm4brwsr/VM.java Wed May 08 14:54:32 2013 +0200
1.3 @@ -57,13 +57,8 @@
1.4 return false;
1.5 }
1.6
1.7 - static void compileStandalone(Bck2Brwsr.Resources l, Appendable out, StringArray names) throws IOException {
1.8 - VM vm = new Standalone(out, l);
1.9 - vm.doCompile(names);
1.10 - }
1.11 -
1.12 - static void compileExtension(Bck2Brwsr.Resources l, Appendable out, StringArray names) throws IOException {
1.13 - VM vm = new Extension(out, l);
1.14 + static void compile(Appendable out, Bck2Brwsr.Resources l, StringArray names, boolean extension) throws IOException {
1.15 + VM vm = extension ? new Extension(out, l) : new Standalone(out, l);
1.16 vm.doCompile(names);
1.17 }
1.18