Lines Matching defs:parse

36 function parse(name, script, visitor) {
38 var tree = parser.parse(name, script, null);
42 parse("arrayaccess.js", "this['eval']",
50 parse("arrayliteral.js", "[2, 3, 22]",
60 parse("assign.js", "x = 33",
69 parse(name, code,
102 parse("block.js", "{ print('hello'); }",
110 parse("break.js", "while(true) { break; }",
118 parse(name, code,
139 parse("condexpr.js", "foo? x : y",
146 parse("continue.js", "while(true) { continue; }",
153 parse("debugger.js", "debugger;",
160 parse("dowhile.js", "do {} while(true)",
167 parse("empty.js", ";",
174 parse("exprstat.js", "2+3;",
181 parse("forin.js", "for(i in this) {}",
188 parse("for.js", "for(;;) {}",
195 parse("funccall.js", "func()",
202 parse("funcdecl.js", "function func() {}",
209 parse("funcexpr.js", "x = function() {}",
216 parse("ident.js", "this",
223 parse("if.js", "if (true) {}",
230 parse("if2.js", "if (true) print('yes')",
238 parse("instanceof.js", "this instanceof Object",
245 parse("labeled.js", "foo: print('hello');",
253 parse(name, code,
266 parse("memselect.js", "this.foo",
273 parse("new.js", "new Object()",
280 parse("obj_literal.js", "({ foo: 343 })",
292 parse("regexp.js", "/[a-b]/i",
299 parse("ret.js", "function func() { return 33 }",
306 parse("switch.js", "switch(c) { case '1': break; default: }",
322 parse("throw.js", "throw 2",
329 parse("try.js", "try { func() } catch(e) {}",
341 parse(name, code,
361 parse("var.js", "var x = 34;",
368 parse("while.js", "while(true) {}",
375 parse("with.js", "with({}) {}",