/* initialize JavaScript context */
Context cx = Context.enter();
/* create a new parser */
Parser rhinoParser = new Parser(new CompilerEnvirons(), cx.getErrorReporter());
/* parse some script and save it in AST */
ast = rhinoParser.parse(new String(input), scopename, 0);
modifier.setScopeName(scopename);
modifier.start();