String className= args[0];
DragomeJsCompiler.compiler= new DragomeJsCompiler(CompilerType.Standard);
Project.createSingleton(null);
ClassUnit classUnit= new ClassUnit(Project.singleton, Project.singleton.getSignature(className));
classUnit.setClassFile(new FileObject(new File(args[1])));
Parser parser= new Parser(classUnit);
TypeDeclaration typeDecl= parser.parse();
DragomeJavaScriptGenerator dragomeJavaScriptGenerator= new DragomeJavaScriptGenerator(Project.singleton);
dragomeJavaScriptGenerator.setOutputStream(new PrintStream(new FileOutputStream(new File("/tmp/webapp.js"))));
dragomeJavaScriptGenerator.visit(typeDecl);