• Home
  • Raw
  • Download

Lines Matching full:found

187     var found = execParser(t057autoAST1Lexer, t057autoAST1Parser, "a", "abc 34");
188 assertEquals("abc 34", found);
192 var found = execParser(t057autoAST2Lexer, t057autoAST2Parser,"a", "abc 34");
193 assertEquals("abc 34", found);
197 var found = execParser(t057autoAST3Lexer, t057autoAST3Parser, "a", "abc 34");
198 assertEquals("(abc 34)", found);
202 var found = execParser(t057autoAST4Lexer, t057autoAST4Parser, "a", "34 abc");
203 assertEquals("(abc 34)", found);
207 var found = execParser(t057autoAST5Lexer, t057autoAST5Parser, "a", "abc 34 dag 4532");
208 assertEquals("abc 4532", found);
212 var found = execParser(t057autoAST6Lexer, t057autoAST6Parser, "a", "a 1 b");
213 assertEquals("(b a 1)", found);
217 var found = execParser(t057autoAST7Lexer, t057autoAST7Parser, "a", "void foo;");
218 assertEquals("(void foo ;)", found);
222 var found = execParser(t057autoAST8Lexer, t057autoAST8Parser, "a", "void foo;");
223 assertEquals("(void foo ;)", found);
227 var found = execParser(t057autoAST9Lexer, t057autoAST9Parser, "a", "void foo;");
228 assertEquals("(foo void ;)", found);
232 var found = execParser(t057autoAST10Lexer, t057autoAST10Parser, "a", "void foo;");
233 assertEquals("(foo void ;)", found);
237 var found = execParser(t057autoAST11Lexer, t057autoAST11Parser, "a", "void foo;");
238 assertEquals("(foo void ;)", found);
242 var found = execParser(t057autoAST12Lexer, t057autoAST12Parser, "a", "a 34 c");
243 assertEquals("(34 a c)", found);
247 var found = execParser(t057autoAST13Lexer, t057autoAST13Parser, "a", "a 34 c");
248 assertEquals("(c (34 a))", found);
252 var found = execParser(t057autoAST14Lexer, t057autoAST14Parser, "a", "a 34 * b 9 * c");
253 assertEquals("(* (* (a 34) b 9) c)", found);
257 var found = execParser(t057autoAST15Lexer, t057autoAST15Parser, "a", "void a b;");
258 assertEquals("void a b ;", found);
262 var found = execParser(t057autoAST16Lexer, t057autoAST16Parser, "a", "int a");
263 assertEquals("int a", found);
267 var found = execParser(t057autoAST17Lexer, t057autoAST17Parser, "a", "int a");
268 assertEquals("(int a)", found);
272 var found = execParser(t057autoAST18Lexer, t057autoAST18Parser, "a", "int a");
273 assertEquals("(int a)", found);
277 var found = execParser(t057autoAST19Lexer, t057autoAST19Parser, "a", "int a");
278 assertEquals("(int a)", found);
282 var found = execParser(t057autoAST20Lexer, t057autoAST20Parser, "a", "a+b+c+d");
283 assertEquals("(+ (+ (+ a b) c) d)", found);
287 var found = execParser(t057autoAST21Lexer, t057autoAST21Parser, "a", "a+b+c-d");
288 assertEquals("(- (+ (+ a b) c) d)", found);
292 var found = execParser(t057autoAST22Lexer, t057autoAST22Parser, "s", "3 exp 4 exp 5");
293 assertEquals("(exp 3 (exp 4 5))", found);
297 var found = execParser(t057autoAST23Lexer, t057autoAST23Parser, "a", "abc");
298 assertEquals("abc", found);
302 var found = execParser(t057autoAST24Lexer, t057autoAST24Parser, "a", "+abc");
303 assertEquals("(+ abc)", found);
308 var found = execParser(t057autoAST25Lexer, t057autoAST25Parser, "a", "+abc");
309 assertEquals("(+ abc)", found);
313 var found = execParser(t057autoAST26Lexer, t057autoAST26Parser, "a", "a+b-c");
314 assertEquals("(- (+ a b) c)", found);
318 var found = execParser(t057autoAST27Lexer, t057autoAST27Parser, "a", "34+2");
319 assertEquals("34 + 2", found);
323 var found = execParser(t057autoAST28Lexer, t057autoAST28Parser, "a", "34+2");
324 assertEquals("34 + 2", found);
328 var found = execParser(t057autoAST29Lexer, t057autoAST29Parser, "a", "34+2");
329 assertEquals("34 + 2", found);
333 var found = execParser(t057autoAST30Lexer, t057autoAST30Parser, "a", "34 55");
334 assertEquals("(34 55)", found);
338 var found = execParser(t057autoAST31Lexer, t057autoAST31Parser, "a", "34 55");
339 assertEquals("(34 55)", found);
343 var found = execParser(t057autoAST32Lexer, t057autoAST32Parser, "a", "34 55");
344 assertEquals("(34 55)", found);
348 var found = execParser(t057autoAST33Lexer, t057autoAST33Parser, "a", "3+4+5");
349 assertEquals("(+ (+ 3 4) 5)", found);
355 var found = execParser(t057autoAST34Lexer, t057autoAST34Parser, "a", "a b");
356 assertEquals("2nd id=b;a b", found);
361 var found = execParser(t057autoAST35Lexer, t057autoAST35Parser, "a", "a b");
362 assertEquals("2nd id=b,(b a)", found);
368 var found = execParser(t057autoAST36Lexer, t057autoAST36Parser, "a", "a b");
370 assertEquals(expecting, found);
376 var found = execParser(t057autoAST37Lexer, t057autoAST37Parser, "a", "a b");
378 assertEquals(expecting, found);
382 var found = execParser(t057autoAST38Lexer, t057autoAST38Parser, "a", "a");
383 assertEquals("a", found);
387 var found = execParser(t057autoAST39Lexer, t057autoAST39Parser, "a", "a");
388 assertEquals("", found);
392 var found = execParser(t057autoAST40Lexer, t057autoAST40Parser, "a", "a b");
393 assertEquals("2nd x=b,a b", found);
397 var found = execParser(t057autoAST41Lexer, t057autoAST41Parser, "a", "a b");
398 assertEquals("x=(b a),(b a)", found);
402 var found = execParser(t057autoAST42Lexer, t057autoAST42Parser, "a", "a b");
403 assertEquals("1st x=a,b", found);
408 var found = execParser(t057autoAST43Lexer, t057autoAST43Parser, "a", "a b b c c d");
409 assertEquals("a b b c c d", found);
413 var found = execParser(t057autoAST44Lexer, t057autoAST44Parser, "a", "abc 34");
414 assertEquals("34\nabc 34", found);
418 var found = execParser(t057autoAST45Lexer, t057autoAST45Parser, "r", "abc 34 d");
419 assertEquals("abc 34 d", found);
423 found, errors = execParser(t057autoAST46Lexer, t057autoAST46Parser, "decl", "int 34 x=1;",
427 assertEquals("(int x 1)", found); // tree gets correct x and 1 tokens
431 found, errors = execParser(t057autoAST47Lexer, t057autoAST47Parser, "decl", "int =1;",
434 assertEquals("(int <missing ID> 1)", found); // tree gets invented ID token
438 found, errors = execParser(t057autoAST48Lexer, t057autoAST48Parser, "decl", "x=1;",
441 assertEquals("(<error: x> x 1)", found); // tree gets invented ID token
445 found, errors = execParser(t057autoAST49Lexer, t057autoAST49Parser, "a", "abc", true);
447 assertEquals("abc <missing INT>", found);
451 found, errors = execParser(t057autoAST50Lexer, t057autoAST50Parser, "a", "abc", true);
453 assertEquals("abc <missing INT>", found);
457 found, errors = execParser(t057autoAST51Lexer, t057autoAST51Parser, "a", "abc ick 34",
461 assertEquals("abc 34", found);
465 found, errors = execParser(t057autoAST52Lexer, t057autoAST52Parser, "a", "34", true);
467 assertEquals("<missing ID> 34", found);
471 found, errors = execParser(t057autoAST53Lexer, t057autoAST53Parser, "a", "34", true);
476 assertEquals("<missing ID> 34", found);
480 found, errors = execParser(t057autoAST54Lexer, t057autoAST54Parser, "a", "*", true);
484 found);