slow_blink 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/slow_blink/ext_schema_parser/lexer.c +168 -177
- data/ext/slow_blink/ext_schema_parser/lexer.h +1 -1
- data/ext/slow_blink/ext_schema_parser/parser.c +303 -306
- data/ext/slow_blink/ext_schema_parser/parser.h +11 -12
- data/ext/slow_blink/{ext_compact_encoder → message/ext_compact_encoder}/ext_compact_encoder.c +3 -1
- data/ext/slow_blink/message/ext_compact_encoder/extconf.rb +4 -0
- data/lib/slow_blink/error.rb +1 -1
- data/lib/slow_blink/message/binary.rb +19 -26
- data/lib/slow_blink/message/boolean.rb +17 -17
- data/lib/slow_blink/message/date.rb +24 -0
- data/lib/slow_blink/message/decimal.rb +34 -0
- data/lib/slow_blink/message/enumeration.rb +24 -23
- data/lib/slow_blink/message/field.rb +45 -6
- data/lib/slow_blink/message/fixed.rb +35 -25
- data/lib/slow_blink/message/floating_point.rb +16 -17
- data/lib/slow_blink/message/group.rb +242 -136
- data/lib/slow_blink/message/integer.rb +77 -51
- data/lib/slow_blink/message/model.rb +121 -85
- data/lib/slow_blink/message/sequence.rb +43 -28
- data/lib/slow_blink/message/string.rb +17 -31
- data/lib/slow_blink/message/time.rb +55 -17
- data/lib/slow_blink/message/time_of_day.rb +40 -50
- data/lib/slow_blink/schema.rb +17 -6
- data/lib/slow_blink/version.rb +1 -1
- data/rakefile +12 -7
- data/test/tc_incr_annote.rb +16 -0
- data/test/tc_inputs.rb +2 -2
- data/test/tc_model_dynamic_group.rb +105 -0
- data/test/tc_model_extension.rb +143 -0
- data/test/tc_model_static_group.rb +27 -36
- data/test/tc_model_think_blink.rb +18 -35
- metadata +12 -9
- data/ext/slow_blink/ext_compact_encoder/extconf.rb +0 -4
- /data/ext/slow_blink/{ext_compact_encoder → message/ext_compact_encoder}/compact_encoder.c +0 -0
- /data/ext/slow_blink/{ext_compact_encoder → message/ext_compact_encoder}/compact_encoder.h +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b20c76ea29b079aed8bb47ede4c0515a6630c0a
|
4
|
+
data.tar.gz: e5171c66c8049f7a8389eda54392d8c5de708e0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45c24a4c329cd4250bd14caf3dbcdd105e965a3a1ed0a4582808498a757974e6ad56924ae7e02ded5142d8c546da058cf9415f3d5da88deaf9b39a484a4a1ae5
|
7
|
+
data.tar.gz: 5036b7877cab2a8311b36fd7adda148da864a2dd9a8158c7b9cf5156c1d9a259c05a11edf886bbffcaa29bffbd1f571f7a143d88f37838d27726d9e8c9cecac3
|
@@ -449,8 +449,8 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
|
|
449
449
|
yyg->yy_c_buf_p = yy_cp;
|
450
450
|
|
451
451
|
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
|
452
|
-
#define YY_NUM_RULES
|
453
|
-
#define YY_END_OF_BUFFER
|
452
|
+
#define YY_NUM_RULES 53
|
453
|
+
#define YY_END_OF_BUFFER 54
|
454
454
|
/* This struct is not used in this scanner,
|
455
455
|
but its presence is necessary. */
|
456
456
|
struct yy_trans_info
|
@@ -458,25 +458,25 @@ struct yy_trans_info
|
|
458
458
|
flex_int32_t yy_verify;
|
459
459
|
flex_int32_t yy_nxt;
|
460
460
|
};
|
461
|
-
static yyconst flex_int16_t yy_accept[
|
461
|
+
static yyconst flex_int16_t yy_accept[156] =
|
462
462
|
{ 0,
|
463
|
-
0, 0, 3, 3, 6, 6,
|
464
|
-
5, 13, 14, 15, 9,
|
465
|
-
20,
|
466
|
-
|
467
|
-
3, 4, 6, 7, 1,
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
463
|
+
0, 0, 3, 3, 6, 6, 54, 52, 2, 1,
|
464
|
+
5, 13, 14, 15, 9, 52, 17, 18, 47, 47,
|
465
|
+
20, 52, 8, 10, 19, 50, 11, 52, 12, 50,
|
466
|
+
50, 50, 50, 50, 50, 50, 50, 50, 50, 16,
|
467
|
+
3, 4, 6, 7, 1, 48, 44, 47, 0, 45,
|
468
|
+
50, 0, 51, 50, 50, 50, 50, 50, 50, 50,
|
469
|
+
50, 50, 21, 50, 50, 50, 50, 50, 50, 50,
|
470
|
+
50, 50, 50, 25, 3, 6, 48, 46, 49, 51,
|
471
|
+
50, 50, 50, 50, 29, 50, 22, 23, 24, 50,
|
472
|
+
50, 50, 50, 50, 50, 50, 50, 26, 27, 28,
|
473
|
+
|
474
|
+
49, 50, 36, 31, 50, 50, 50, 50, 50, 50,
|
475
|
+
50, 50, 50, 40, 50, 50, 42, 50, 50, 50,
|
476
|
+
50, 50, 50, 50, 43, 50, 50, 50, 50, 38,
|
477
|
+
41, 37, 50, 30, 50, 50, 50, 50, 50, 50,
|
478
|
+
34, 50, 35, 39, 50, 50, 50, 50, 50, 50,
|
479
|
+
50, 50, 33, 32, 0
|
480
480
|
} ;
|
481
481
|
|
482
482
|
static yyconst flex_int32_t yy_ec[256] =
|
@@ -521,53 +521,51 @@ static yyconst flex_int32_t yy_meta[59] =
|
|
521
521
|
8, 8, 8, 8, 8, 9, 8, 1
|
522
522
|
} ;
|
523
523
|
|
524
|
-
static yyconst flex_int16_t yy_base[
|
524
|
+
static yyconst flex_int16_t yy_base[168] =
|
525
525
|
{ 0,
|
526
|
-
0, 0,
|
527
|
-
|
528
|
-
|
529
|
-
45, 58, 70, 57, 46, 59,
|
530
|
-
0,
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
359, 364
|
526
|
+
0, 0, 366, 365, 362, 361, 366, 371, 371, 0,
|
527
|
+
371, 371, 371, 371, 371, 44, 371, 371, 309, 56,
|
528
|
+
371, 350, 371, 371, 371, 334, 371, 0, 371, 44,
|
529
|
+
45, 58, 70, 57, 46, 59, 62, 66, 78, 371,
|
530
|
+
0, 371, 0, 371, 0, 110, 371, 118, 0, 371,
|
531
|
+
328, 0, 0, 91, 92, 87, 82, 88, 90, 85,
|
532
|
+
127, 97, 321, 98, 122, 126, 74, 95, 128, 100,
|
533
|
+
132, 137, 138, 311, 0, 0, 147, 0, 0, 0,
|
534
|
+
136, 133, 147, 152, 299, 153, 298, 297, 288, 135,
|
535
|
+
155, 156, 157, 159, 162, 161, 163, 266, 265, 262,
|
536
|
+
|
537
|
+
0, 164, 260, 258, 165, 168, 167, 169, 170, 171,
|
538
|
+
173, 177, 181, 257, 179, 183, 256, 187, 189, 193,
|
539
|
+
195, 196, 201, 197, 255, 203, 206, 205, 207, 254,
|
540
|
+
253, 252, 208, 251, 209, 213, 212, 210, 221, 223,
|
541
|
+
250, 224, 248, 246, 234, 226, 232, 236, 237, 238,
|
542
|
+
239, 245, 241, 86, 371, 290, 299, 308, 313, 318,
|
543
|
+
321, 330, 339, 344, 345, 350, 355
|
545
544
|
} ;
|
546
545
|
|
547
|
-
static yyconst flex_int16_t yy_def[
|
546
|
+
static yyconst flex_int16_t yy_def[168] =
|
548
547
|
{ 0,
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
556
|
-
165, 165, 165, 165, 165, 167, 168, 160, 169, 172,
|
557
|
-
171, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
558
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
559
|
-
|
560
|
-
165, 165, 172, 165, 165, 165, 165, 165, 165, 165,
|
561
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
562
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
563
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
564
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
565
|
-
165, 165, 165, 165, 165, 165, 165, 165, 165, 0,
|
548
|
+
155, 1, 156, 156, 157, 157, 155, 155, 155, 158,
|
549
|
+
155, 155, 155, 155, 155, 155, 155, 155, 159, 155,
|
550
|
+
155, 155, 155, 155, 155, 160, 155, 161, 155, 160,
|
551
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 155,
|
552
|
+
162, 155, 163, 155, 158, 155, 155, 155, 164, 155,
|
553
|
+
160, 165, 166, 160, 160, 160, 160, 160, 160, 160,
|
566
554
|
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
567
|
-
160, 160
|
555
|
+
160, 160, 160, 160, 162, 163, 155, 164, 167, 166,
|
556
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
557
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
558
|
+
|
559
|
+
167, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
560
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
561
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
562
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
563
|
+
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
564
|
+
160, 160, 160, 160, 0, 155, 155, 155, 155, 155,
|
565
|
+
155, 155, 155, 155, 155, 155, 155
|
568
566
|
} ;
|
569
567
|
|
570
|
-
static yyconst flex_int16_t yy_nxt[
|
568
|
+
static yyconst flex_int16_t yy_nxt[430] =
|
571
569
|
{ 0,
|
572
570
|
8, 8, 8, 9, 10, 11, 12, 13, 14, 15,
|
573
571
|
16, 17, 18, 19, 20, 20, 20, 20, 20, 20,
|
@@ -578,48 +576,47 @@ static yyconst flex_int16_t yy_nxt[440] =
|
|
578
576
|
46, 46, 46, 46, 46, 52, 52, 52, 47, 48,
|
579
577
|
48, 48, 48, 48, 48, 48, 48, 58, 52, 52,
|
580
578
|
52, 56, 65, 52, 60, 57, 61, 52, 54, 62,
|
581
|
-
63, 52,
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
52,
|
595
|
-
52,
|
596
|
-
|
597
|
-
52,
|
598
|
-
|
599
|
-
|
600
|
-
52, 52, 52, 52,
|
601
|
-
148,
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
76,
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
160, 160, 160, 160, 160, 160, 160, 160, 160
|
579
|
+
63, 52, 71, 55, 72, 52, 66, 73, 74, 52,
|
580
|
+
|
581
|
+
67, 64, 59, 52, 87, 85, 52, 52, 52, 52,
|
582
|
+
69, 52, 52, 52, 89, 68, 52, 94, 52, 52,
|
583
|
+
84, 52, 70, 77, 77, 77, 77, 77, 77, 77,
|
584
|
+
77, 48, 48, 48, 48, 48, 48, 48, 48, 81,
|
585
|
+
83, 82, 88, 52, 90, 86, 95, 52, 52, 52,
|
586
|
+
97, 98, 99, 52, 52, 100, 52, 52, 52, 52,
|
587
|
+
77, 77, 77, 77, 77, 77, 77, 77, 52, 91,
|
588
|
+
92, 93, 102, 52, 52, 96, 52, 52, 52, 103,
|
589
|
+
52, 107, 52, 52, 52, 52, 52, 104, 52, 52,
|
590
|
+
52, 52, 52, 106, 52, 108, 105, 110, 52, 111,
|
591
|
+
|
592
|
+
52, 113, 52, 114, 52, 109, 112, 117, 52, 121,
|
593
|
+
52, 118, 116, 124, 52, 115, 52, 52, 52, 126,
|
594
|
+
122, 119, 52, 120, 52, 123, 52, 52, 52, 52,
|
595
|
+
52, 52, 131, 52, 52, 125, 138, 129, 133, 128,
|
596
|
+
127, 136, 52, 132, 52, 52, 142, 52, 130, 134,
|
597
|
+
135, 140, 141, 52, 137, 52, 139, 52, 52, 52,
|
598
|
+
52, 143, 52, 144, 146, 147, 52, 52, 149, 52,
|
599
|
+
148, 52, 52, 52, 52, 52, 52, 52, 52, 52,
|
600
|
+
145, 52, 150, 52, 152, 151, 52, 52, 153, 154,
|
601
|
+
41, 41, 41, 41, 41, 41, 41, 41, 41, 43,
|
602
|
+
|
603
|
+
43, 43, 43, 43, 43, 43, 43, 43, 45, 52,
|
604
|
+
45, 45, 45, 45, 45, 45, 45, 48, 52, 52,
|
605
|
+
52, 48, 51, 51, 51, 51, 51, 53, 53, 53,
|
606
|
+
75, 75, 52, 75, 75, 75, 75, 75, 75, 76,
|
607
|
+
76, 76, 52, 76, 76, 76, 76, 76, 78, 52,
|
608
|
+
78, 79, 79, 79, 80, 52, 80, 80, 80, 101,
|
609
|
+
50, 101, 101, 101, 49, 155, 44, 44, 42, 42,
|
610
|
+
7, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
611
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
612
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
613
|
+
|
614
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
615
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
616
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155
|
620
617
|
} ;
|
621
618
|
|
622
|
-
static yyconst flex_int16_t yy_chk[
|
619
|
+
static yyconst flex_int16_t yy_chk[430] =
|
623
620
|
{ 0,
|
624
621
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
625
622
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
@@ -629,56 +626,55 @@ static yyconst flex_int16_t yy_chk[440] =
|
|
629
626
|
1, 1, 1, 1, 1, 1, 1, 1, 16, 16,
|
630
627
|
16, 16, 16, 16, 16, 30, 31, 35, 16, 20,
|
631
628
|
20, 20, 20, 20, 20, 20, 20, 32, 34, 32,
|
632
|
-
36, 31, 35,
|
633
|
-
33, 33, 39, 30, 39,
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
119,
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
160, 160, 160, 160, 160, 160, 160, 160, 160
|
629
|
+
36, 31, 35, 37, 33, 31, 33, 38, 30, 33,
|
630
|
+
33, 33, 39, 30, 39, 67, 36, 39, 39, 39,
|
631
|
+
|
632
|
+
37, 34, 32, 57, 60, 58, 60, 154, 56, 58,
|
633
|
+
38, 59, 54, 55, 62, 37, 68, 67, 62, 64,
|
634
|
+
57, 70, 38, 46, 46, 46, 46, 46, 46, 46,
|
635
|
+
46, 48, 48, 48, 48, 48, 48, 48, 48, 54,
|
636
|
+
56, 55, 61, 65, 64, 59, 68, 66, 61, 69,
|
637
|
+
70, 71, 72, 71, 82, 73, 90, 81, 72, 73,
|
638
|
+
77, 77, 77, 77, 77, 77, 77, 77, 83, 65,
|
639
|
+
65, 66, 81, 84, 86, 69, 91, 92, 93, 82,
|
640
|
+
94, 90, 96, 95, 97, 102, 105, 83, 107, 106,
|
641
|
+
108, 109, 110, 86, 111, 91, 84, 93, 112, 94,
|
642
|
+
|
643
|
+
115, 96, 113, 97, 116, 92, 95, 106, 118, 110,
|
644
|
+
119, 107, 105, 113, 120, 102, 121, 122, 124, 116,
|
645
|
+
111, 108, 123, 109, 126, 112, 128, 127, 129, 133,
|
646
|
+
135, 138, 122, 137, 136, 115, 133, 120, 124, 119,
|
647
|
+
118, 128, 139, 123, 140, 142, 138, 146, 121, 126,
|
648
|
+
127, 136, 137, 147, 129, 145, 135, 148, 149, 150,
|
649
|
+
151, 139, 153, 140, 145, 145, 152, 144, 147, 143,
|
650
|
+
146, 141, 134, 132, 131, 130, 125, 117, 114, 104,
|
651
|
+
142, 103, 148, 100, 150, 149, 99, 98, 151, 152,
|
652
|
+
156, 156, 156, 156, 156, 156, 156, 156, 156, 157,
|
653
|
+
|
654
|
+
157, 157, 157, 157, 157, 157, 157, 157, 158, 89,
|
655
|
+
158, 158, 158, 158, 158, 158, 158, 159, 88, 87,
|
656
|
+
85, 159, 160, 160, 160, 160, 160, 161, 161, 161,
|
657
|
+
162, 162, 74, 162, 162, 162, 162, 162, 162, 163,
|
658
|
+
163, 163, 63, 163, 163, 163, 163, 163, 164, 51,
|
659
|
+
164, 165, 165, 165, 166, 26, 166, 166, 166, 167,
|
660
|
+
22, 167, 167, 167, 19, 7, 6, 5, 4, 3,
|
661
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
662
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
663
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
664
|
+
|
665
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
666
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
667
|
+
155, 155, 155, 155, 155, 155, 155, 155, 155
|
672
668
|
} ;
|
673
669
|
|
674
|
-
static yyconst flex_int16_t yy_rule_linenum[
|
670
|
+
static yyconst flex_int16_t yy_rule_linenum[53] =
|
675
671
|
{ 0,
|
676
672
|
54, 56, 57, 58, 60, 61, 62, 64, 65, 66,
|
677
673
|
67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
|
678
674
|
78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
|
679
675
|
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
|
680
|
-
98, 99, 100,
|
681
|
-
111,
|
676
|
+
98, 99, 100, 102, 103, 105, 106, 107, 109, 110,
|
677
|
+
111, 113
|
682
678
|
} ;
|
683
679
|
|
684
680
|
/* The intent behind this definition is that it'll catch
|
@@ -725,7 +721,7 @@ static void updateLocation(YYLTYPE *loc, const char *text, int textLen);
|
|
725
721
|
#define YY_NO_INPUT 1
|
726
722
|
|
727
723
|
|
728
|
-
#line
|
724
|
+
#line 725 "ext/slow_blink/ext_schema_parser/lexer.c"
|
729
725
|
|
730
726
|
#define INITIAL 0
|
731
727
|
#define LITERAL_C 1
|
@@ -1039,7 +1035,7 @@ YY_DECL
|
|
1039
1035
|
#line 52 "etc/slow_blink/ext_schema_parser/parser.l"
|
1040
1036
|
|
1041
1037
|
|
1042
|
-
#line
|
1038
|
+
#line 1039 "ext/slow_blink/ext_schema_parser/lexer.c"
|
1043
1039
|
|
1044
1040
|
yylval = yylval_param;
|
1045
1041
|
|
@@ -1106,13 +1102,13 @@ yy_match:
|
|
1106
1102
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
1107
1103
|
{
|
1108
1104
|
yy_current_state = (int) yy_def[yy_current_state];
|
1109
|
-
if ( yy_current_state >=
|
1105
|
+
if ( yy_current_state >= 156 )
|
1110
1106
|
yy_c = yy_meta[(unsigned int) yy_c];
|
1111
1107
|
}
|
1112
1108
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
1113
1109
|
++yy_cp;
|
1114
1110
|
}
|
1115
|
-
while ( yy_base[yy_current_state] !=
|
1111
|
+
while ( yy_base[yy_current_state] != 371 );
|
1116
1112
|
|
1117
1113
|
yy_find_action:
|
1118
1114
|
/* %% [10.0] code to find the action number goes here */
|
@@ -1135,13 +1131,13 @@ do_action: /* This label is used only to access EOF actions. */
|
|
1135
1131
|
{
|
1136
1132
|
if ( yy_act == 0 )
|
1137
1133
|
fprintf( stderr, "--scanner backing up\n" );
|
1138
|
-
else if ( yy_act <
|
1134
|
+
else if ( yy_act < 53 )
|
1139
1135
|
fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
|
1140
1136
|
(long)yy_rule_linenum[yy_act], yytext );
|
1141
|
-
else if ( yy_act ==
|
1137
|
+
else if ( yy_act == 53 )
|
1142
1138
|
fprintf( stderr, "--accepting default rule (\"%s\")\n",
|
1143
1139
|
yytext );
|
1144
|
-
else if ( yy_act ==
|
1140
|
+
else if ( yy_act == 54 )
|
1145
1141
|
fprintf( stderr, "--(end of buffer or a NUL)\n" );
|
1146
1142
|
else
|
1147
1143
|
fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
|
@@ -1331,70 +1327,65 @@ YY_RULE_SETUP
|
|
1331
1327
|
case 42:
|
1332
1328
|
YY_RULE_SETUP
|
1333
1329
|
#line 99 "etc/slow_blink/ext_schema_parser/parser.l"
|
1334
|
-
{ return
|
1330
|
+
{ return TOK_FIXED; }
|
1335
1331
|
YY_BREAK
|
1336
1332
|
case 43:
|
1337
1333
|
YY_RULE_SETUP
|
1338
1334
|
#line 100 "etc/slow_blink/ext_schema_parser/parser.l"
|
1339
|
-
{ return
|
1335
|
+
{ return TOK_BINARY; }
|
1340
1336
|
YY_BREAK
|
1341
1337
|
case 44:
|
1342
1338
|
YY_RULE_SETUP
|
1343
|
-
#line
|
1344
|
-
{ return
|
1339
|
+
#line 102 "etc/slow_blink/ext_schema_parser/parser.l"
|
1340
|
+
{ return TOK_RIGHT_ARROW; }
|
1345
1341
|
YY_BREAK
|
1346
1342
|
case 45:
|
1347
1343
|
YY_RULE_SETUP
|
1348
1344
|
#line 103 "etc/slow_blink/ext_schema_parser/parser.l"
|
1349
|
-
{ return
|
1345
|
+
{ return TOK_LEFT_ARROW; }
|
1350
1346
|
YY_BREAK
|
1351
1347
|
case 46:
|
1352
1348
|
YY_RULE_SETUP
|
1353
|
-
#line
|
1354
|
-
{ return
|
1349
|
+
#line 105 "etc/slow_blink/ext_schema_parser/parser.l"
|
1350
|
+
{ unsigned int tmp = 0; sscanf(yytext, "%x", &tmp); *yylval = UINT2NUM(tmp); return TOK_HEX; }
|
1355
1351
|
YY_BREAK
|
1356
1352
|
case 47:
|
1357
1353
|
YY_RULE_SETUP
|
1358
1354
|
#line 106 "etc/slow_blink/ext_schema_parser/parser.l"
|
1359
|
-
{ unsigned int tmp = 0; sscanf(yytext, "%
|
1355
|
+
{ unsigned int tmp = 0; sscanf(yytext, "%u", &tmp); *yylval = UINT2NUM(tmp); return TOK_UINT; }
|
1360
1356
|
YY_BREAK
|
1361
1357
|
case 48:
|
1362
1358
|
YY_RULE_SETUP
|
1363
1359
|
#line 107 "etc/slow_blink/ext_schema_parser/parser.l"
|
1364
|
-
{
|
1360
|
+
{ int tmp = 0; sscanf(yytext, "%i", &tmp); *yylval = INT2NUM(tmp); return TOK_INT; }
|
1365
1361
|
YY_BREAK
|
1366
1362
|
case 49:
|
1367
1363
|
YY_RULE_SETUP
|
1368
|
-
#line
|
1369
|
-
{
|
1364
|
+
#line 109 "etc/slow_blink/ext_schema_parser/parser.l"
|
1365
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_C_NAME; }
|
1370
1366
|
YY_BREAK
|
1371
1367
|
case 50:
|
1372
1368
|
YY_RULE_SETUP
|
1373
1369
|
#line 110 "etc/slow_blink/ext_schema_parser/parser.l"
|
1374
|
-
{ *yylval = rb_str_new(yytext, yyleng); return
|
1370
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_NC_NAME; }
|
1375
1371
|
YY_BREAK
|
1376
1372
|
case 51:
|
1377
1373
|
YY_RULE_SETUP
|
1378
1374
|
#line 111 "etc/slow_blink/ext_schema_parser/parser.l"
|
1379
|
-
{ *yylval = rb_str_new(yytext, yyleng); return TOK_NC_NAME; }
|
1380
|
-
YY_BREAK
|
1381
|
-
case 52:
|
1382
|
-
YY_RULE_SETUP
|
1383
|
-
#line 112 "etc/slow_blink/ext_schema_parser/parser.l"
|
1384
1375
|
{ *yylval = rb_str_new(yytext, yyleng); return TOK_ESCAPED_NC_NAME; }
|
1385
1376
|
YY_BREAK
|
1386
|
-
case
|
1387
|
-
/* rule
|
1377
|
+
case 52:
|
1378
|
+
/* rule 52 can match eol */
|
1388
1379
|
YY_RULE_SETUP
|
1389
|
-
#line
|
1380
|
+
#line 113 "etc/slow_blink/ext_schema_parser/parser.l"
|
1390
1381
|
{}
|
1391
1382
|
YY_BREAK
|
1392
|
-
case
|
1383
|
+
case 53:
|
1393
1384
|
YY_RULE_SETUP
|
1394
|
-
#line
|
1385
|
+
#line 115 "etc/slow_blink/ext_schema_parser/parser.l"
|
1395
1386
|
ECHO;
|
1396
1387
|
YY_BREAK
|
1397
|
-
#line
|
1388
|
+
#line 1389 "ext/slow_blink/ext_schema_parser/lexer.c"
|
1398
1389
|
case YY_STATE_EOF(INITIAL):
|
1399
1390
|
case YY_STATE_EOF(LITERAL_C):
|
1400
1391
|
case YY_STATE_EOF(LITERAL_A):
|
@@ -1711,7 +1702,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1711
1702
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
1712
1703
|
{
|
1713
1704
|
yy_current_state = (int) yy_def[yy_current_state];
|
1714
|
-
if ( yy_current_state >=
|
1705
|
+
if ( yy_current_state >= 156 )
|
1715
1706
|
yy_c = yy_meta[(unsigned int) yy_c];
|
1716
1707
|
}
|
1717
1708
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
@@ -1745,11 +1736,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
|
1745
1736
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
1746
1737
|
{
|
1747
1738
|
yy_current_state = (int) yy_def[yy_current_state];
|
1748
|
-
if ( yy_current_state >=
|
1739
|
+
if ( yy_current_state >= 156 )
|
1749
1740
|
yy_c = yy_meta[(unsigned int) yy_c];
|
1750
1741
|
}
|
1751
1742
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
1752
|
-
yy_is_jam = (yy_current_state ==
|
1743
|
+
yy_is_jam = (yy_current_state == 155);
|
1753
1744
|
|
1754
1745
|
return yy_is_jam ? 0 : yy_current_state;
|
1755
1746
|
}
|
@@ -2672,7 +2663,7 @@ void yyfree (void * ptr , yyscan_t yyscanner)
|
|
2672
2663
|
|
2673
2664
|
/* %ok-for-header */
|
2674
2665
|
|
2675
|
-
#line
|
2666
|
+
#line 115 "etc/slow_blink/ext_schema_parser/parser.l"
|
2676
2667
|
|
2677
2668
|
|
2678
2669
|
|