whistlepig 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/whistlepig/query-parser.lex.c +106 -182
- data/ext/whistlepig/query-parser.lex.h +1 -1
- metadata +6 -3
@@ -371,43 +371,43 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
|
|
371
371
|
*yy_cp = '\0'; \
|
372
372
|
yyg->yy_c_buf_p = yy_cp;
|
373
373
|
|
374
|
-
#define YY_NUM_RULES
|
375
|
-
#define YY_END_OF_BUFFER
|
374
|
+
#define YY_NUM_RULES 5
|
375
|
+
#define YY_END_OF_BUFFER 6
|
376
376
|
struct yy_trans_info
|
377
377
|
{
|
378
378
|
flex_int16_t yy_verify;
|
379
379
|
flex_int16_t yy_nxt;
|
380
380
|
};
|
381
|
-
static yyconst struct yy_trans_info yy_transition[
|
381
|
+
static yyconst struct yy_trans_info yy_transition[1314] =
|
382
382
|
{
|
383
|
-
{ 0, 0 }, { 0,
|
383
|
+
{ 0, 0 }, { 0,1058 }, { 0, 0 }, { 0,1056 }, { 1, 516 },
|
384
384
|
{ 2, 516 }, { 3, 516 }, { 4, 516 }, { 5, 516 }, { 6, 516 },
|
385
385
|
{ 7, 516 }, { 8, 516 }, { 9, 518 }, { 10, 520 }, { 11, 516 },
|
386
386
|
{ 12, 516 }, { 13, 516 }, { 14, 516 }, { 15, 516 }, { 16, 516 },
|
387
387
|
{ 17, 516 }, { 18, 516 }, { 19, 516 }, { 20, 516 }, { 21, 516 },
|
388
388
|
{ 22, 516 }, { 23, 516 }, { 24, 516 }, { 25, 516 }, { 26, 516 },
|
389
389
|
{ 27, 516 }, { 28, 516 }, { 29, 516 }, { 30, 516 }, { 31, 516 },
|
390
|
-
{ 32, 518 }, { 33,
|
391
|
-
{ 37,
|
392
|
-
{ 42,
|
390
|
+
{ 32, 518 }, { 33, 522 }, { 34, 516 }, { 35, 522 }, { 36, 522 },
|
391
|
+
{ 37, 522 }, { 38, 522 }, { 39, 522 }, { 40, 516 }, { 41, 516 },
|
392
|
+
{ 42, 522 }, { 43, 522 }, { 44, 522 }, { 45, 516 }, { 46, 522 },
|
393
393
|
|
394
|
-
{ 47,
|
394
|
+
{ 47, 522 }, { 48, 522 }, { 49, 522 }, { 50, 522 }, { 51, 522 },
|
395
395
|
{ 52, 522 }, { 53, 522 }, { 54, 522 }, { 55, 522 }, { 56, 522 },
|
396
|
-
{ 57, 522 }, { 58, 516 }, { 59, 516 }, { 60,
|
397
|
-
{ 62,
|
396
|
+
{ 57, 522 }, { 58, 516 }, { 59, 516 }, { 60, 522 }, { 61, 522 },
|
397
|
+
{ 62, 522 }, { 63, 522 }, { 64, 522 }, { 65, 522 }, { 66, 522 },
|
398
398
|
{ 67, 522 }, { 68, 522 }, { 69, 522 }, { 70, 522 }, { 71, 522 },
|
399
399
|
{ 72, 522 }, { 73, 522 }, { 74, 522 }, { 75, 522 }, { 76, 522 },
|
400
400
|
{ 77, 522 }, { 78, 522 }, { 79, 614 }, { 80, 522 }, { 81, 522 },
|
401
401
|
{ 82, 522 }, { 83, 522 }, { 84, 522 }, { 85, 522 }, { 86, 522 },
|
402
402
|
{ 87, 522 }, { 88, 522 }, { 89, 522 }, { 90, 522 }, { 91, 516 },
|
403
|
-
{ 92, 516 }, { 93, 516 }, { 94,
|
403
|
+
{ 92, 516 }, { 93, 516 }, { 94, 522 }, { 95, 522 }, { 96, 522 },
|
404
404
|
|
405
405
|
{ 97, 522 }, { 98, 522 }, { 99, 522 }, { 100, 522 }, { 101, 522 },
|
406
406
|
{ 102, 522 }, { 103, 522 }, { 104, 522 }, { 105, 522 }, { 106, 522 },
|
407
407
|
{ 107, 522 }, { 108, 522 }, { 109, 522 }, { 110, 522 }, { 111, 522 },
|
408
408
|
{ 112, 522 }, { 113, 522 }, { 114, 522 }, { 115, 522 }, { 116, 522 },
|
409
409
|
{ 117, 522 }, { 118, 522 }, { 119, 522 }, { 120, 522 }, { 121, 522 },
|
410
|
-
{ 122, 522 }, { 123, 516 }, { 124,
|
410
|
+
{ 122, 522 }, { 123, 516 }, { 124, 522 }, { 125, 516 }, { 126, 516 },
|
411
411
|
{ 127, 516 }, { 128, 516 }, { 129, 516 }, { 130, 516 }, { 131, 516 },
|
412
412
|
{ 132, 516 }, { 133, 516 }, { 134, 516 }, { 135, 516 }, { 136, 516 },
|
413
413
|
{ 137, 516 }, { 138, 516 }, { 139, 516 }, { 140, 516 }, { 141, 516 },
|
@@ -437,34 +437,34 @@ static yyconst struct yy_trans_info yy_transition[1498] =
|
|
437
437
|
|
438
438
|
{ 247, 516 }, { 248, 516 }, { 249, 516 }, { 250, 516 }, { 251, 516 },
|
439
439
|
{ 252, 516 }, { 253, 516 }, { 254, 516 }, { 255, 516 }, { 256, 516 },
|
440
|
-
{ 0, 0 }, { 0,
|
440
|
+
{ 0, 0 }, { 0, 798 }, { 1, 258 }, { 2, 258 }, { 3, 258 },
|
441
441
|
{ 4, 258 }, { 5, 258 }, { 6, 258 }, { 7, 258 }, { 8, 258 },
|
442
442
|
{ 9, 260 }, { 10, 262 }, { 11, 258 }, { 12, 258 }, { 13, 258 },
|
443
443
|
{ 14, 258 }, { 15, 258 }, { 16, 258 }, { 17, 258 }, { 18, 258 },
|
444
444
|
{ 19, 258 }, { 20, 258 }, { 21, 258 }, { 22, 258 }, { 23, 258 },
|
445
445
|
{ 24, 258 }, { 25, 258 }, { 26, 258 }, { 27, 258 }, { 28, 258 },
|
446
|
-
{ 29, 258 }, { 30, 258 }, { 31, 258 }, { 32, 260 }, { 33,
|
447
|
-
{ 34, 258 }, { 35,
|
446
|
+
{ 29, 258 }, { 30, 258 }, { 31, 258 }, { 32, 260 }, { 33, 264 },
|
447
|
+
{ 34, 258 }, { 35, 264 }, { 36, 264 }, { 37, 264 }, { 38, 264 },
|
448
448
|
|
449
|
-
{ 39,
|
450
|
-
{ 44,
|
449
|
+
{ 39, 264 }, { 40, 258 }, { 41, 258 }, { 42, 264 }, { 43, 264 },
|
450
|
+
{ 44, 264 }, { 45, 258 }, { 46, 264 }, { 47, 264 }, { 48, 264 },
|
451
451
|
{ 49, 264 }, { 50, 264 }, { 51, 264 }, { 52, 264 }, { 53, 264 },
|
452
452
|
{ 54, 264 }, { 55, 264 }, { 56, 264 }, { 57, 264 }, { 58, 258 },
|
453
|
-
{ 59, 258 }, { 60,
|
454
|
-
{ 64,
|
453
|
+
{ 59, 258 }, { 60, 264 }, { 61, 264 }, { 62, 264 }, { 63, 264 },
|
454
|
+
{ 64, 264 }, { 65, 264 }, { 66, 264 }, { 67, 264 }, { 68, 264 },
|
455
455
|
{ 69, 264 }, { 70, 264 }, { 71, 264 }, { 72, 264 }, { 73, 264 },
|
456
456
|
{ 74, 264 }, { 75, 264 }, { 76, 264 }, { 77, 264 }, { 78, 264 },
|
457
457
|
{ 79, 356 }, { 80, 264 }, { 81, 264 }, { 82, 264 }, { 83, 264 },
|
458
458
|
{ 84, 264 }, { 85, 264 }, { 86, 264 }, { 87, 264 }, { 88, 264 },
|
459
459
|
|
460
460
|
{ 89, 264 }, { 90, 264 }, { 91, 258 }, { 92, 258 }, { 93, 258 },
|
461
|
-
{ 94,
|
461
|
+
{ 94, 264 }, { 95, 264 }, { 96, 264 }, { 97, 264 }, { 98, 264 },
|
462
462
|
{ 99, 264 }, { 100, 264 }, { 101, 264 }, { 102, 264 }, { 103, 264 },
|
463
463
|
{ 104, 264 }, { 105, 264 }, { 106, 264 }, { 107, 264 }, { 108, 264 },
|
464
464
|
{ 109, 264 }, { 110, 264 }, { 111, 264 }, { 112, 264 }, { 113, 264 },
|
465
465
|
{ 114, 264 }, { 115, 264 }, { 116, 264 }, { 117, 264 }, { 118, 264 },
|
466
466
|
{ 119, 264 }, { 120, 264 }, { 121, 264 }, { 122, 264 }, { 123, 258 },
|
467
|
-
{ 124,
|
467
|
+
{ 124, 264 }, { 125, 258 }, { 126, 258 }, { 127, 258 }, { 128, 258 },
|
468
468
|
{ 129, 258 }, { 130, 258 }, { 131, 258 }, { 132, 258 }, { 133, 258 },
|
469
469
|
{ 134, 258 }, { 135, 258 }, { 136, 258 }, { 137, 258 }, { 138, 258 },
|
470
470
|
|
@@ -493,146 +493,105 @@ static yyconst struct yy_trans_info yy_transition[1498] =
|
|
493
493
|
{ 239, 258 }, { 240, 258 }, { 241, 258 }, { 242, 258 }, { 243, 258 },
|
494
494
|
{ 244, 258 }, { 245, 258 }, { 246, 258 }, { 247, 258 }, { 248, 258 },
|
495
495
|
{ 249, 258 }, { 250, 258 }, { 251, 258 }, { 252, 258 }, { 253, 258 },
|
496
|
-
{ 254, 258 }, { 255, 258 }, { 256, 258 }, { 0,
|
497
|
-
{ 0,
|
498
|
-
{ 0,
|
496
|
+
{ 254, 258 }, { 255, 258 }, { 256, 258 }, { 0, 4 }, { 0, 540 },
|
497
|
+
{ 0, 3 }, { 0, 538 }, { 0, 3 }, { 0, 536 }, { 0, 2 },
|
498
|
+
{ 0, 534 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
499
499
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
500
500
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
501
501
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
502
502
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
503
503
|
|
504
504
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
505
|
-
{ 0, 0 }, { 0, 0 }, { 0, 0 }, {
|
506
|
-
{ 35, 184 }, {
|
507
|
-
{ 0, 0 }, { 0, 0 }, {
|
508
|
-
{ 45, 184 }, { 46,
|
505
|
+
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 33, 184 }, { 0, 0 },
|
506
|
+
{ 35, 184 }, { 36, 184 }, { 37, 184 }, { 38, 184 }, { 39, 184 },
|
507
|
+
{ 0, 0 }, { 0, 0 }, { 42, 184 }, { 43, 184 }, { 44, 184 },
|
508
|
+
{ 45, 184 }, { 46, 184 }, { 47, 184 }, { 48, 184 }, { 49, 184 },
|
509
509
|
{ 50, 184 }, { 51, 184 }, { 52, 184 }, { 53, 184 }, { 54, 184 },
|
510
510
|
{ 55, 184 }, { 56, 184 }, { 57, 184 }, { 0, 0 }, { 0, 0 },
|
511
|
-
{
|
511
|
+
{ 60, 184 }, { 61, 184 }, { 62, 184 }, { 63, 184 }, { 64, 184 },
|
512
512
|
{ 65, 184 }, { 66, 184 }, { 67, 184 }, { 68, 184 }, { 69, 184 },
|
513
513
|
{ 70, 184 }, { 71, 184 }, { 72, 184 }, { 73, 184 }, { 74, 184 },
|
514
514
|
|
515
515
|
{ 75, 184 }, { 76, 184 }, { 77, 184 }, { 78, 184 }, { 79, 184 },
|
516
516
|
{ 80, 184 }, { 81, 184 }, { 82, 184 }, { 83, 184 }, { 84, 184 },
|
517
517
|
{ 85, 184 }, { 86, 184 }, { 87, 184 }, { 88, 184 }, { 89, 184 },
|
518
|
-
{ 90, 184 }, { 0,
|
519
|
-
{ 95, 184 }, {
|
518
|
+
{ 90, 184 }, { 0, 2 }, { 0, 442 }, { 0, 0 }, { 94, 184 },
|
519
|
+
{ 95, 184 }, { 96, 184 }, { 97, 184 }, { 98, 184 }, { 99, 184 },
|
520
520
|
{ 100, 184 }, { 101, 184 }, { 102, 184 }, { 103, 184 }, { 104, 184 },
|
521
521
|
{ 105, 184 }, { 106, 184 }, { 107, 184 }, { 108, 184 }, { 109, 184 },
|
522
522
|
{ 110, 184 }, { 111, 184 }, { 112, 184 }, { 113, 184 }, { 114, 184 },
|
523
523
|
{ 115, 184 }, { 116, 184 }, { 117, 184 }, { 118, 184 }, { 119, 184 },
|
524
|
-
{ 120, 184 }, { 121, 184 }, { 122, 184 }, { 0, 0 }, {
|
524
|
+
{ 120, 184 }, { 121, 184 }, { 122, 184 }, { 0, 0 }, { 124, 184 },
|
525
525
|
|
526
|
-
{
|
527
|
-
{
|
528
|
-
{
|
526
|
+
{ 33, 92 }, { 126, 184 }, { 35, 92 }, { 36, 92 }, { 37, 92 },
|
527
|
+
{ 38, 92 }, { 39, 92 }, { 0, 0 }, { 0, 0 }, { 42, 92 },
|
528
|
+
{ 43, 92 }, { 44, 92 }, { 45, 92 }, { 46, 92 }, { 47, 92 },
|
529
529
|
{ 48, 92 }, { 49, 92 }, { 50, 92 }, { 51, 92 }, { 52, 92 },
|
530
530
|
{ 53, 92 }, { 54, 92 }, { 55, 92 }, { 56, 92 }, { 57, 92 },
|
531
|
-
{ 0, 0 }, { 0, 0 }, {
|
532
|
-
{
|
531
|
+
{ 0, 0 }, { 0, 0 }, { 60, 92 }, { 61, 92 }, { 62, 92 },
|
532
|
+
{ 63, 92 }, { 64, 92 }, { 65, 92 }, { 66, 92 }, { 67, 92 },
|
533
533
|
{ 68, 92 }, { 69, 92 }, { 70, 92 }, { 71, 92 }, { 72, 92 },
|
534
534
|
{ 73, 92 }, { 74, 92 }, { 75, 92 }, { 76, 92 }, { 77, 92 },
|
535
|
-
{ 78, 92 }, { 79, 92 }, { 80, 92 }, { 81, 92 }, { 82,
|
535
|
+
{ 78, 92 }, { 79, 92 }, { 80, 92 }, { 81, 92 }, { 82, 184 },
|
536
536
|
|
537
537
|
{ 83, 92 }, { 84, 92 }, { 85, 92 }, { 86, 92 }, { 87, 92 },
|
538
|
-
{ 88, 92 }, { 89, 92 }, { 90, 92 }, { 0, 2 }, { 0,
|
539
|
-
{ 0, 0 }, {
|
538
|
+
{ 88, 92 }, { 89, 92 }, { 90, 92 }, { 0, 2 }, { 0, 350 },
|
539
|
+
{ 0, 0 }, { 94, 92 }, { 95, 92 }, { 96, 92 }, { 97, 92 },
|
540
540
|
{ 98, 92 }, { 99, 92 }, { 100, 92 }, { 101, 92 }, { 102, 92 },
|
541
541
|
{ 103, 92 }, { 104, 92 }, { 105, 92 }, { 106, 92 }, { 107, 92 },
|
542
542
|
{ 108, 92 }, { 109, 92 }, { 110, 92 }, { 111, 92 }, { 112, 92 },
|
543
543
|
{ 113, 92 }, { 114, 92 }, { 115, 92 }, { 116, 92 }, { 117, 92 },
|
544
544
|
{ 118, 92 }, { 119, 92 }, { 120, 92 }, { 121, 92 }, { 122, 92 },
|
545
|
-
{ 0, 0 }, {
|
546
|
-
{
|
547
|
-
|
548
|
-
{ 0, 0 }, {
|
549
|
-
{ 46,
|
550
|
-
{ 51,
|
551
|
-
{ 56,
|
552
|
-
{
|
553
|
-
{ 66,
|
554
|
-
{ 71,
|
555
|
-
{ 76,
|
556
|
-
{ 81,
|
557
|
-
{ 86,
|
558
|
-
|
559
|
-
{ 0,
|
560
|
-
{
|
561
|
-
{ 101,
|
562
|
-
{ 106,
|
563
|
-
{ 111,
|
564
|
-
{ 116,
|
565
|
-
{ 121,
|
566
|
-
{
|
567
|
-
{ 39,
|
568
|
-
{
|
569
|
-
|
570
|
-
{ 49,
|
571
|
-
{ 54,
|
572
|
-
{ 0, 0 }, {
|
573
|
-
{ 64,
|
574
|
-
{ 69,
|
575
|
-
{ 74,
|
576
|
-
{ 79,
|
577
|
-
{ 84,
|
578
|
-
{ 89,
|
579
|
-
{
|
580
|
-
|
581
|
-
{ 99,
|
582
|
-
{ 104,
|
583
|
-
{ 109,
|
584
|
-
{ 114,
|
585
|
-
{ 119,
|
586
|
-
{
|
587
|
-
{ 0, 0 }, { 0, 0 }, { 39, -92 }, { 0, 0 }, { 0, 0 },
|
588
|
-
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 45, 92 }, { 46, -92 },
|
589
|
-
{ 47, -92 }, { 48, 92 }, { 49, 92 }, { 50, 92 }, { 51, 92 },
|
590
|
-
{ 52, 92 }, { 53, 92 }, { 54, 92 }, { 55, 92 }, { 56, 92 },
|
591
|
-
|
592
|
-
{ 57, 92 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
593
|
-
{ 0, 0 }, { 0, 0 }, { 64, 92 }, { 65, 92 }, { 66, 92 },
|
594
|
-
{ 67, 92 }, { 68, 92 }, { 69, 92 }, { 70, 92 }, { 71, 92 },
|
595
|
-
{ 72, 92 }, { 73, 92 }, { 74, 92 }, { 75, 92 }, { 76, 92 },
|
596
|
-
{ 77, 92 }, { 78, 92 }, { 79, 92 }, { 80, 92 }, { 81, 92 },
|
597
|
-
{ 82, 92 }, { 83, 92 }, { 84, 92 }, { 85, 92 }, { 86, 92 },
|
598
|
-
{ 87, 92 }, { 88, 92 }, { 89, 92 }, { 90, 92 }, { 0, 2 },
|
599
|
-
{ 0, 258 }, { 0, 0 }, { 0, 0 }, { 95, 92 }, { 0, 0 },
|
600
|
-
{ 97, 92 }, { 98, 92 }, { 99, 92 }, { 100, 92 }, { 101, 92 },
|
601
|
-
{ 102, 92 }, { 103, 92 }, { 104, 92 }, { 105, 92 }, { 106, 92 },
|
602
|
-
|
603
|
-
{ 107, 92 }, { 108, 92 }, { 109, 92 }, { 110, 92 }, { 111, 92 },
|
604
|
-
{ 112, 92 }, { 113, 92 }, { 114, 92 }, { 115, 92 }, { 116, 92 },
|
605
|
-
{ 117, 92 }, { 118, 92 }, { 119, 92 }, { 120, 92 }, { 121, 92 },
|
606
|
-
{ 122, 92 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
607
|
-
{ 35, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 39,-184 },
|
608
|
-
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
609
|
-
{ 45, 0 }, { 46,-184 }, { 47,-184 }, { 48, 0 }, { 49, 0 },
|
610
|
-
{ 50, 0 }, { 51, 0 }, { 52, 0 }, { 53, 0 }, { 54, 0 },
|
611
|
-
{ 55, 0 }, { 56, 0 }, { 57, 0 }, { 0, 0 }, { 0, 0 },
|
612
|
-
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 64, 0 },
|
613
|
-
|
614
|
-
{ 65, 0 }, { 66, 0 }, { 67, 0 }, { 68, 0 }, { 69, 0 },
|
615
|
-
{ 70, 0 }, { 71, 0 }, { 72, 0 }, { 73, 0 }, { 74, 0 },
|
616
|
-
{ 75, 0 }, { 76, 0 }, { 77, 0 }, { 78, 0 }, { 79, 0 },
|
617
|
-
{ 80, 0 }, { 81, 0 }, { 82, 0 }, { 83, 0 }, { 84, 0 },
|
618
|
-
{ 85, 0 }, { 86, 0 }, { 87, 0 }, { 88, 0 }, { 89, 0 },
|
619
|
-
{ 90, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
620
|
-
{ 95, 0 }, { 0, 0 }, { 97, 0 }, { 98, 0 }, { 99, 0 },
|
621
|
-
{ 100, 0 }, { 101, 0 }, { 102, 0 }, { 103, 0 }, { 104, 0 },
|
622
|
-
{ 105, 0 }, { 106, 0 }, { 107, 0 }, { 108, 0 }, { 109, 0 },
|
623
|
-
{ 110, 0 }, { 111, 0 }, { 112, 0 }, { 113, 0 }, { 114, 0 },
|
624
|
-
|
625
|
-
{ 115, 0 }, { 116, 0 }, { 117, 0 }, { 118, 0 }, { 119, 0 },
|
626
|
-
{ 120, 0 }, { 121, 0 }, { 122, 0 }, { 0, 0 }, { 0, 0 },
|
627
|
-
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
545
|
+
{ 0, 0 }, { 124, 92 }, { 33, 0 }, { 126, 92 }, { 35, 0 },
|
546
|
+
{ 36, 0 }, { 37, 0 }, { 38, 0 }, { 39, 0 }, { 0, 0 },
|
547
|
+
|
548
|
+
{ 0, 0 }, { 42, 0 }, { 43, 0 }, { 44, 0 }, { 45, 0 },
|
549
|
+
{ 46, 0 }, { 47, 0 }, { 48, 0 }, { 49, 0 }, { 50, 0 },
|
550
|
+
{ 51, 0 }, { 52, 0 }, { 53, 0 }, { 54, 0 }, { 55, 0 },
|
551
|
+
{ 56, 0 }, { 57, 0 }, { 0, 0 }, { 0, 0 }, { 60, 0 },
|
552
|
+
{ 61, 0 }, { 62, 0 }, { 63, 0 }, { 64, 0 }, { 65, 0 },
|
553
|
+
{ 66, 0 }, { 67, 0 }, { 68, 0 }, { 69, 0 }, { 70, 0 },
|
554
|
+
{ 71, 0 }, { 72, 0 }, { 73, 0 }, { 74, 0 }, { 75, 0 },
|
555
|
+
{ 76, 0 }, { 77, 0 }, { 78, 0 }, { 79, 0 }, { 80, 0 },
|
556
|
+
{ 81, 0 }, { 82, 0 }, { 83, 0 }, { 84, 0 }, { 85, 0 },
|
557
|
+
{ 86, 0 }, { 87, 0 }, { 88, 0 }, { 89, 0 }, { 90, 0 },
|
558
|
+
|
559
|
+
{ 0, 1 }, { 0, 258 }, { 0, 0 }, { 94, 0 }, { 95, 0 },
|
560
|
+
{ 96, 0 }, { 97, 0 }, { 98, 0 }, { 99, 0 }, { 100, 0 },
|
561
|
+
{ 101, 0 }, { 102, 0 }, { 103, 0 }, { 104, 0 }, { 105, 0 },
|
562
|
+
{ 106, 0 }, { 107, 0 }, { 108, 0 }, { 109, 0 }, { 110, 0 },
|
563
|
+
{ 111, 0 }, { 112, 0 }, { 113, 0 }, { 114, 0 }, { 115, 0 },
|
564
|
+
{ 116, 0 }, { 117, 0 }, { 118, 0 }, { 119, 0 }, { 120, 0 },
|
565
|
+
{ 121, 0 }, { 122, 0 }, { 0, 0 }, { 124, 0 }, { 33, -92 },
|
566
|
+
{ 126, 0 }, { 35, -92 }, { 36, -92 }, { 37, -92 }, { 38, -92 },
|
567
|
+
{ 39, -92 }, { 0, 0 }, { 0, 0 }, { 42, -92 }, { 43, -92 },
|
568
|
+
{ 44, -92 }, { 45, -92 }, { 46, -92 }, { 47, -92 }, { 48, -92 },
|
569
|
+
|
570
|
+
{ 49, -92 }, { 50, -92 }, { 51, -92 }, { 52, -92 }, { 53, -92 },
|
571
|
+
{ 54, -92 }, { 55, -92 }, { 56, -92 }, { 57, -92 }, { 0, 0 },
|
572
|
+
{ 0, 0 }, { 60, -92 }, { 61, -92 }, { 62, -92 }, { 63, -92 },
|
573
|
+
{ 64, -92 }, { 65, -92 }, { 66, -92 }, { 67, -92 }, { 68, -92 },
|
574
|
+
{ 69, -92 }, { 70, -92 }, { 71, -92 }, { 72, -92 }, { 73, -92 },
|
575
|
+
{ 74, -92 }, { 75, -92 }, { 76, -92 }, { 77, -92 }, { 78, -92 },
|
576
|
+
{ 79, -92 }, { 80, -92 }, { 81, -92 }, { 82, -92 }, { 83, -92 },
|
577
|
+
{ 84, -92 }, { 85, -92 }, { 86, -92 }, { 87, -92 }, { 88, -92 },
|
578
|
+
{ 89, -92 }, { 90, -92 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
579
|
+
{ 94, -92 }, { 95, -92 }, { 96, -92 }, { 97, -92 }, { 98, -92 },
|
580
|
+
|
581
|
+
{ 99, -92 }, { 100, -92 }, { 101, -92 }, { 102, -92 }, { 103, -92 },
|
582
|
+
{ 104, -92 }, { 105, -92 }, { 106, -92 }, { 107, -92 }, { 108, -92 },
|
583
|
+
{ 109, -92 }, { 110, -92 }, { 111, -92 }, { 112, -92 }, { 113, -92 },
|
584
|
+
{ 114, -92 }, { 115, -92 }, { 116, -92 }, { 117, -92 }, { 118, -92 },
|
585
|
+
{ 119, -92 }, { 120, -92 }, { 121, -92 }, { 122, -92 }, { 0, 0 },
|
586
|
+
{ 124, -92 }, { 0, 0 }, { 126, -92 }, { 0, 0 }, { 0, 0 },
|
628
587
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
629
588
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
630
589
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
631
590
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
591
|
+
|
632
592
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
633
593
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
634
594
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
635
|
-
|
636
595
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
637
596
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
638
597
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
@@ -640,10 +599,10 @@ static yyconst struct yy_trans_info yy_transition[1498] =
|
|
640
599
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
641
600
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
642
601
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
602
|
+
|
643
603
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
644
604
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
645
605
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
646
|
-
|
647
606
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
648
607
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
649
608
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
@@ -651,21 +610,22 @@ static yyconst struct yy_trans_info yy_transition[1498] =
|
|
651
610
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
652
611
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
653
612
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
613
|
+
|
654
614
|
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
|
655
|
-
{ 0, 0 }, { 0, 0 }, { 257,
|
615
|
+
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 257, 6 }, { 1, 0 },
|
616
|
+
};
|
656
617
|
|
657
618
|
static yyconst struct yy_trans_info *yy_start_state_list[3] =
|
658
619
|
{
|
659
620
|
&yy_transition[1],
|
660
621
|
&yy_transition[3],
|
661
622
|
&yy_transition[261],
|
662
|
-
|
663
623
|
} ;
|
664
624
|
|
665
625
|
/* Table of booleans, true if rule could match eol. */
|
666
|
-
static yyconst flex_int32_t yy_rule_can_match_eol[
|
626
|
+
static yyconst flex_int32_t yy_rule_can_match_eol[6] =
|
667
627
|
{ 0,
|
668
|
-
0, 0,
|
628
|
+
0, 0, 1, 0, 0, };
|
669
629
|
|
670
630
|
/* The intent behind this definition is that it'll catch
|
671
631
|
* any uses of REJECT which flex missed.
|
@@ -695,7 +655,9 @@ static yyconst flex_int32_t yy_rule_can_match_eol[7] =
|
|
695
655
|
} \
|
696
656
|
}
|
697
657
|
|
698
|
-
|
658
|
+
/* for the first char, everything is allowed except ()"-~ */
|
659
|
+
/* inside a word, everything is allowed except ()" */
|
660
|
+
#line 661 "query-parser.lex.c"
|
699
661
|
|
700
662
|
#define INITIAL 0
|
701
663
|
|
@@ -925,10 +887,10 @@ YY_DECL
|
|
925
887
|
register int yy_act;
|
926
888
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
927
889
|
|
928
|
-
#line
|
890
|
+
#line 34 "query-parser.lex"
|
929
891
|
|
930
892
|
|
931
|
-
#line
|
893
|
+
#line 894 "query-parser.lex.c"
|
932
894
|
|
933
895
|
yylval = yylval_param;
|
934
896
|
|
@@ -983,15 +945,7 @@ yy_match:
|
|
983
945
|
(yy_trans_info = &yy_current_state[(unsigned int) yy_c])->
|
984
946
|
yy_verify == yy_c;
|
985
947
|
yy_c = YY_SC_TO_UI(*++yy_cp) )
|
986
|
-
{
|
987
948
|
yy_current_state += yy_trans_info->yy_nxt;
|
988
|
-
|
989
|
-
if ( yy_current_state[-1].yy_nxt )
|
990
|
-
{
|
991
|
-
yyg->yy_last_accepting_state = yy_current_state;
|
992
|
-
yyg->yy_last_accepting_cpos = yy_cp;
|
993
|
-
}
|
994
|
-
}
|
995
949
|
}
|
996
950
|
|
997
951
|
yy_find_action:
|
@@ -1015,53 +969,38 @@ do_action: /* This label is used only to access EOF actions. */
|
|
1015
969
|
|
1016
970
|
switch ( yy_act )
|
1017
971
|
{ /* beginning of action switch */
|
1018
|
-
case 0: /* must back up */
|
1019
|
-
/* undo the effects of YY_DO_BEFORE_ACTION */
|
1020
|
-
*yy_cp = yyg->yy_hold_char;
|
1021
|
-
yy_cp = yyg->yy_last_accepting_cpos + 1;
|
1022
|
-
yy_current_state = yyg->yy_last_accepting_state;
|
1023
|
-
goto yy_find_action;
|
1024
|
-
|
1025
972
|
case 1:
|
1026
973
|
YY_RULE_SETUP
|
1027
|
-
#line
|
974
|
+
#line 36 "query-parser.lex"
|
1028
975
|
return OR;
|
1029
976
|
YY_BREAK
|
1030
977
|
case 2:
|
1031
978
|
YY_RULE_SETUP
|
1032
|
-
#line
|
979
|
+
#line 38 "query-parser.lex"
|
1033
980
|
{
|
1034
981
|
yylval->string = strdup(yytext);
|
1035
982
|
return WORD;
|
1036
983
|
}
|
1037
984
|
YY_BREAK
|
1038
985
|
case 3:
|
986
|
+
/* rule 3 can match eol */
|
1039
987
|
YY_RULE_SETUP
|
1040
|
-
#line
|
1041
|
-
|
1042
|
-
yylval->string = strdup(yytext);
|
1043
|
-
return WORD;
|
1044
|
-
}
|
988
|
+
#line 43 "query-parser.lex"
|
989
|
+
; // nothing
|
1045
990
|
YY_BREAK
|
1046
991
|
case 4:
|
1047
|
-
/* rule 4 can match eol */
|
1048
|
-
YY_RULE_SETUP
|
1049
|
-
#line 46 "query-parser.lex"
|
1050
|
-
{ } ; // nothing
|
1051
|
-
YY_BREAK
|
1052
|
-
case 5:
|
1053
992
|
YY_RULE_SETUP
|
1054
|
-
#line
|
993
|
+
#line 45 "query-parser.lex"
|
1055
994
|
return yytext[0];
|
1056
995
|
YY_BREAK
|
1057
|
-
case
|
996
|
+
case 5:
|
1058
997
|
YY_RULE_SETUP
|
1059
|
-
#line
|
998
|
+
#line 47 "query-parser.lex"
|
1060
999
|
ECHO;
|
1061
1000
|
YY_BREAK
|
1062
|
-
#line
|
1063
|
-
case YY_STATE_EOF(INITIAL):
|
1064
|
-
|
1001
|
+
#line 1002 "query-parser.lex.c"
|
1002
|
+
case YY_STATE_EOF(INITIAL):
|
1003
|
+
yyterminate();
|
1065
1004
|
|
1066
1005
|
case YY_END_OF_BUFFER:
|
1067
1006
|
{
|
@@ -1345,11 +1284,6 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1345
1284
|
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
1346
1285
|
{
|
1347
1286
|
yy_current_state += yy_current_state[(*yy_cp ? YY_SC_TO_UI(*yy_cp) : 256)].yy_nxt;
|
1348
|
-
if ( yy_current_state[-1].yy_nxt )
|
1349
|
-
{
|
1350
|
-
yyg->yy_last_accepting_state = yy_current_state;
|
1351
|
-
yyg->yy_last_accepting_cpos = yy_cp;
|
1352
|
-
}
|
1353
1287
|
}
|
1354
1288
|
|
1355
1289
|
return yy_current_state;
|
@@ -1364,7 +1298,6 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1364
1298
|
{
|
1365
1299
|
register int yy_is_jam;
|
1366
1300
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
|
1367
|
-
register char *yy_cp = yyg->yy_c_buf_p;
|
1368
1301
|
|
1369
1302
|
register int yy_c = 256;
|
1370
1303
|
register yyconst struct yy_trans_info *yy_trans_info;
|
@@ -1373,15 +1306,6 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1373
1306
|
yy_current_state += yy_trans_info->yy_nxt;
|
1374
1307
|
yy_is_jam = (yy_trans_info->yy_verify != yy_c);
|
1375
1308
|
|
1376
|
-
if ( ! yy_is_jam )
|
1377
|
-
{
|
1378
|
-
if ( yy_current_state[-1].yy_nxt )
|
1379
|
-
{
|
1380
|
-
yyg->yy_last_accepting_state = yy_current_state;
|
1381
|
-
yyg->yy_last_accepting_cpos = yy_cp;
|
1382
|
-
}
|
1383
|
-
}
|
1384
|
-
|
1385
1309
|
return yy_is_jam ? 0 : yy_current_state;
|
1386
1310
|
}
|
1387
1311
|
|
@@ -2243,7 +2167,7 @@ void query_parser_free (void * ptr , yyscan_t yyscanner)
|
|
2243
2167
|
|
2244
2168
|
#define YYTABLES_NAME "yytables"
|
2245
2169
|
|
2246
|
-
#line
|
2170
|
+
#line 47 "query-parser.lex"
|
2247
2171
|
|
2248
2172
|
|
2249
2173
|
|
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whistlepig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
-
|
8
|
-
version: "0.
|
8
|
+
- 4
|
9
|
+
version: "0.4"
|
9
10
|
platform: ruby
|
10
11
|
authors:
|
11
12
|
- William Morgan
|
@@ -13,7 +14,7 @@ autorequire:
|
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
16
|
|
16
|
-
date: 2011-02-20
|
17
|
+
date: 2011-02-24 20:00:14 -08:00
|
17
18
|
default_executable:
|
18
19
|
dependencies: []
|
19
20
|
|
@@ -82,6 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
83
|
requirements:
|
83
84
|
- - ">="
|
84
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
85
87
|
segments:
|
86
88
|
- 0
|
87
89
|
version: "0"
|
@@ -90,6 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
92
|
requirements:
|
91
93
|
- - ">="
|
92
94
|
- !ruby/object:Gem::Version
|
95
|
+
hash: 3
|
93
96
|
segments:
|
94
97
|
- 0
|
95
98
|
version: "0"
|