slow_blink 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/ext/slow_blink/ext_schema_parser/lexer.c +168 -177
  3. data/ext/slow_blink/ext_schema_parser/lexer.h +1 -1
  4. data/ext/slow_blink/ext_schema_parser/parser.c +303 -306
  5. data/ext/slow_blink/ext_schema_parser/parser.h +11 -12
  6. data/ext/slow_blink/{ext_compact_encoder → message/ext_compact_encoder}/ext_compact_encoder.c +3 -1
  7. data/ext/slow_blink/message/ext_compact_encoder/extconf.rb +4 -0
  8. data/lib/slow_blink/error.rb +1 -1
  9. data/lib/slow_blink/message/binary.rb +19 -26
  10. data/lib/slow_blink/message/boolean.rb +17 -17
  11. data/lib/slow_blink/message/date.rb +24 -0
  12. data/lib/slow_blink/message/decimal.rb +34 -0
  13. data/lib/slow_blink/message/enumeration.rb +24 -23
  14. data/lib/slow_blink/message/field.rb +45 -6
  15. data/lib/slow_blink/message/fixed.rb +35 -25
  16. data/lib/slow_blink/message/floating_point.rb +16 -17
  17. data/lib/slow_blink/message/group.rb +242 -136
  18. data/lib/slow_blink/message/integer.rb +77 -51
  19. data/lib/slow_blink/message/model.rb +121 -85
  20. data/lib/slow_blink/message/sequence.rb +43 -28
  21. data/lib/slow_blink/message/string.rb +17 -31
  22. data/lib/slow_blink/message/time.rb +55 -17
  23. data/lib/slow_blink/message/time_of_day.rb +40 -50
  24. data/lib/slow_blink/schema.rb +17 -6
  25. data/lib/slow_blink/version.rb +1 -1
  26. data/rakefile +12 -7
  27. data/test/tc_incr_annote.rb +16 -0
  28. data/test/tc_inputs.rb +2 -2
  29. data/test/tc_model_dynamic_group.rb +105 -0
  30. data/test/tc_model_extension.rb +143 -0
  31. data/test/tc_model_static_group.rb +27 -36
  32. data/test/tc_model_think_blink.rb +18 -35
  33. metadata +12 -9
  34. data/ext/slow_blink/ext_compact_encoder/extconf.rb +0 -4
  35. /data/ext/slow_blink/{ext_compact_encoder → message/ext_compact_encoder}/compact_encoder.c +0 -0
  36. /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: c805a92b663b02b653be5b9fe41f094d9f9188e4
4
- data.tar.gz: af92cd9922672f34f9a9bb7ad09c0d8800134c75
3
+ metadata.gz: 2b20c76ea29b079aed8bb47ede4c0515a6630c0a
4
+ data.tar.gz: e5171c66c8049f7a8389eda54392d8c5de708e0b
5
5
  SHA512:
6
- metadata.gz: 58e03438bec9321e7a0380d645351fada46ae9fc1bcb89f72769955a5580e8c1483b8017206db7a0836fd141fa913072c92809d051fc7a08143abbea19d35659
7
- data.tar.gz: bef19c8e06938350718f91748fa2803d0b5136530868149d92a0436f8dfa20cf935ccbbb14c09f0a3e4597e1c16f08742848261c49a49385a80c79ea09a79f02
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 54
453
- #define YY_END_OF_BUFFER 55
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[161] =
461
+ static yyconst flex_int16_t yy_accept[156] =
462
462
  { 0,
463
- 0, 0, 3, 3, 6, 6, 55, 53, 2, 1,
464
- 5, 13, 14, 15, 9, 53, 17, 18, 48, 48,
465
- 20, 53, 8, 10, 19, 51, 11, 53, 12, 51,
466
- 51, 51, 51, 51, 51, 51, 51, 51, 51, 16,
467
- 3, 4, 6, 7, 1, 49, 45, 48, 0, 46,
468
- 51, 0, 52, 51, 51, 51, 51, 51, 51, 51,
469
- 51, 51, 21, 51, 51, 51, 51, 51, 51, 51,
470
- 51, 51, 51, 51, 25, 3, 6, 49, 47, 50,
471
- 52, 51, 51, 51, 51, 29, 51, 22, 23, 24,
472
- 51, 51, 51, 51, 51, 51, 51, 51, 51, 26,
473
-
474
- 27, 28, 50, 51, 36, 31, 51, 51, 51, 51,
475
- 51, 51, 51, 51, 51, 51, 40, 51, 51, 43,
476
- 51, 51, 51, 51, 51, 51, 51, 51, 44, 51,
477
- 51, 51, 51, 42, 38, 41, 37, 51, 30, 51,
478
- 51, 51, 51, 51, 51, 34, 51, 35, 39, 51,
479
- 51, 51, 51, 51, 51, 51, 51, 33, 32, 0
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[173] =
524
+ static yyconst flex_int16_t yy_base[168] =
525
525
  { 0,
526
- 0, 0, 376, 375, 372, 371, 376, 381, 381, 0,
527
- 381, 381, 381, 381, 381, 44, 381, 381, 319, 56,
528
- 381, 363, 381, 381, 381, 348, 381, 0, 381, 44,
529
- 45, 58, 70, 57, 46, 59, 66, 62, 78, 381,
530
- 0, 381, 0, 381, 0, 94, 381, 107, 0, 381,
531
- 343, 0, 0, 82, 84, 94, 96, 111, 74, 116,
532
- 121, 122, 337, 95, 110, 117, 123, 119, 124, 125,
533
- 127, 130, 135, 138, 330, 0, 0, 165, 0, 0,
534
- 0, 131, 140, 133, 132, 320, 148, 308, 307, 306,
535
- 144, 149, 142, 150, 153, 171, 173, 174, 175, 297,
536
-
537
- 275, 274, 0, 176, 273, 270, 177, 179, 178, 180,
538
- 181, 183, 182, 184, 185, 187, 268, 186, 189, 267,
539
- 188, 195, 191, 192, 200, 208, 205, 207, 266, 209,
540
- 215, 216, 217, 265, 263, 262, 261, 218, 259, 219,
541
- 229, 228, 233, 230, 235, 258, 236, 257, 256, 241,
542
- 237, 240, 239, 242, 252, 244, 253, 145, 139, 381,
543
- 299, 308, 317, 322, 327, 330, 339, 348, 353, 354,
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[173] =
546
+ static yyconst flex_int16_t yy_def[168] =
548
547
  { 0,
549
- 160, 1, 161, 161, 162, 162, 160, 160, 160, 163,
550
- 160, 160, 160, 160, 160, 160, 160, 160, 164, 160,
551
- 160, 160, 160, 160, 160, 165, 160, 166, 160, 165,
552
- 165, 165, 165, 165, 165, 165, 165, 165, 165, 160,
553
- 167, 160, 168, 160, 163, 160, 160, 160, 169, 160,
554
- 165, 170, 171, 165, 165, 165, 165, 165, 165, 165,
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[440] =
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, 72, 55, 73, 52, 67, 74, 75, 52,
582
-
583
- 66, 64, 59, 52, 68, 52, 70, 78, 78, 78,
584
- 78, 78, 78, 78, 78, 52, 52, 52, 71, 69,
585
- 48, 48, 48, 48, 48, 48, 48, 48, 86, 87,
586
- 82, 52, 52, 83, 85, 88, 89, 52, 52, 90,
587
- 52, 91, 52, 52, 52, 52, 52, 84, 52, 100,
588
- 101, 52, 52, 52, 52, 102, 52, 92, 93, 52,
589
- 52, 52, 96, 52, 94, 52, 52, 104, 95, 52,
590
- 52, 52, 98, 106, 52, 97, 107, 99, 78, 78,
591
- 78, 78, 78, 78, 78, 78, 105, 112, 108, 110,
592
- 109, 111, 52, 113, 52, 52, 52, 52, 52, 52,
593
-
594
- 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
595
- 52, 114, 52, 52, 116, 117, 52, 115, 120, 128,
596
- 125, 52, 121, 124, 119, 130, 52, 118, 52, 52,
597
- 52, 126, 122, 127, 123, 133, 52, 52, 52, 52,
598
- 52, 131, 129, 134, 136, 132, 143, 137, 138, 52,
599
- 52, 52, 141, 135, 52, 139, 52, 52, 52, 140,
600
- 52, 52, 52, 52, 142, 52, 144, 145, 146, 147,
601
- 148, 151, 152, 52, 52, 149, 154, 52, 52, 52,
602
- 52, 153, 52, 52, 52, 155, 52, 52, 52, 52,
603
- 156, 52, 150, 158, 52, 52, 52, 159, 157, 41,
604
-
605
- 41, 41, 41, 41, 41, 41, 41, 41, 43, 43,
606
- 43, 43, 43, 43, 43, 43, 43, 45, 52, 45,
607
- 45, 45, 45, 45, 45, 45, 48, 52, 52, 52,
608
- 48, 51, 51, 51, 51, 51, 53, 53, 53, 76,
609
- 76, 52, 76, 76, 76, 76, 76, 76, 77, 77,
610
- 77, 52, 77, 77, 77, 77, 77, 79, 52, 79,
611
- 80, 80, 80, 81, 52, 81, 81, 81, 103, 52,
612
- 103, 103, 103, 50, 49, 160, 44, 44, 42, 42,
613
- 7, 160, 160, 160, 160, 160, 160, 160, 160, 160,
614
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
615
-
616
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
617
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
618
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
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[440] =
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, 38, 33, 31, 33, 37, 30, 33,
633
- 33, 33, 39, 30, 39, 59, 36, 39, 39, 39,
634
-
635
- 35, 34, 32, 54, 37, 55, 38, 46, 46, 46,
636
- 46, 46, 46, 46, 46, 56, 64, 57, 38, 37,
637
- 48, 48, 48, 48, 48, 48, 48, 48, 58, 59,
638
- 54, 65, 58, 55, 57, 60, 61, 60, 66, 62,
639
- 68, 64, 61, 62, 67, 69, 70, 56, 71, 72,
640
- 73, 72, 82, 85, 84, 74, 73, 65, 65, 74,
641
- 159, 83, 68, 93, 66, 91, 158, 82, 67, 87,
642
- 92, 94, 70, 84, 95, 69, 85, 71, 78, 78,
643
- 78, 78, 78, 78, 78, 78, 83, 94, 87, 92,
644
- 91, 93, 96, 95, 97, 98, 99, 104, 107, 109,
645
-
646
- 108, 110, 111, 113, 112, 114, 115, 118, 116, 121,
647
- 119, 96, 123, 124, 98, 99, 122, 97, 108, 116,
648
- 113, 125, 109, 112, 107, 119, 127, 104, 128, 126,
649
- 130, 114, 110, 115, 111, 123, 131, 132, 133, 138,
650
- 140, 121, 118, 124, 126, 122, 138, 127, 128, 142,
651
- 141, 144, 132, 125, 143, 130, 145, 147, 151, 131,
652
- 153, 152, 150, 154, 133, 156, 140, 141, 142, 143,
653
- 144, 150, 150, 155, 157, 145, 152, 149, 148, 146,
654
- 139, 151, 137, 136, 135, 153, 134, 129, 120, 117,
655
- 154, 106, 147, 156, 105, 102, 101, 157, 155, 161,
656
-
657
- 161, 161, 161, 161, 161, 161, 161, 161, 162, 162,
658
- 162, 162, 162, 162, 162, 162, 162, 163, 100, 163,
659
- 163, 163, 163, 163, 163, 163, 164, 90, 89, 88,
660
- 164, 165, 165, 165, 165, 165, 166, 166, 166, 167,
661
- 167, 86, 167, 167, 167, 167, 167, 167, 168, 168,
662
- 168, 75, 168, 168, 168, 168, 168, 169, 63, 169,
663
- 170, 170, 170, 171, 51, 171, 171, 171, 172, 26,
664
- 172, 172, 172, 22, 19, 7, 6, 5, 4, 3,
665
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
666
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
667
-
668
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
669
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
670
- 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
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[54] =
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, 101, 103, 104, 106, 107, 108, 110,
681
- 111, 112, 114
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 729 "ext/slow_blink/ext_schema_parser/lexer.c"
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 1043 "ext/slow_blink/ext_schema_parser/lexer.c"
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 >= 161 )
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] != 381 );
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 < 54 )
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 == 54 )
1137
+ else if ( yy_act == 53 )
1142
1138
  fprintf( stderr, "--accepting default rule (\"%s\")\n",
1143
1139
  yytext );
1144
- else if ( yy_act == 55 )
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 TOK_NUMBER; }
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 TOK_FIXED; }
1335
+ { return TOK_BINARY; }
1340
1336
  YY_BREAK
1341
1337
  case 44:
1342
1338
  YY_RULE_SETUP
1343
- #line 101 "etc/slow_blink/ext_schema_parser/parser.l"
1344
- { return TOK_BINARY; }
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 TOK_RIGHT_ARROW; }
1345
+ { return TOK_LEFT_ARROW; }
1350
1346
  YY_BREAK
1351
1347
  case 46:
1352
1348
  YY_RULE_SETUP
1353
- #line 104 "etc/slow_blink/ext_schema_parser/parser.l"
1354
- { return TOK_LEFT_ARROW; }
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, "%x", &tmp); *yylval = UINT2NUM(tmp); return TOK_HEX; }
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
- { unsigned int tmp = 0; sscanf(yytext, "%u", &tmp); *yylval = UINT2NUM(tmp); return TOK_UINT; }
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 108 "etc/slow_blink/ext_schema_parser/parser.l"
1369
- { int tmp = 0; sscanf(yytext, "%i", &tmp); *yylval = INT2NUM(tmp); return TOK_INT; }
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 TOK_C_NAME; }
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 53:
1387
- /* rule 53 can match eol */
1377
+ case 52:
1378
+ /* rule 52 can match eol */
1388
1379
  YY_RULE_SETUP
1389
- #line 114 "etc/slow_blink/ext_schema_parser/parser.l"
1380
+ #line 113 "etc/slow_blink/ext_schema_parser/parser.l"
1390
1381
  {}
1391
1382
  YY_BREAK
1392
- case 54:
1383
+ case 53:
1393
1384
  YY_RULE_SETUP
1394
- #line 116 "etc/slow_blink/ext_schema_parser/parser.l"
1385
+ #line 115 "etc/slow_blink/ext_schema_parser/parser.l"
1395
1386
  ECHO;
1396
1387
  YY_BREAK
1397
- #line 1398 "ext/slow_blink/ext_schema_parser/lexer.c"
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 >= 161 )
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 >= 161 )
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 == 160);
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 116 "etc/slow_blink/ext_schema_parser/parser.l"
2666
+ #line 115 "etc/slow_blink/ext_schema_parser/parser.l"
2676
2667
 
2677
2668
 
2678
2669
 
@@ -478,7 +478,7 @@ extern int yylex \
478
478
  #undef YY_DECL
479
479
  #endif
480
480
 
481
- #line 116 "etc/slow_blink/ext_schema_parser/parser.l"
481
+ #line 115 "etc/slow_blink/ext_schema_parser/parser.l"
482
482
 
483
483
 
484
484
  #line 485 "ext/slow_blink/ext_schema_parser/lexer.h"