gherkin 2.4.18 → 2.4.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/Gemfile.lock +6 -7
  2. data/History.md +9 -0
  3. data/README.md +2 -2
  4. data/ext/gherkin_lexer_ar/extconf.rb +6 -0
  5. data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +1428 -0
  6. data/ext/gherkin_lexer_bg/extconf.rb +6 -0
  7. data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +1654 -0
  8. data/ext/gherkin_lexer_ca/extconf.rb +6 -0
  9. data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +1580 -0
  10. data/ext/gherkin_lexer_cs/extconf.rb +6 -0
  11. data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +1426 -0
  12. data/ext/gherkin_lexer_cy_gb/extconf.rb +6 -0
  13. data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +1281 -0
  14. data/ext/gherkin_lexer_da/extconf.rb +6 -0
  15. data/ext/gherkin_lexer_da/gherkin_lexer_da.c +1297 -0
  16. data/ext/gherkin_lexer_de/extconf.rb +6 -0
  17. data/ext/gherkin_lexer_de/gherkin_lexer_de.c +1414 -0
  18. data/ext/gherkin_lexer_en/extconf.rb +6 -0
  19. data/ext/gherkin_lexer_en/gherkin_lexer_en.c +1264 -0
  20. data/ext/gherkin_lexer_en_au/extconf.rb +6 -0
  21. data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +1225 -0
  22. data/ext/gherkin_lexer_en_lol/extconf.rb +6 -0
  23. data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +1174 -0
  24. data/ext/gherkin_lexer_en_pirate/extconf.rb +6 -0
  25. data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +1470 -0
  26. data/ext/gherkin_lexer_en_scouse/extconf.rb +6 -0
  27. data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +1631 -0
  28. data/ext/gherkin_lexer_en_tx/extconf.rb +6 -0
  29. data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +1264 -0
  30. data/ext/gherkin_lexer_eo/extconf.rb +6 -0
  31. data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +1240 -0
  32. data/ext/gherkin_lexer_es/extconf.rb +6 -0
  33. data/ext/gherkin_lexer_es/gherkin_lexer_es.c +1379 -0
  34. data/ext/gherkin_lexer_et/extconf.rb +6 -0
  35. data/ext/gherkin_lexer_et/gherkin_lexer_et.c +1235 -0
  36. data/ext/gherkin_lexer_fi/extconf.rb +6 -0
  37. data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +1214 -0
  38. data/ext/gherkin_lexer_fr/extconf.rb +6 -0
  39. data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +1450 -0
  40. data/ext/gherkin_lexer_he/extconf.rb +6 -0
  41. data/ext/gherkin_lexer_he/gherkin_lexer_he.c +1373 -0
  42. data/ext/gherkin_lexer_hr/extconf.rb +6 -0
  43. data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +1322 -0
  44. data/ext/gherkin_lexer_hu/extconf.rb +6 -0
  45. data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +1373 -0
  46. data/ext/gherkin_lexer_id/extconf.rb +6 -0
  47. data/ext/gherkin_lexer_id/gherkin_lexer_id.c +1207 -0
  48. data/ext/gherkin_lexer_is/extconf.rb +6 -0
  49. data/ext/gherkin_lexer_is/gherkin_lexer_is.c +1375 -0
  50. data/ext/gherkin_lexer_it/extconf.rb +6 -0
  51. data/ext/gherkin_lexer_it/gherkin_lexer_it.c +1331 -0
  52. data/ext/gherkin_lexer_ja/extconf.rb +6 -0
  53. data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +1698 -0
  54. data/ext/gherkin_lexer_ko/extconf.rb +6 -0
  55. data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +1359 -0
  56. data/ext/gherkin_lexer_lt/extconf.rb +6 -0
  57. data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +1294 -0
  58. data/ext/gherkin_lexer_lu/extconf.rb +6 -0
  59. data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +1388 -0
  60. data/ext/gherkin_lexer_lv/extconf.rb +6 -0
  61. data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +1424 -0
  62. data/ext/gherkin_lexer_nl/extconf.rb +6 -0
  63. data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +1367 -0
  64. data/ext/gherkin_lexer_no/extconf.rb +6 -0
  65. data/ext/gherkin_lexer_no/gherkin_lexer_no.c +1310 -0
  66. data/ext/gherkin_lexer_pl/extconf.rb +6 -0
  67. data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +1476 -0
  68. data/ext/gherkin_lexer_pt/extconf.rb +6 -0
  69. data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +1326 -0
  70. data/ext/gherkin_lexer_ro/extconf.rb +6 -0
  71. data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +1424 -0
  72. data/ext/gherkin_lexer_ru/extconf.rb +6 -0
  73. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2056 -0
  74. data/ext/gherkin_lexer_sk/extconf.rb +6 -0
  75. data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +1297 -0
  76. data/ext/gherkin_lexer_sr_cyrl/extconf.rb +6 -0
  77. data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2111 -0
  78. data/ext/gherkin_lexer_sr_latn/extconf.rb +6 -0
  79. data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +1566 -0
  80. data/ext/gherkin_lexer_sv/extconf.rb +6 -0
  81. data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +1323 -0
  82. data/ext/gherkin_lexer_tr/extconf.rb +6 -0
  83. data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +1346 -0
  84. data/ext/gherkin_lexer_uk/extconf.rb +6 -0
  85. data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +1940 -0
  86. data/ext/gherkin_lexer_uz/extconf.rb +6 -0
  87. data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +1650 -0
  88. data/ext/gherkin_lexer_vi/extconf.rb +6 -0
  89. data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +1457 -0
  90. data/ext/gherkin_lexer_zh_cn/extconf.rb +6 -0
  91. data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +1222 -0
  92. data/ext/gherkin_lexer_zh_tw/extconf.rb +6 -0
  93. data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +1264 -0
  94. data/gherkin.gemspec +9 -3
  95. data/lib/gherkin/formatter/filter_formatter.rb +6 -1
  96. data/lib/gherkin/rb_lexer/ar.rb +1162 -0
  97. data/lib/gherkin/rb_lexer/bg.rb +1374 -0
  98. data/lib/gherkin/rb_lexer/ca.rb +1304 -0
  99. data/lib/gherkin/rb_lexer/cs.rb +1156 -0
  100. data/lib/gherkin/rb_lexer/cy_gb.rb +1026 -0
  101. data/lib/gherkin/rb_lexer/da.rb +1040 -0
  102. data/lib/gherkin/rb_lexer/de.rb +1150 -0
  103. data/lib/gherkin/rb_lexer/en.rb +1008 -0
  104. data/lib/gherkin/rb_lexer/en_au.rb +972 -0
  105. data/lib/gherkin/rb_lexer/en_lol.rb +927 -0
  106. data/lib/gherkin/rb_lexer/en_pirate.rb +1204 -0
  107. data/lib/gherkin/rb_lexer/en_scouse.rb +1355 -0
  108. data/lib/gherkin/rb_lexer/en_tx.rb +1010 -0
  109. data/lib/gherkin/rb_lexer/eo.rb +989 -0
  110. data/lib/gherkin/rb_lexer/es.rb +1116 -0
  111. data/lib/gherkin/rb_lexer/et.rb +982 -0
  112. data/lib/gherkin/rb_lexer/fi.rb +963 -0
  113. data/lib/gherkin/rb_lexer/fr.rb +1184 -0
  114. data/lib/gherkin/rb_lexer/he.rb +1110 -0
  115. data/lib/gherkin/rb_lexer/hr.rb +1060 -0
  116. data/lib/gherkin/rb_lexer/hu.rb +1111 -0
  117. data/lib/gherkin/rb_lexer/id.rb +957 -0
  118. data/lib/gherkin/rb_lexer/is.rb +1114 -0
  119. data/lib/gherkin/rb_lexer/it.rb +1075 -0
  120. data/lib/gherkin/rb_lexer/ja.rb +1412 -0
  121. data/lib/gherkin/rb_lexer/ko.rb +1096 -0
  122. data/lib/gherkin/rb_lexer/lt.rb +1038 -0
  123. data/lib/gherkin/rb_lexer/lu.rb +1126 -0
  124. data/lib/gherkin/rb_lexer/lv.rb +1158 -0
  125. data/lib/gherkin/rb_lexer/nl.rb +1109 -0
  126. data/lib/gherkin/rb_lexer/no.rb +1052 -0
  127. data/lib/gherkin/rb_lexer/pl.rb +1208 -0
  128. data/lib/gherkin/rb_lexer/pt.rb +1066 -0
  129. data/lib/gherkin/rb_lexer/ro.rb +1155 -0
  130. data/lib/gherkin/rb_lexer/ru.rb +1747 -0
  131. data/lib/gherkin/rb_lexer/sk.rb +1040 -0
  132. data/lib/gherkin/rb_lexer/sr_cyrl.rb +1797 -0
  133. data/lib/gherkin/rb_lexer/sr_latn.rb +1288 -0
  134. data/lib/gherkin/rb_lexer/sv.rb +1064 -0
  135. data/lib/gherkin/rb_lexer/tr.rb +1086 -0
  136. data/lib/gherkin/rb_lexer/uk.rb +1640 -0
  137. data/lib/gherkin/rb_lexer/uz.rb +1370 -0
  138. data/lib/gherkin/rb_lexer/vi.rb +1190 -0
  139. data/lib/gherkin/rb_lexer/zh_cn.rb +968 -0
  140. data/lib/gherkin/rb_lexer/zh_tw.rb +1006 -0
  141. data/spec/gherkin/fixtures/examples_with_only_header.feature +14 -0
  142. data/spec/gherkin/formatter/filter_formatter_spec.rb +21 -0
  143. data/tasks/gems.rake +9 -1
  144. metadata +30 -39
  145. data/.gitignore +0 -13
  146. data/ikvm/.gitignore +0 -3
  147. data/java/.gitignore +0 -5
  148. data/java/src/main/java/gherkin/lexer/i18n/.gitignore +0 -1
  149. data/java/src/main/resources/gherkin/.gitignore +0 -1
  150. data/js/.gitignore +0 -1
  151. data/js/lib/gherkin/lexer/.gitignore +0 -1
  152. data/lib/.gitignore +0 -4
  153. data/lib/gherkin/rb_lexer/.gitignore +0 -1
  154. data/ragel/i18n/.gitignore +0 -1
  155. data/tasks/bench/generated/.gitignore +0 -1
@@ -0,0 +1,6 @@
1
+ require 'mkmf'
2
+ CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
3
+ $CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc/
4
+ dir_config("gherkin_lexer_sr_latn")
5
+ have_library("c", "main")
6
+ create_makefile("gherkin_lexer_sr_latn")
@@ -0,0 +1,1566 @@
1
+
2
+ #line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
3
+ #include <assert.h>
4
+ #include <ruby.h>
5
+
6
+ #if defined(_WIN32)
7
+ #include <stddef.h>
8
+ #endif
9
+
10
+ #ifdef HAVE_RUBY_RE_H
11
+ #include <ruby/re.h>
12
+ #else
13
+ #include <re.h>
14
+ #endif
15
+
16
+ #ifdef HAVE_RUBY_ENCODING_H
17
+ #include <ruby/encoding.h>
18
+ #define ENCODED_STR_NEW(ptr, len) \
19
+ rb_enc_str_new(ptr, len, rb_utf8_encoding())
20
+ #else
21
+ #define ENCODED_STR_NEW(ptr, len) \
22
+ rb_str_new(ptr, len)
23
+ #endif
24
+
25
+ #ifndef RSTRING_PTR
26
+ #define RSTRING_PTR(s) (RSTRING(s)->ptr)
27
+ #endif
28
+
29
+ #ifndef RSTRING_LEN
30
+ #define RSTRING_LEN(s) (RSTRING(s)->len)
31
+ #endif
32
+
33
+ #define DATA_GET(FROM, TYPE, NAME) \
34
+ Data_Get_Struct(FROM, TYPE, NAME); \
35
+ if (NAME == NULL) { \
36
+ rb_raise(rb_eArgError, "NULL found for " # NAME " when it shouldn't be."); \
37
+ }
38
+
39
+ typedef struct lexer_state {
40
+ int content_len;
41
+ int line_number;
42
+ int current_line;
43
+ int start_col;
44
+ size_t mark;
45
+ size_t keyword_start;
46
+ size_t keyword_end;
47
+ size_t next_keyword_start;
48
+ size_t content_start;
49
+ size_t content_end;
50
+ size_t docstring_content_type_start;
51
+ size_t docstring_content_type_end;
52
+ size_t query_start;
53
+ size_t last_newline;
54
+ size_t final_newline;
55
+ } lexer_state;
56
+
57
+ static VALUE mGherkin;
58
+ static VALUE mGherkinLexer;
59
+ static VALUE mCLexer;
60
+ static VALUE cI18nLexer;
61
+ static VALUE rb_eGherkinLexingError;
62
+
63
+ #define LEN(AT, P) (P - data - lexer->AT)
64
+ #define MARK(M, P) (lexer->M = (P) - data)
65
+ #define PTR_TO(P) (data + lexer->P)
66
+
67
+ #define STORE_KW_END_CON(EVENT) \
68
+ store_multiline_kw_con(listener, # EVENT, \
69
+ PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end - 1)), \
70
+ PTR_TO(content_start), LEN(content_start, PTR_TO(content_end)), \
71
+ lexer->current_line, lexer->start_col); \
72
+ if (lexer->content_end != 0) { \
73
+ p = PTR_TO(content_end - 1); \
74
+ } \
75
+ lexer->content_end = 0
76
+
77
+ #define STORE_ATTR(ATTR) \
78
+ store_attr(listener, # ATTR, \
79
+ PTR_TO(content_start), LEN(content_start, p), \
80
+ lexer->line_number)
81
+
82
+
83
+ #line 254 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
84
+
85
+
86
+ /** Data **/
87
+
88
+ #line 89 "ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c"
89
+ static const char _lexer_actions[] = {
90
+ 0, 1, 0, 1, 1, 1, 2, 1,
91
+ 3, 1, 4, 1, 5, 1, 6, 1,
92
+ 7, 1, 8, 1, 9, 1, 10, 1,
93
+ 11, 1, 12, 1, 13, 1, 16, 1,
94
+ 17, 1, 18, 1, 19, 1, 20, 1,
95
+ 21, 1, 22, 1, 23, 2, 1, 18,
96
+ 2, 4, 5, 2, 13, 0, 2, 14,
97
+ 15, 2, 17, 0, 2, 17, 2, 2,
98
+ 17, 16, 2, 17, 19, 2, 18, 6,
99
+ 2, 18, 7, 2, 18, 8, 2, 18,
100
+ 9, 2, 18, 10, 2, 18, 16, 2,
101
+ 20, 21, 2, 22, 0, 2, 22, 2,
102
+ 2, 22, 16, 2, 22, 19, 3, 3,
103
+ 14, 15, 3, 5, 14, 15, 3, 11,
104
+ 14, 15, 3, 12, 14, 15, 3, 13,
105
+ 14, 15, 3, 14, 15, 18, 3, 17,
106
+ 14, 15, 4, 1, 14, 15, 18, 4,
107
+ 4, 5, 14, 15, 4, 17, 0, 14,
108
+ 15
109
+ };
110
+
111
+ static const short _lexer_key_offsets[] = {
112
+ 0, 0, 20, 21, 22, 41, 42, 43,
113
+ 45, 47, 52, 57, 62, 67, 71, 75,
114
+ 77, 78, 79, 80, 81, 82, 83, 84,
115
+ 85, 86, 87, 88, 89, 90, 91, 92,
116
+ 93, 94, 96, 101, 108, 113, 114, 115,
117
+ 116, 117, 118, 119, 120, 121, 122, 123,
118
+ 124, 125, 126, 127, 128, 129, 130, 131,
119
+ 144, 146, 148, 150, 152, 154, 156, 158,
120
+ 160, 162, 164, 166, 168, 170, 172, 174,
121
+ 176, 178, 180, 182, 184, 186, 188, 190,
122
+ 192, 194, 196, 198, 200, 219, 221, 222,
123
+ 224, 225, 227, 228, 229, 230, 231, 232,
124
+ 233, 250, 252, 254, 256, 258, 260, 262,
125
+ 264, 266, 268, 270, 272, 274, 276, 278,
126
+ 280, 282, 284, 286, 288, 290, 292, 294,
127
+ 296, 298, 300, 302, 304, 306, 308, 310,
128
+ 312, 314, 316, 319, 321, 323, 325, 328,
129
+ 330, 333, 335, 337, 339, 341, 343, 345,
130
+ 347, 349, 351, 353, 355, 357, 359, 361,
131
+ 363, 365, 367, 369, 371, 373, 376, 378,
132
+ 380, 383, 385, 387, 388, 389, 390, 391,
133
+ 392, 393, 394, 411, 413, 415, 417, 419,
134
+ 421, 423, 425, 427, 429, 431, 433, 435,
135
+ 437, 439, 441, 443, 445, 447, 449, 451,
136
+ 453, 455, 457, 459, 461, 463, 465, 467,
137
+ 469, 471, 473, 476, 478, 481, 483, 485,
138
+ 487, 489, 491, 493, 495, 498, 500, 503,
139
+ 505, 507, 509, 511, 513, 515, 517, 519,
140
+ 521, 523, 525, 527, 531, 533, 535, 537,
141
+ 539, 541, 543, 545, 547, 549, 551, 553,
142
+ 555, 557, 559, 561, 563, 565, 567, 569,
143
+ 571, 573, 575, 577, 579, 581, 584, 586,
144
+ 588, 591, 593, 595, 596, 597, 598, 600,
145
+ 601, 603, 604, 605, 607, 608, 609, 610,
146
+ 611, 612, 613, 614, 616, 617, 618, 619,
147
+ 620, 621, 622, 623, 624, 625, 627, 628,
148
+ 629, 646, 648, 650, 652, 654, 656, 658,
149
+ 660, 662, 664, 666, 668, 670, 672, 674,
150
+ 676, 678, 680, 682, 684, 686, 688, 690,
151
+ 692, 694, 696, 698, 700, 702, 704, 706,
152
+ 708, 711, 713, 716, 718, 721, 723, 725,
153
+ 727, 729, 731, 733, 735, 738, 740, 743,
154
+ 745, 747, 750, 752, 754, 756, 758, 760,
155
+ 762, 765, 767, 769, 771, 773, 775, 777,
156
+ 779, 783, 785, 787, 789, 791, 793, 795,
157
+ 797, 799, 801, 803, 805, 807, 809, 811,
158
+ 813, 815, 817, 819, 821, 823, 825, 827,
159
+ 829, 831, 833, 836, 838, 840, 843, 845,
160
+ 847, 848, 849, 850, 859, 861, 863, 865,
161
+ 867, 869, 871, 873, 875, 877, 879, 881,
162
+ 883, 885, 887, 889, 891, 893, 896, 898,
163
+ 900, 902, 904, 906, 908, 910, 913, 914,
164
+ 915, 916, 917, 918, 920, 921, 922, 923,
165
+ 924, 925, 926, 927, 928, 929, 930, 931,
166
+ 932, 933, 934, 935, 936, 937, 938, 939,
167
+ 940, 941, 942, 944, 945, 946, 948, 949,
168
+ 950, 954, 960, 963, 965, 971, 990, 992,
169
+ 994, 997, 999, 1001, 1003, 1005, 1007, 1009,
170
+ 1011, 1014, 1016, 1018, 1021, 1023, 1025, 1027,
171
+ 1029, 1031, 1033, 1036, 1038, 1040, 1042, 1044,
172
+ 1046, 1048, 1050, 1053, 1057, 1059, 1061, 1063,
173
+ 1065, 1067, 1070, 1072, 1074, 1076, 1078, 1080,
174
+ 1082, 1084, 1086, 1088, 1090, 1092, 1094, 1096,
175
+ 1098, 1100, 1102, 1104, 1106, 1108
176
+ };
177
+
178
+ static const char _lexer_trans_keys[] = {
179
+ -17, 10, 32, 34, 35, 37, 42, 64,
180
+ 65, 70, 73, 75, 77, 79, 80, 83,
181
+ 90, 124, 9, 13, -69, -65, 10, 32,
182
+ 34, 35, 37, 42, 64, 65, 70, 73,
183
+ 75, 77, 79, 80, 83, 90, 124, 9,
184
+ 13, 34, 34, 10, 13, 10, 13, 10,
185
+ 32, 34, 9, 13, 10, 32, 34, 9,
186
+ 13, 10, 32, 34, 9, 13, 10, 32,
187
+ 34, 9, 13, 10, 32, 9, 13, 10,
188
+ 32, 9, 13, 10, 13, 10, 95, 70,
189
+ 69, 65, 84, 85, 82, 69, 95, 69,
190
+ 78, 68, 95, 37, 32, 10, 10, 13,
191
+ 13, 32, 64, 9, 10, 9, 10, 13,
192
+ 32, 64, 11, 12, 10, 32, 64, 9,
193
+ 13, 108, 105, 117, 110, 107, 99, 105,
194
+ 111, 110, 97, 108, 110, 111, 115, 116,
195
+ 58, 10, 10, 10, 32, 35, 37, 64,
196
+ 70, 75, 77, 79, 80, 83, 9, 13,
197
+ 10, 95, 10, 70, 10, 69, 10, 65,
198
+ 10, 84, 10, 85, 10, 82, 10, 69,
199
+ 10, 95, 10, 69, 10, 78, 10, 68,
200
+ 10, 95, 10, 37, 10, 117, 10, 110,
201
+ 10, 107, 10, 99, 10, 105, 10, 111,
202
+ 10, 110, 10, 97, 10, 108, 10, 110,
203
+ 10, 111, 10, 115, 10, 116, 10, 58,
204
+ 10, 32, 34, 35, 37, 42, 64, 65,
205
+ 70, 73, 75, 77, 79, 80, 83, 90,
206
+ 124, 9, 13, 97, 111, 100, 32, 97,
207
+ 110, 99, 116, 101, 112, 116, 58, 10,
208
+ 10, 10, 32, 35, 37, 42, 64, 65,
209
+ 70, 73, 75, 77, 79, 80, 83, 90,
210
+ 9, 13, 10, 95, 10, 70, 10, 69,
211
+ 10, 65, 10, 84, 10, 85, 10, 82,
212
+ 10, 69, 10, 95, 10, 69, 10, 78,
213
+ 10, 68, 10, 95, 10, 37, 10, 32,
214
+ 10, 108, 10, 105, 10, 117, 10, 110,
215
+ 10, 107, 10, 99, 10, 105, 10, 111,
216
+ 10, 110, 10, 97, 10, 108, 10, 110,
217
+ 10, 111, 10, 115, 10, 116, 10, 58,
218
+ 10, 97, 10, 100, 10, 32, 97, 10,
219
+ 111, 10, 103, 10, 117, -60, 10, 99,
220
+ -121, 10, 10, 110, 115, 10, 100, 10,
221
+ 97, 10, 111, 10, 98, 10, 105, 10,
222
+ 110, 10, 97, 10, 114, 10, 105, 10,
223
+ 109, 10, 101, 10, 114, 10, 99, 10,
224
+ 101, 10, 110, 10, 97, 10, 114, 10,
225
+ 105, 10, 111, 10, 97, 10, 100, 116,
226
+ 10, 97, 10, 116, 10, 101, 111, 10,
227
+ 97, 10, 116, 101, 107, 115, 116, 58,
228
+ 10, 10, 10, 32, 35, 37, 42, 64,
229
+ 65, 70, 73, 75, 77, 79, 80, 83,
230
+ 90, 9, 13, 10, 95, 10, 70, 10,
231
+ 69, 10, 65, 10, 84, 10, 85, 10,
232
+ 82, 10, 69, 10, 95, 10, 69, 10,
233
+ 78, 10, 68, 10, 95, 10, 37, 10,
234
+ 32, 10, 108, 10, 105, 10, 117, 10,
235
+ 110, 10, 107, 10, 99, 10, 105, 10,
236
+ 111, 10, 110, 10, 97, 10, 108, 10,
237
+ 110, 10, 111, 10, 115, 10, 116, 10,
238
+ 58, 10, 97, 111, 10, 100, 10, 32,
239
+ 97, 10, 110, 10, 99, 10, 101, 10,
240
+ 112, 10, 111, 10, 103, 10, 117, -60,
241
+ 10, 99, -121, 10, 10, 110, 115, 10,
242
+ 100, 10, 97, 10, 111, 10, 98, 10,
243
+ 105, 10, 110, 10, 97, 10, 114, 10,
244
+ 105, 10, 109, 10, 101, 10, 114, 10,
245
+ 99, 107, 116, 10, 101, 10, 110, 10,
246
+ 97, 10, 114, 10, 105, 10, 111, 10,
247
+ 105, 10, 99, 10, 114, 10, 117, 10,
248
+ 107, 10, 116, 10, 117, 10, 114, 10,
249
+ 97, 10, 32, 10, 115, 10, 99, 10,
250
+ 101, 10, 110, 10, 97, 10, 114, 10,
251
+ 105, 10, 106, 10, 97, 10, 100, 116,
252
+ 10, 97, 10, 116, 10, 101, 111, 10,
253
+ 97, 10, 116, 111, 103, 117, -60, 99,
254
+ -121, 110, 115, 100, 97, 110, 111, 111,
255
+ 118, 97, 98, 105, 110, 97, 111, 114,
256
+ 122, 97, 100, 105, 110, 105, 109, 101,
257
+ 114, 58, 105, 10, 10, 10, 32, 35,
258
+ 37, 42, 64, 65, 70, 73, 75, 77,
259
+ 79, 80, 83, 90, 9, 13, 10, 95,
260
+ 10, 70, 10, 69, 10, 65, 10, 84,
261
+ 10, 85, 10, 82, 10, 69, 10, 95,
262
+ 10, 69, 10, 78, 10, 68, 10, 95,
263
+ 10, 37, 10, 32, 10, 108, 10, 105,
264
+ 10, 117, 10, 110, 10, 107, 10, 99,
265
+ 10, 105, 10, 111, 10, 110, 10, 97,
266
+ 10, 108, 10, 110, 10, 111, 10, 115,
267
+ 10, 116, 10, 58, 10, 97, 111, 10,
268
+ 100, 10, 32, 97, 10, 110, 10, 99,
269
+ 116, 10, 101, 10, 112, 10, 101, 10,
270
+ 107, 10, 111, 10, 103, 10, 117, -60,
271
+ 10, 99, -121, 10, 10, 110, 115, 10,
272
+ 100, 10, 97, 10, 110, 111, 10, 111,
273
+ 10, 118, 10, 97, 10, 98, 10, 105,
274
+ 10, 110, 10, 111, 114, 10, 122, 10,
275
+ 97, 10, 100, 10, 105, 10, 109, 10,
276
+ 101, 10, 114, 10, 99, 107, 116, 10,
277
+ 101, 10, 110, 10, 97, 10, 114, 10,
278
+ 105, 10, 111, 10, 105, 10, 99, 10,
279
+ 114, 10, 117, 10, 107, 10, 116, 10,
280
+ 117, 10, 114, 10, 97, 10, 32, 10,
281
+ 115, 10, 99, 10, 101, 10, 110, 10,
282
+ 97, 10, 114, 10, 105, 10, 106, 10,
283
+ 97, 10, 100, 116, 10, 97, 10, 116,
284
+ 10, 101, 111, 10, 97, 10, 116, 58,
285
+ 10, 10, 10, 32, 35, 70, 77, 79,
286
+ 124, 9, 13, 10, 117, 10, 110, 10,
287
+ 107, 10, 99, 10, 105, 10, 111, 10,
288
+ 110, 10, 97, 10, 108, 10, 110, 10,
289
+ 111, 10, 115, 10, 116, 10, 58, 10,
290
+ 111, 10, 103, 10, 117, -60, 10, 99,
291
+ -121, 10, 10, 115, 10, 111, 10, 98,
292
+ 10, 105, 10, 110, 10, 97, 99, 107,
293
+ 116, 101, 110, 97, 114, 105, 106, 111,
294
+ 105, 58, 105, 99, 97, 114, 117, 107,
295
+ 116, 117, 114, 97, 32, 115, 99, 101,
296
+ 110, 97, 114, 105, 106, 97, 100, 116,
297
+ 97, 116, 101, 111, 97, 116, 32, 124,
298
+ 9, 13, 10, 32, 92, 124, 9, 13,
299
+ 10, 92, 124, 10, 92, 10, 32, 92,
300
+ 124, 9, 13, 10, 32, 34, 35, 37,
301
+ 42, 64, 65, 70, 73, 75, 77, 79,
302
+ 80, 83, 90, 124, 9, 13, 10, 111,
303
+ 10, 110, 10, 99, 116, 10, 101, 10,
304
+ 112, 10, 101, 10, 107, 10, 111, 10,
305
+ 103, 10, 117, -60, 10, 99, -121, 10,
306
+ 10, 115, 10, 110, 111, 10, 111, 10,
307
+ 118, 10, 97, 10, 98, 10, 105, 10,
308
+ 110, 10, 111, 114, 10, 122, 10, 97,
309
+ 10, 100, 10, 105, 10, 109, 10, 101,
310
+ 10, 114, 10, 58, 105, 10, 99, 107,
311
+ 116, 10, 101, 10, 110, 10, 97, 10,
312
+ 114, 10, 105, 10, 106, 111, 10, 105,
313
+ 10, 105, 10, 99, 10, 114, 10, 117,
314
+ 10, 107, 10, 116, 10, 117, 10, 114,
315
+ 10, 97, 10, 32, 10, 115, 10, 99,
316
+ 10, 101, 10, 110, 10, 97, 10, 114,
317
+ 10, 105, 10, 106, 0
318
+ };
319
+
320
+ static const char _lexer_single_lengths[] = {
321
+ 0, 18, 1, 1, 17, 1, 1, 2,
322
+ 2, 3, 3, 3, 3, 2, 2, 2,
323
+ 1, 1, 1, 1, 1, 1, 1, 1,
324
+ 1, 1, 1, 1, 1, 1, 1, 1,
325
+ 1, 2, 3, 5, 3, 1, 1, 1,
326
+ 1, 1, 1, 1, 1, 1, 1, 1,
327
+ 1, 1, 1, 1, 1, 1, 1, 11,
328
+ 2, 2, 2, 2, 2, 2, 2, 2,
329
+ 2, 2, 2, 2, 2, 2, 2, 2,
330
+ 2, 2, 2, 2, 2, 2, 2, 2,
331
+ 2, 2, 2, 2, 17, 2, 1, 2,
332
+ 1, 2, 1, 1, 1, 1, 1, 1,
333
+ 15, 2, 2, 2, 2, 2, 2, 2,
334
+ 2, 2, 2, 2, 2, 2, 2, 2,
335
+ 2, 2, 2, 2, 2, 2, 2, 2,
336
+ 2, 2, 2, 2, 2, 2, 2, 2,
337
+ 2, 2, 3, 2, 2, 2, 3, 2,
338
+ 3, 2, 2, 2, 2, 2, 2, 2,
339
+ 2, 2, 2, 2, 2, 2, 2, 2,
340
+ 2, 2, 2, 2, 2, 3, 2, 2,
341
+ 3, 2, 2, 1, 1, 1, 1, 1,
342
+ 1, 1, 15, 2, 2, 2, 2, 2,
343
+ 2, 2, 2, 2, 2, 2, 2, 2,
344
+ 2, 2, 2, 2, 2, 2, 2, 2,
345
+ 2, 2, 2, 2, 2, 2, 2, 2,
346
+ 2, 2, 3, 2, 3, 2, 2, 2,
347
+ 2, 2, 2, 2, 3, 2, 3, 2,
348
+ 2, 2, 2, 2, 2, 2, 2, 2,
349
+ 2, 2, 2, 4, 2, 2, 2, 2,
350
+ 2, 2, 2, 2, 2, 2, 2, 2,
351
+ 2, 2, 2, 2, 2, 2, 2, 2,
352
+ 2, 2, 2, 2, 2, 3, 2, 2,
353
+ 3, 2, 2, 1, 1, 1, 2, 1,
354
+ 2, 1, 1, 2, 1, 1, 1, 1,
355
+ 1, 1, 1, 2, 1, 1, 1, 1,
356
+ 1, 1, 1, 1, 1, 2, 1, 1,
357
+ 15, 2, 2, 2, 2, 2, 2, 2,
358
+ 2, 2, 2, 2, 2, 2, 2, 2,
359
+ 2, 2, 2, 2, 2, 2, 2, 2,
360
+ 2, 2, 2, 2, 2, 2, 2, 2,
361
+ 3, 2, 3, 2, 3, 2, 2, 2,
362
+ 2, 2, 2, 2, 3, 2, 3, 2,
363
+ 2, 3, 2, 2, 2, 2, 2, 2,
364
+ 3, 2, 2, 2, 2, 2, 2, 2,
365
+ 4, 2, 2, 2, 2, 2, 2, 2,
366
+ 2, 2, 2, 2, 2, 2, 2, 2,
367
+ 2, 2, 2, 2, 2, 2, 2, 2,
368
+ 2, 2, 3, 2, 2, 3, 2, 2,
369
+ 1, 1, 1, 7, 2, 2, 2, 2,
370
+ 2, 2, 2, 2, 2, 2, 2, 2,
371
+ 2, 2, 2, 2, 2, 3, 2, 2,
372
+ 2, 2, 2, 2, 2, 3, 1, 1,
373
+ 1, 1, 1, 2, 1, 1, 1, 1,
374
+ 1, 1, 1, 1, 1, 1, 1, 1,
375
+ 1, 1, 1, 1, 1, 1, 1, 1,
376
+ 1, 1, 2, 1, 1, 2, 1, 1,
377
+ 2, 4, 3, 2, 4, 17, 2, 2,
378
+ 3, 2, 2, 2, 2, 2, 2, 2,
379
+ 3, 2, 2, 3, 2, 2, 2, 2,
380
+ 2, 2, 3, 2, 2, 2, 2, 2,
381
+ 2, 2, 3, 4, 2, 2, 2, 2,
382
+ 2, 3, 2, 2, 2, 2, 2, 2,
383
+ 2, 2, 2, 2, 2, 2, 2, 2,
384
+ 2, 2, 2, 2, 2, 0
385
+ };
386
+
387
+ static const char _lexer_range_lengths[] = {
388
+ 0, 1, 0, 0, 1, 0, 0, 0,
389
+ 0, 1, 1, 1, 1, 1, 1, 0,
390
+ 0, 0, 0, 0, 0, 0, 0, 0,
391
+ 0, 0, 0, 0, 0, 0, 0, 0,
392
+ 0, 0, 1, 1, 1, 0, 0, 0,
393
+ 0, 0, 0, 0, 0, 0, 0, 0,
394
+ 0, 0, 0, 0, 0, 0, 0, 1,
395
+ 0, 0, 0, 0, 0, 0, 0, 0,
396
+ 0, 0, 0, 0, 0, 0, 0, 0,
397
+ 0, 0, 0, 0, 0, 0, 0, 0,
398
+ 0, 0, 0, 0, 1, 0, 0, 0,
399
+ 0, 0, 0, 0, 0, 0, 0, 0,
400
+ 1, 0, 0, 0, 0, 0, 0, 0,
401
+ 0, 0, 0, 0, 0, 0, 0, 0,
402
+ 0, 0, 0, 0, 0, 0, 0, 0,
403
+ 0, 0, 0, 0, 0, 0, 0, 0,
404
+ 0, 0, 0, 0, 0, 0, 0, 0,
405
+ 0, 0, 0, 0, 0, 0, 0, 0,
406
+ 0, 0, 0, 0, 0, 0, 0, 0,
407
+ 0, 0, 0, 0, 0, 0, 0, 0,
408
+ 0, 0, 0, 0, 0, 0, 0, 0,
409
+ 0, 0, 1, 0, 0, 0, 0, 0,
410
+ 0, 0, 0, 0, 0, 0, 0, 0,
411
+ 0, 0, 0, 0, 0, 0, 0, 0,
412
+ 0, 0, 0, 0, 0, 0, 0, 0,
413
+ 0, 0, 0, 0, 0, 0, 0, 0,
414
+ 0, 0, 0, 0, 0, 0, 0, 0,
415
+ 0, 0, 0, 0, 0, 0, 0, 0,
416
+ 0, 0, 0, 0, 0, 0, 0, 0,
417
+ 0, 0, 0, 0, 0, 0, 0, 0,
418
+ 0, 0, 0, 0, 0, 0, 0, 0,
419
+ 0, 0, 0, 0, 0, 0, 0, 0,
420
+ 0, 0, 0, 0, 0, 0, 0, 0,
421
+ 0, 0, 0, 0, 0, 0, 0, 0,
422
+ 0, 0, 0, 0, 0, 0, 0, 0,
423
+ 0, 0, 0, 0, 0, 0, 0, 0,
424
+ 1, 0, 0, 0, 0, 0, 0, 0,
425
+ 0, 0, 0, 0, 0, 0, 0, 0,
426
+ 0, 0, 0, 0, 0, 0, 0, 0,
427
+ 0, 0, 0, 0, 0, 0, 0, 0,
428
+ 0, 0, 0, 0, 0, 0, 0, 0,
429
+ 0, 0, 0, 0, 0, 0, 0, 0,
430
+ 0, 0, 0, 0, 0, 0, 0, 0,
431
+ 0, 0, 0, 0, 0, 0, 0, 0,
432
+ 0, 0, 0, 0, 0, 0, 0, 0,
433
+ 0, 0, 0, 0, 0, 0, 0, 0,
434
+ 0, 0, 0, 0, 0, 0, 0, 0,
435
+ 0, 0, 0, 0, 0, 0, 0, 0,
436
+ 0, 0, 0, 1, 0, 0, 0, 0,
437
+ 0, 0, 0, 0, 0, 0, 0, 0,
438
+ 0, 0, 0, 0, 0, 0, 0, 0,
439
+ 0, 0, 0, 0, 0, 0, 0, 0,
440
+ 0, 0, 0, 0, 0, 0, 0, 0,
441
+ 0, 0, 0, 0, 0, 0, 0, 0,
442
+ 0, 0, 0, 0, 0, 0, 0, 0,
443
+ 0, 0, 0, 0, 0, 0, 0, 0,
444
+ 1, 1, 0, 0, 1, 1, 0, 0,
445
+ 0, 0, 0, 0, 0, 0, 0, 0,
446
+ 0, 0, 0, 0, 0, 0, 0, 0,
447
+ 0, 0, 0, 0, 0, 0, 0, 0,
448
+ 0, 0, 0, 0, 0, 0, 0, 0,
449
+ 0, 0, 0, 0, 0, 0, 0, 0,
450
+ 0, 0, 0, 0, 0, 0, 0, 0,
451
+ 0, 0, 0, 0, 0, 0
452
+ };
453
+
454
+ static const short _lexer_index_offsets[] = {
455
+ 0, 0, 20, 22, 24, 43, 45, 47,
456
+ 50, 53, 58, 63, 68, 73, 77, 81,
457
+ 84, 86, 88, 90, 92, 94, 96, 98,
458
+ 100, 102, 104, 106, 108, 110, 112, 114,
459
+ 116, 118, 121, 126, 133, 138, 140, 142,
460
+ 144, 146, 148, 150, 152, 154, 156, 158,
461
+ 160, 162, 164, 166, 168, 170, 172, 174,
462
+ 187, 190, 193, 196, 199, 202, 205, 208,
463
+ 211, 214, 217, 220, 223, 226, 229, 232,
464
+ 235, 238, 241, 244, 247, 250, 253, 256,
465
+ 259, 262, 265, 268, 271, 290, 293, 295,
466
+ 298, 300, 303, 305, 307, 309, 311, 313,
467
+ 315, 332, 335, 338, 341, 344, 347, 350,
468
+ 353, 356, 359, 362, 365, 368, 371, 374,
469
+ 377, 380, 383, 386, 389, 392, 395, 398,
470
+ 401, 404, 407, 410, 413, 416, 419, 422,
471
+ 425, 428, 431, 435, 438, 441, 444, 448,
472
+ 451, 455, 458, 461, 464, 467, 470, 473,
473
+ 476, 479, 482, 485, 488, 491, 494, 497,
474
+ 500, 503, 506, 509, 512, 515, 519, 522,
475
+ 525, 529, 532, 535, 537, 539, 541, 543,
476
+ 545, 547, 549, 566, 569, 572, 575, 578,
477
+ 581, 584, 587, 590, 593, 596, 599, 602,
478
+ 605, 608, 611, 614, 617, 620, 623, 626,
479
+ 629, 632, 635, 638, 641, 644, 647, 650,
480
+ 653, 656, 659, 663, 666, 670, 673, 676,
481
+ 679, 682, 685, 688, 691, 695, 698, 702,
482
+ 705, 708, 711, 714, 717, 720, 723, 726,
483
+ 729, 732, 735, 738, 743, 746, 749, 752,
484
+ 755, 758, 761, 764, 767, 770, 773, 776,
485
+ 779, 782, 785, 788, 791, 794, 797, 800,
486
+ 803, 806, 809, 812, 815, 818, 822, 825,
487
+ 828, 832, 835, 838, 840, 842, 844, 847,
488
+ 849, 852, 854, 856, 859, 861, 863, 865,
489
+ 867, 869, 871, 873, 876, 878, 880, 882,
490
+ 884, 886, 888, 890, 892, 894, 897, 899,
491
+ 901, 918, 921, 924, 927, 930, 933, 936,
492
+ 939, 942, 945, 948, 951, 954, 957, 960,
493
+ 963, 966, 969, 972, 975, 978, 981, 984,
494
+ 987, 990, 993, 996, 999, 1002, 1005, 1008,
495
+ 1011, 1015, 1018, 1022, 1025, 1029, 1032, 1035,
496
+ 1038, 1041, 1044, 1047, 1050, 1054, 1057, 1061,
497
+ 1064, 1067, 1071, 1074, 1077, 1080, 1083, 1086,
498
+ 1089, 1093, 1096, 1099, 1102, 1105, 1108, 1111,
499
+ 1114, 1119, 1122, 1125, 1128, 1131, 1134, 1137,
500
+ 1140, 1143, 1146, 1149, 1152, 1155, 1158, 1161,
501
+ 1164, 1167, 1170, 1173, 1176, 1179, 1182, 1185,
502
+ 1188, 1191, 1194, 1198, 1201, 1204, 1208, 1211,
503
+ 1214, 1216, 1218, 1220, 1229, 1232, 1235, 1238,
504
+ 1241, 1244, 1247, 1250, 1253, 1256, 1259, 1262,
505
+ 1265, 1268, 1271, 1274, 1277, 1280, 1284, 1287,
506
+ 1290, 1293, 1296, 1299, 1302, 1305, 1309, 1311,
507
+ 1313, 1315, 1317, 1319, 1322, 1324, 1326, 1328,
508
+ 1330, 1332, 1334, 1336, 1338, 1340, 1342, 1344,
509
+ 1346, 1348, 1350, 1352, 1354, 1356, 1358, 1360,
510
+ 1362, 1364, 1366, 1369, 1371, 1373, 1376, 1378,
511
+ 1380, 1384, 1390, 1394, 1397, 1403, 1422, 1425,
512
+ 1428, 1432, 1435, 1438, 1441, 1444, 1447, 1450,
513
+ 1453, 1457, 1460, 1463, 1467, 1470, 1473, 1476,
514
+ 1479, 1482, 1485, 1489, 1492, 1495, 1498, 1501,
515
+ 1504, 1507, 1510, 1514, 1519, 1522, 1525, 1528,
516
+ 1531, 1534, 1538, 1541, 1544, 1547, 1550, 1553,
517
+ 1556, 1559, 1562, 1565, 1568, 1571, 1574, 1577,
518
+ 1580, 1583, 1586, 1589, 1592, 1595
519
+ };
520
+
521
+ static const short _lexer_trans_targs[] = {
522
+ 2, 4, 4, 5, 15, 17, 31, 34,
523
+ 37, 39, 31, 85, 259, 264, 275, 413,
524
+ 441, 448, 4, 0, 3, 0, 4, 0,
525
+ 4, 4, 5, 15, 17, 31, 34, 37,
526
+ 39, 31, 85, 259, 264, 275, 413, 441,
527
+ 448, 4, 0, 6, 0, 7, 0, 9,
528
+ 8, 8, 9, 8, 8, 10, 10, 11,
529
+ 10, 10, 10, 10, 11, 10, 10, 10,
530
+ 10, 12, 10, 10, 10, 10, 13, 10,
531
+ 10, 4, 14, 14, 0, 4, 14, 14,
532
+ 0, 4, 16, 15, 4, 0, 18, 0,
533
+ 19, 0, 20, 0, 21, 0, 22, 0,
534
+ 23, 0, 24, 0, 25, 0, 26, 0,
535
+ 27, 0, 28, 0, 29, 0, 30, 0,
536
+ 509, 0, 32, 0, 0, 33, 4, 16,
537
+ 33, 0, 0, 0, 0, 35, 36, 4,
538
+ 36, 36, 34, 35, 35, 4, 36, 34,
539
+ 36, 0, 38, 0, 31, 0, 40, 0,
540
+ 41, 0, 42, 0, 43, 0, 44, 0,
541
+ 45, 0, 46, 0, 47, 0, 48, 0,
542
+ 49, 0, 50, 0, 51, 0, 52, 0,
543
+ 53, 0, 55, 54, 55, 54, 55, 55,
544
+ 4, 56, 4, 70, 454, 461, 466, 474,
545
+ 483, 55, 54, 55, 57, 54, 55, 58,
546
+ 54, 55, 59, 54, 55, 60, 54, 55,
547
+ 61, 54, 55, 62, 54, 55, 63, 54,
548
+ 55, 64, 54, 55, 65, 54, 55, 66,
549
+ 54, 55, 67, 54, 55, 68, 54, 55,
550
+ 69, 54, 55, 4, 54, 55, 71, 54,
551
+ 55, 72, 54, 55, 73, 54, 55, 74,
552
+ 54, 55, 75, 54, 55, 76, 54, 55,
553
+ 77, 54, 55, 78, 54, 55, 79, 54,
554
+ 55, 80, 54, 55, 81, 54, 55, 82,
555
+ 54, 55, 83, 54, 55, 84, 54, 4,
556
+ 4, 5, 15, 17, 31, 34, 37, 39,
557
+ 31, 85, 259, 264, 275, 413, 441, 448,
558
+ 4, 0, 86, 88, 0, 87, 0, 32,
559
+ 31, 0, 89, 0, 90, 163, 0, 91,
560
+ 0, 92, 0, 93, 0, 94, 0, 96,
561
+ 95, 96, 95, 96, 96, 4, 97, 111,
562
+ 4, 112, 114, 111, 128, 131, 136, 144,
563
+ 149, 156, 96, 95, 96, 98, 95, 96,
564
+ 99, 95, 96, 100, 95, 96, 101, 95,
565
+ 96, 102, 95, 96, 103, 95, 96, 104,
566
+ 95, 96, 105, 95, 96, 106, 95, 96,
567
+ 107, 95, 96, 108, 95, 96, 109, 95,
568
+ 96, 110, 95, 96, 4, 95, 96, 84,
569
+ 95, 96, 113, 95, 96, 111, 95, 96,
570
+ 115, 95, 96, 116, 95, 96, 117, 95,
571
+ 96, 118, 95, 96, 119, 95, 96, 120,
572
+ 95, 96, 121, 95, 96, 122, 95, 96,
573
+ 123, 95, 96, 124, 95, 96, 125, 95,
574
+ 96, 126, 95, 96, 127, 95, 96, 84,
575
+ 95, 96, 129, 95, 96, 130, 95, 96,
576
+ 84, 111, 95, 96, 132, 95, 96, 133,
577
+ 95, 96, 134, 95, 135, 96, 123, 95,
578
+ 123, 96, 95, 96, 137, 139, 95, 96,
579
+ 138, 95, 96, 111, 95, 96, 140, 95,
580
+ 96, 141, 95, 96, 142, 95, 96, 143,
581
+ 95, 96, 127, 95, 96, 145, 95, 96,
582
+ 146, 95, 96, 147, 95, 96, 148, 95,
583
+ 96, 127, 95, 96, 150, 95, 96, 151,
584
+ 95, 96, 152, 95, 96, 153, 95, 96,
585
+ 154, 95, 96, 155, 95, 96, 127, 95,
586
+ 96, 157, 95, 96, 158, 161, 95, 96,
587
+ 159, 95, 96, 160, 95, 96, 111, 111,
588
+ 95, 96, 162, 95, 96, 113, 95, 164,
589
+ 0, 165, 0, 166, 0, 167, 0, 168,
590
+ 0, 170, 169, 170, 169, 170, 170, 4,
591
+ 171, 185, 4, 186, 188, 185, 202, 209,
592
+ 214, 222, 227, 252, 170, 169, 170, 172,
593
+ 169, 170, 173, 169, 170, 174, 169, 170,
594
+ 175, 169, 170, 176, 169, 170, 177, 169,
595
+ 170, 178, 169, 170, 179, 169, 170, 180,
596
+ 169, 170, 181, 169, 170, 182, 169, 170,
597
+ 183, 169, 170, 184, 169, 170, 4, 169,
598
+ 170, 84, 169, 170, 187, 169, 170, 185,
599
+ 169, 170, 189, 169, 170, 190, 169, 170,
600
+ 191, 169, 170, 192, 169, 170, 193, 169,
601
+ 170, 194, 169, 170, 195, 169, 170, 196,
602
+ 169, 170, 197, 169, 170, 198, 169, 170,
603
+ 199, 169, 170, 200, 169, 170, 201, 169,
604
+ 170, 84, 169, 170, 203, 205, 169, 170,
605
+ 204, 169, 170, 84, 185, 169, 170, 206,
606
+ 169, 170, 207, 169, 170, 208, 169, 170,
607
+ 200, 169, 170, 210, 169, 170, 211, 169,
608
+ 170, 212, 169, 213, 170, 197, 169, 197,
609
+ 170, 169, 170, 215, 217, 169, 170, 216,
610
+ 169, 170, 185, 169, 170, 218, 169, 170,
611
+ 219, 169, 170, 220, 169, 170, 221, 169,
612
+ 170, 201, 169, 170, 223, 169, 170, 224,
613
+ 169, 170, 225, 169, 170, 226, 169, 170,
614
+ 201, 169, 170, 228, 234, 236, 169, 170,
615
+ 229, 169, 170, 230, 169, 170, 231, 169,
616
+ 170, 232, 169, 170, 233, 169, 170, 201,
617
+ 169, 170, 235, 169, 170, 221, 169, 170,
618
+ 237, 169, 170, 238, 169, 170, 239, 169,
619
+ 170, 240, 169, 170, 241, 169, 170, 242,
620
+ 169, 170, 243, 169, 170, 244, 169, 170,
621
+ 245, 169, 170, 246, 169, 170, 247, 169,
622
+ 170, 248, 169, 170, 249, 169, 170, 250,
623
+ 169, 170, 251, 169, 170, 221, 169, 170,
624
+ 253, 169, 170, 254, 257, 169, 170, 255,
625
+ 169, 170, 256, 169, 170, 185, 185, 169,
626
+ 170, 258, 169, 170, 187, 169, 260, 0,
627
+ 261, 0, 262, 0, 263, 48, 0, 48,
628
+ 0, 265, 267, 0, 266, 0, 31, 0,
629
+ 268, 271, 0, 269, 0, 270, 0, 167,
630
+ 0, 272, 0, 273, 0, 274, 0, 52,
631
+ 0, 276, 281, 0, 277, 0, 278, 0,
632
+ 279, 0, 280, 0, 270, 0, 282, 0,
633
+ 283, 0, 284, 0, 285, 0, 286, 384,
634
+ 0, 288, 287, 288, 287, 288, 288, 4,
635
+ 289, 303, 4, 304, 306, 303, 320, 329,
636
+ 334, 344, 352, 377, 288, 287, 288, 290,
637
+ 287, 288, 291, 287, 288, 292, 287, 288,
638
+ 293, 287, 288, 294, 287, 288, 295, 287,
639
+ 288, 296, 287, 288, 297, 287, 288, 298,
640
+ 287, 288, 299, 287, 288, 300, 287, 288,
641
+ 301, 287, 288, 302, 287, 288, 4, 287,
642
+ 288, 84, 287, 288, 305, 287, 288, 303,
643
+ 287, 288, 307, 287, 288, 308, 287, 288,
644
+ 309, 287, 288, 310, 287, 288, 311, 287,
645
+ 288, 312, 287, 288, 313, 287, 288, 314,
646
+ 287, 288, 315, 287, 288, 316, 287, 288,
647
+ 317, 287, 288, 318, 287, 288, 319, 287,
648
+ 288, 84, 287, 288, 321, 323, 287, 288,
649
+ 322, 287, 288, 84, 303, 287, 288, 324,
650
+ 287, 288, 325, 327, 287, 288, 326, 287,
651
+ 288, 318, 287, 288, 328, 287, 288, 317,
652
+ 287, 288, 330, 287, 288, 331, 287, 288,
653
+ 332, 287, 333, 288, 315, 287, 315, 288,
654
+ 287, 288, 335, 337, 287, 288, 336, 287,
655
+ 288, 303, 287, 288, 338, 341, 287, 288,
656
+ 339, 287, 288, 340, 287, 288, 319, 287,
657
+ 288, 342, 287, 288, 343, 287, 288, 340,
658
+ 287, 288, 345, 348, 287, 288, 346, 287,
659
+ 288, 347, 287, 288, 342, 287, 288, 349,
660
+ 287, 288, 350, 287, 288, 351, 287, 288,
661
+ 319, 287, 288, 353, 359, 361, 287, 288,
662
+ 354, 287, 288, 355, 287, 288, 356, 287,
663
+ 288, 357, 287, 288, 358, 287, 288, 319,
664
+ 287, 288, 360, 287, 288, 340, 287, 288,
665
+ 362, 287, 288, 363, 287, 288, 364, 287,
666
+ 288, 365, 287, 288, 366, 287, 288, 367,
667
+ 287, 288, 368, 287, 288, 369, 287, 288,
668
+ 370, 287, 288, 371, 287, 288, 372, 287,
669
+ 288, 373, 287, 288, 374, 287, 288, 375,
670
+ 287, 288, 376, 287, 288, 340, 287, 288,
671
+ 378, 287, 288, 379, 382, 287, 288, 380,
672
+ 287, 288, 381, 287, 288, 303, 303, 287,
673
+ 288, 383, 287, 288, 305, 287, 385, 0,
674
+ 387, 386, 387, 386, 387, 387, 4, 388,
675
+ 402, 407, 4, 387, 386, 387, 389, 386,
676
+ 387, 390, 386, 387, 391, 386, 387, 392,
677
+ 386, 387, 393, 386, 387, 394, 386, 387,
678
+ 395, 386, 387, 396, 386, 387, 397, 386,
679
+ 387, 398, 386, 387, 399, 386, 387, 400,
680
+ 386, 387, 401, 386, 387, 84, 386, 387,
681
+ 403, 386, 387, 404, 386, 387, 405, 386,
682
+ 406, 387, 397, 386, 397, 387, 386, 387,
683
+ 408, 386, 387, 409, 386, 387, 410, 386,
684
+ 387, 411, 386, 387, 412, 386, 387, 401,
685
+ 386, 414, 422, 425, 0, 415, 0, 416,
686
+ 0, 417, 0, 418, 0, 419, 0, 420,
687
+ 421, 0, 384, 0, 286, 0, 423, 0,
688
+ 424, 0, 93, 0, 426, 0, 427, 0,
689
+ 428, 0, 429, 0, 430, 0, 431, 0,
690
+ 432, 0, 433, 0, 434, 0, 435, 0,
691
+ 436, 0, 437, 0, 438, 0, 439, 0,
692
+ 440, 0, 424, 0, 442, 0, 443, 446,
693
+ 0, 444, 0, 445, 0, 31, 31, 0,
694
+ 447, 0, 38, 0, 448, 449, 448, 0,
695
+ 453, 452, 451, 449, 452, 450, 0, 451,
696
+ 449, 450, 0, 451, 450, 453, 452, 451,
697
+ 449, 452, 450, 453, 453, 5, 15, 17,
698
+ 31, 34, 37, 39, 31, 85, 259, 264,
699
+ 275, 413, 441, 448, 453, 0, 55, 455,
700
+ 54, 55, 456, 54, 55, 457, 459, 54,
701
+ 55, 458, 54, 55, 82, 54, 55, 460,
702
+ 54, 55, 81, 54, 55, 462, 54, 55,
703
+ 463, 54, 55, 464, 54, 465, 55, 79,
704
+ 54, 79, 55, 54, 55, 467, 54, 55,
705
+ 468, 471, 54, 55, 469, 54, 55, 470,
706
+ 54, 55, 83, 54, 55, 472, 54, 55,
707
+ 473, 54, 55, 470, 54, 55, 475, 478,
708
+ 54, 55, 476, 54, 55, 477, 54, 55,
709
+ 472, 54, 55, 479, 54, 55, 480, 54,
710
+ 55, 481, 54, 55, 482, 54, 55, 84,
711
+ 83, 54, 55, 484, 491, 493, 54, 55,
712
+ 485, 54, 55, 486, 54, 55, 487, 54,
713
+ 55, 488, 54, 55, 489, 54, 55, 490,
714
+ 83, 54, 55, 83, 54, 55, 492, 54,
715
+ 55, 470, 54, 55, 494, 54, 55, 495,
716
+ 54, 55, 496, 54, 55, 497, 54, 55,
717
+ 498, 54, 55, 499, 54, 55, 500, 54,
718
+ 55, 501, 54, 55, 502, 54, 55, 503,
719
+ 54, 55, 504, 54, 55, 505, 54, 55,
720
+ 506, 54, 55, 507, 54, 55, 508, 54,
721
+ 55, 470, 54, 0, 0
722
+ };
723
+
724
+ static const unsigned char _lexer_trans_actions[] = {
725
+ 0, 54, 0, 5, 1, 0, 29, 1,
726
+ 29, 29, 29, 29, 29, 29, 29, 29,
727
+ 29, 35, 0, 43, 0, 43, 0, 43,
728
+ 54, 0, 5, 1, 0, 29, 1, 29,
729
+ 29, 29, 29, 29, 29, 29, 29, 29,
730
+ 35, 0, 43, 0, 43, 0, 43, 135,
731
+ 48, 9, 106, 11, 0, 130, 45, 45,
732
+ 45, 3, 122, 33, 33, 33, 0, 122,
733
+ 33, 33, 33, 0, 122, 33, 0, 33,
734
+ 0, 102, 7, 7, 43, 54, 0, 0,
735
+ 43, 114, 25, 0, 54, 43, 0, 43,
736
+ 0, 43, 0, 43, 0, 43, 0, 43,
737
+ 0, 43, 0, 43, 0, 43, 0, 43,
738
+ 0, 43, 0, 43, 0, 43, 0, 43,
739
+ 0, 43, 0, 43, 43, 57, 110, 23,
740
+ 0, 43, 43, 43, 43, 0, 27, 118,
741
+ 27, 27, 51, 27, 0, 54, 0, 1,
742
+ 0, 43, 0, 43, 0, 43, 0, 43,
743
+ 0, 43, 0, 43, 0, 43, 0, 43,
744
+ 0, 43, 0, 43, 0, 43, 0, 43,
745
+ 0, 43, 0, 43, 0, 43, 0, 43,
746
+ 0, 43, 140, 57, 54, 0, 54, 0,
747
+ 69, 33, 69, 84, 84, 84, 84, 84,
748
+ 84, 0, 0, 54, 0, 0, 54, 0,
749
+ 0, 54, 0, 0, 54, 0, 0, 54,
750
+ 0, 0, 54, 0, 0, 54, 0, 0,
751
+ 54, 0, 0, 54, 0, 0, 54, 0,
752
+ 0, 54, 0, 0, 54, 0, 0, 54,
753
+ 0, 0, 54, 13, 0, 54, 0, 0,
754
+ 54, 0, 0, 54, 0, 0, 54, 0,
755
+ 0, 54, 0, 0, 54, 0, 0, 54,
756
+ 0, 0, 54, 0, 0, 54, 0, 0,
757
+ 54, 0, 0, 54, 0, 0, 54, 0,
758
+ 0, 54, 0, 0, 54, 13, 0, 126,
759
+ 31, 60, 57, 31, 63, 57, 63, 63,
760
+ 63, 63, 63, 63, 63, 63, 63, 66,
761
+ 31, 43, 0, 0, 43, 0, 43, 0,
762
+ 0, 43, 0, 43, 0, 0, 43, 0,
763
+ 43, 0, 43, 0, 43, 0, 43, 140,
764
+ 57, 54, 0, 54, 0, 78, 33, 84,
765
+ 78, 84, 84, 84, 84, 84, 84, 84,
766
+ 84, 84, 0, 0, 54, 0, 0, 54,
767
+ 0, 0, 54, 0, 0, 54, 0, 0,
768
+ 54, 0, 0, 54, 0, 0, 54, 0,
769
+ 0, 54, 0, 0, 54, 0, 0, 54,
770
+ 0, 0, 54, 0, 0, 54, 0, 0,
771
+ 54, 0, 0, 54, 19, 0, 54, 19,
772
+ 0, 54, 0, 0, 54, 0, 0, 54,
773
+ 0, 0, 54, 0, 0, 54, 0, 0,
774
+ 54, 0, 0, 54, 0, 0, 54, 0,
775
+ 0, 54, 0, 0, 54, 0, 0, 54,
776
+ 0, 0, 54, 0, 0, 54, 0, 0,
777
+ 54, 0, 0, 54, 0, 0, 54, 19,
778
+ 0, 54, 0, 0, 54, 0, 0, 54,
779
+ 19, 0, 0, 54, 0, 0, 54, 0,
780
+ 0, 54, 0, 0, 0, 54, 0, 0,
781
+ 0, 54, 0, 54, 0, 0, 0, 54,
782
+ 0, 0, 54, 0, 0, 54, 0, 0,
783
+ 54, 0, 0, 54, 0, 0, 54, 0,
784
+ 0, 54, 0, 0, 54, 0, 0, 54,
785
+ 0, 0, 54, 0, 0, 54, 0, 0,
786
+ 54, 0, 0, 54, 0, 0, 54, 0,
787
+ 0, 54, 0, 0, 54, 0, 0, 54,
788
+ 0, 0, 54, 0, 0, 54, 0, 0,
789
+ 54, 0, 0, 54, 0, 0, 0, 54,
790
+ 0, 0, 54, 0, 0, 54, 0, 0,
791
+ 0, 54, 0, 0, 54, 0, 0, 0,
792
+ 43, 0, 43, 0, 43, 0, 43, 0,
793
+ 43, 140, 57, 54, 0, 54, 0, 72,
794
+ 33, 84, 72, 84, 84, 84, 84, 84,
795
+ 84, 84, 84, 84, 0, 0, 54, 0,
796
+ 0, 54, 0, 0, 54, 0, 0, 54,
797
+ 0, 0, 54, 0, 0, 54, 0, 0,
798
+ 54, 0, 0, 54, 0, 0, 54, 0,
799
+ 0, 54, 0, 0, 54, 0, 0, 54,
800
+ 0, 0, 54, 0, 0, 54, 15, 0,
801
+ 54, 15, 0, 54, 0, 0, 54, 0,
802
+ 0, 54, 0, 0, 54, 0, 0, 54,
803
+ 0, 0, 54, 0, 0, 54, 0, 0,
804
+ 54, 0, 0, 54, 0, 0, 54, 0,
805
+ 0, 54, 0, 0, 54, 0, 0, 54,
806
+ 0, 0, 54, 0, 0, 54, 0, 0,
807
+ 54, 15, 0, 54, 0, 0, 0, 54,
808
+ 0, 0, 54, 15, 0, 0, 54, 0,
809
+ 0, 54, 0, 0, 54, 0, 0, 54,
810
+ 0, 0, 54, 0, 0, 54, 0, 0,
811
+ 54, 0, 0, 0, 54, 0, 0, 0,
812
+ 54, 0, 54, 0, 0, 0, 54, 0,
813
+ 0, 54, 0, 0, 54, 0, 0, 54,
814
+ 0, 0, 54, 0, 0, 54, 0, 0,
815
+ 54, 0, 0, 54, 0, 0, 54, 0,
816
+ 0, 54, 0, 0, 54, 0, 0, 54,
817
+ 0, 0, 54, 0, 0, 0, 0, 54,
818
+ 0, 0, 54, 0, 0, 54, 0, 0,
819
+ 54, 0, 0, 54, 0, 0, 54, 0,
820
+ 0, 54, 0, 0, 54, 0, 0, 54,
821
+ 0, 0, 54, 0, 0, 54, 0, 0,
822
+ 54, 0, 0, 54, 0, 0, 54, 0,
823
+ 0, 54, 0, 0, 54, 0, 0, 54,
824
+ 0, 0, 54, 0, 0, 54, 0, 0,
825
+ 54, 0, 0, 54, 0, 0, 54, 0,
826
+ 0, 54, 0, 0, 54, 0, 0, 54,
827
+ 0, 0, 54, 0, 0, 0, 54, 0,
828
+ 0, 54, 0, 0, 54, 0, 0, 0,
829
+ 54, 0, 0, 54, 0, 0, 0, 43,
830
+ 0, 43, 0, 43, 0, 0, 43, 0,
831
+ 43, 0, 0, 43, 0, 43, 0, 43,
832
+ 0, 0, 43, 0, 43, 0, 43, 0,
833
+ 43, 0, 43, 0, 43, 0, 43, 0,
834
+ 43, 0, 0, 43, 0, 43, 0, 43,
835
+ 0, 43, 0, 43, 0, 43, 0, 43,
836
+ 0, 43, 0, 43, 0, 43, 0, 0,
837
+ 43, 140, 57, 54, 0, 54, 0, 75,
838
+ 33, 84, 75, 84, 84, 84, 84, 84,
839
+ 84, 84, 84, 84, 0, 0, 54, 0,
840
+ 0, 54, 0, 0, 54, 0, 0, 54,
841
+ 0, 0, 54, 0, 0, 54, 0, 0,
842
+ 54, 0, 0, 54, 0, 0, 54, 0,
843
+ 0, 54, 0, 0, 54, 0, 0, 54,
844
+ 0, 0, 54, 0, 0, 54, 17, 0,
845
+ 54, 17, 0, 54, 0, 0, 54, 0,
846
+ 0, 54, 0, 0, 54, 0, 0, 54,
847
+ 0, 0, 54, 0, 0, 54, 0, 0,
848
+ 54, 0, 0, 54, 0, 0, 54, 0,
849
+ 0, 54, 0, 0, 54, 0, 0, 54,
850
+ 0, 0, 54, 0, 0, 54, 0, 0,
851
+ 54, 17, 0, 54, 0, 0, 0, 54,
852
+ 0, 0, 54, 17, 0, 0, 54, 0,
853
+ 0, 54, 0, 0, 0, 54, 0, 0,
854
+ 54, 0, 0, 54, 0, 0, 54, 0,
855
+ 0, 54, 0, 0, 54, 0, 0, 54,
856
+ 0, 0, 0, 54, 0, 0, 0, 54,
857
+ 0, 54, 0, 0, 0, 54, 0, 0,
858
+ 54, 0, 0, 54, 0, 0, 0, 54,
859
+ 0, 0, 54, 0, 0, 54, 0, 0,
860
+ 54, 0, 0, 54, 0, 0, 54, 0,
861
+ 0, 54, 0, 0, 0, 54, 0, 0,
862
+ 54, 0, 0, 54, 0, 0, 54, 0,
863
+ 0, 54, 0, 0, 54, 0, 0, 54,
864
+ 0, 0, 54, 0, 0, 0, 0, 54,
865
+ 0, 0, 54, 0, 0, 54, 0, 0,
866
+ 54, 0, 0, 54, 0, 0, 54, 0,
867
+ 0, 54, 0, 0, 54, 0, 0, 54,
868
+ 0, 0, 54, 0, 0, 54, 0, 0,
869
+ 54, 0, 0, 54, 0, 0, 54, 0,
870
+ 0, 54, 0, 0, 54, 0, 0, 54,
871
+ 0, 0, 54, 0, 0, 54, 0, 0,
872
+ 54, 0, 0, 54, 0, 0, 54, 0,
873
+ 0, 54, 0, 0, 54, 0, 0, 54,
874
+ 0, 0, 54, 0, 0, 0, 54, 0,
875
+ 0, 54, 0, 0, 54, 0, 0, 0,
876
+ 54, 0, 0, 54, 0, 0, 0, 43,
877
+ 140, 57, 54, 0, 54, 0, 81, 84,
878
+ 84, 84, 81, 0, 0, 54, 0, 0,
879
+ 54, 0, 0, 54, 0, 0, 54, 0,
880
+ 0, 54, 0, 0, 54, 0, 0, 54,
881
+ 0, 0, 54, 0, 0, 54, 0, 0,
882
+ 54, 0, 0, 54, 0, 0, 54, 0,
883
+ 0, 54, 0, 0, 54, 21, 0, 54,
884
+ 0, 0, 54, 0, 0, 54, 0, 0,
885
+ 0, 54, 0, 0, 0, 54, 0, 54,
886
+ 0, 0, 54, 0, 0, 54, 0, 0,
887
+ 54, 0, 0, 54, 0, 0, 54, 0,
888
+ 0, 0, 0, 0, 43, 0, 43, 0,
889
+ 43, 0, 43, 0, 43, 0, 43, 0,
890
+ 0, 43, 0, 43, 0, 43, 0, 43,
891
+ 0, 43, 0, 43, 0, 43, 0, 43,
892
+ 0, 43, 0, 43, 0, 43, 0, 43,
893
+ 0, 43, 0, 43, 0, 43, 0, 43,
894
+ 0, 43, 0, 43, 0, 43, 0, 43,
895
+ 0, 43, 0, 43, 0, 43, 0, 0,
896
+ 43, 0, 43, 0, 43, 0, 0, 43,
897
+ 0, 43, 0, 43, 0, 0, 0, 43,
898
+ 54, 37, 37, 87, 37, 37, 43, 0,
899
+ 39, 0, 43, 0, 0, 54, 0, 0,
900
+ 39, 0, 0, 54, 0, 93, 90, 41,
901
+ 96, 90, 96, 96, 96, 96, 96, 96,
902
+ 96, 96, 96, 99, 0, 43, 54, 0,
903
+ 0, 54, 0, 0, 54, 0, 0, 0,
904
+ 54, 0, 0, 54, 0, 0, 54, 0,
905
+ 0, 54, 0, 0, 54, 0, 0, 54,
906
+ 0, 0, 54, 0, 0, 0, 54, 0,
907
+ 0, 0, 54, 0, 54, 0, 0, 54,
908
+ 0, 0, 0, 54, 0, 0, 54, 0,
909
+ 0, 54, 0, 0, 54, 0, 0, 54,
910
+ 0, 0, 54, 0, 0, 54, 0, 0,
911
+ 0, 54, 0, 0, 54, 0, 0, 54,
912
+ 0, 0, 54, 0, 0, 54, 0, 0,
913
+ 54, 0, 0, 54, 0, 0, 54, 13,
914
+ 0, 0, 54, 0, 0, 0, 0, 54,
915
+ 0, 0, 54, 0, 0, 54, 0, 0,
916
+ 54, 0, 0, 54, 0, 0, 54, 0,
917
+ 0, 0, 54, 0, 0, 54, 0, 0,
918
+ 54, 0, 0, 54, 0, 0, 54, 0,
919
+ 0, 54, 0, 0, 54, 0, 0, 54,
920
+ 0, 0, 54, 0, 0, 54, 0, 0,
921
+ 54, 0, 0, 54, 0, 0, 54, 0,
922
+ 0, 54, 0, 0, 54, 0, 0, 54,
923
+ 0, 0, 54, 0, 0, 54, 0, 0,
924
+ 54, 0, 0, 0, 0
925
+ };
926
+
927
+ static const unsigned char _lexer_eof_actions[] = {
928
+ 0, 43, 43, 43, 43, 43, 43, 43,
929
+ 43, 43, 43, 43, 43, 43, 43, 43,
930
+ 43, 43, 43, 43, 43, 43, 43, 43,
931
+ 43, 43, 43, 43, 43, 43, 43, 43,
932
+ 43, 43, 43, 43, 43, 43, 43, 43,
933
+ 43, 43, 43, 43, 43, 43, 43, 43,
934
+ 43, 43, 43, 43, 43, 43, 43, 43,
935
+ 43, 43, 43, 43, 43, 43, 43, 43,
936
+ 43, 43, 43, 43, 43, 43, 43, 43,
937
+ 43, 43, 43, 43, 43, 43, 43, 43,
938
+ 43, 43, 43, 43, 43, 43, 43, 43,
939
+ 43, 43, 43, 43, 43, 43, 43, 43,
940
+ 43, 43, 43, 43, 43, 43, 43, 43,
941
+ 43, 43, 43, 43, 43, 43, 43, 43,
942
+ 43, 43, 43, 43, 43, 43, 43, 43,
943
+ 43, 43, 43, 43, 43, 43, 43, 43,
944
+ 43, 43, 43, 43, 43, 43, 43, 43,
945
+ 43, 43, 43, 43, 43, 43, 43, 43,
946
+ 43, 43, 43, 43, 43, 43, 43, 43,
947
+ 43, 43, 43, 43, 43, 43, 43, 43,
948
+ 43, 43, 43, 43, 43, 43, 43, 43,
949
+ 43, 43, 43, 43, 43, 43, 43, 43,
950
+ 43, 43, 43, 43, 43, 43, 43, 43,
951
+ 43, 43, 43, 43, 43, 43, 43, 43,
952
+ 43, 43, 43, 43, 43, 43, 43, 43,
953
+ 43, 43, 43, 43, 43, 43, 43, 43,
954
+ 43, 43, 43, 43, 43, 43, 43, 43,
955
+ 43, 43, 43, 43, 43, 43, 43, 43,
956
+ 43, 43, 43, 43, 43, 43, 43, 43,
957
+ 43, 43, 43, 43, 43, 43, 43, 43,
958
+ 43, 43, 43, 43, 43, 43, 43, 43,
959
+ 43, 43, 43, 43, 43, 43, 43, 43,
960
+ 43, 43, 43, 43, 43, 43, 43, 43,
961
+ 43, 43, 43, 43, 43, 43, 43, 43,
962
+ 43, 43, 43, 43, 43, 43, 43, 43,
963
+ 43, 43, 43, 43, 43, 43, 43, 43,
964
+ 43, 43, 43, 43, 43, 43, 43, 43,
965
+ 43, 43, 43, 43, 43, 43, 43, 43,
966
+ 43, 43, 43, 43, 43, 43, 43, 43,
967
+ 43, 43, 43, 43, 43, 43, 43, 43,
968
+ 43, 43, 43, 43, 43, 43, 43, 43,
969
+ 43, 43, 43, 43, 43, 43, 43, 43,
970
+ 43, 43, 43, 43, 43, 43, 43, 43,
971
+ 43, 43, 43, 43, 43, 43, 43, 43,
972
+ 43, 43, 43, 43, 43, 43, 43, 43,
973
+ 43, 43, 43, 43, 43, 43, 43, 43,
974
+ 43, 43, 43, 43, 43, 43, 43, 43,
975
+ 43, 43, 43, 43, 43, 43, 43, 43,
976
+ 43, 43, 43, 43, 43, 43, 43, 43,
977
+ 43, 43, 43, 43, 43, 43, 43, 43,
978
+ 43, 43, 43, 43, 43, 43, 43, 43,
979
+ 43, 43, 43, 43, 43, 43, 43, 43,
980
+ 43, 43, 43, 43, 43, 43, 43, 43,
981
+ 43, 43, 43, 43, 43, 43, 43, 43,
982
+ 43, 43, 43, 43, 43, 43, 43, 43,
983
+ 43, 43, 43, 43, 43, 43, 43, 43,
984
+ 43, 43, 43, 43, 43, 43, 43, 43,
985
+ 43, 43, 43, 43, 43, 43, 43, 43,
986
+ 43, 43, 43, 43, 43, 43, 43, 43,
987
+ 43, 43, 43, 43, 43, 43, 43, 43,
988
+ 43, 43, 43, 43, 43, 43, 43, 43,
989
+ 43, 43, 43, 43, 43, 43, 43, 43,
990
+ 43, 43, 43, 43, 43, 43, 43, 43,
991
+ 43, 43, 43, 43, 43, 43
992
+ };
993
+
994
+ static const int lexer_start = 1;
995
+ static const int lexer_first_final = 509;
996
+ static const int lexer_error = 0;
997
+
998
+ static const int lexer_en_main = 1;
999
+
1000
+
1001
+ #line 258 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1002
+
1003
+ static VALUE
1004
+ unindent(VALUE con, int start_col)
1005
+ {
1006
+ VALUE re;
1007
+ // Gherkin will crash gracefully if the string representation of start_col pushes the pattern past 32 characters
1008
+ char pat[32];
1009
+ snprintf(pat, 32, "^[\t ]{0,%d}", start_col);
1010
+ re = rb_reg_regcomp(rb_str_new2(pat));
1011
+ rb_funcall(con, rb_intern("gsub!"), 2, re, rb_str_new2(""));
1012
+
1013
+ return Qnil;
1014
+
1015
+ }
1016
+
1017
+ static void
1018
+ store_kw_con(VALUE listener, const char * event_name,
1019
+ const char * keyword_at, size_t keyword_length,
1020
+ const char * at, size_t length,
1021
+ int current_line)
1022
+ {
1023
+ VALUE con = Qnil, kw = Qnil;
1024
+ kw = ENCODED_STR_NEW(keyword_at, keyword_length);
1025
+ con = ENCODED_STR_NEW(at, length);
1026
+ rb_funcall(con, rb_intern("strip!"), 0);
1027
+ rb_funcall(listener, rb_intern(event_name), 3, kw, con, INT2FIX(current_line));
1028
+ }
1029
+
1030
+ static void
1031
+ store_multiline_kw_con(VALUE listener, const char * event_name,
1032
+ const char * keyword_at, size_t keyword_length,
1033
+ const char * at, size_t length,
1034
+ int current_line, int start_col)
1035
+ {
1036
+ VALUE split;
1037
+ VALUE con = Qnil, kw = Qnil, name = Qnil, desc = Qnil;
1038
+
1039
+ kw = ENCODED_STR_NEW(keyword_at, keyword_length);
1040
+ con = ENCODED_STR_NEW(at, length);
1041
+
1042
+ unindent(con, start_col);
1043
+
1044
+ split = rb_str_split(con, "\n");
1045
+
1046
+ name = rb_funcall(split, rb_intern("shift"), 0);
1047
+ desc = rb_ary_join(split, rb_str_new2( "\n" ));
1048
+
1049
+ if( name == Qnil )
1050
+ {
1051
+ name = rb_str_new2("");
1052
+ }
1053
+ if( rb_funcall(desc, rb_intern("size"), 0) == 0)
1054
+ {
1055
+ desc = rb_str_new2("");
1056
+ }
1057
+ rb_funcall(name, rb_intern("strip!"), 0);
1058
+ rb_funcall(desc, rb_intern("rstrip!"), 0);
1059
+ rb_funcall(listener, rb_intern(event_name), 4, kw, name, desc, INT2FIX(current_line));
1060
+ }
1061
+
1062
+ static void
1063
+ store_attr(VALUE listener, const char * attr_type,
1064
+ const char * at, size_t length,
1065
+ int line)
1066
+ {
1067
+ VALUE val = ENCODED_STR_NEW(at, length);
1068
+ rb_funcall(listener, rb_intern(attr_type), 2, val, INT2FIX(line));
1069
+ }
1070
+ static void
1071
+ store_docstring_content(VALUE listener,
1072
+ int start_col,
1073
+ const char *type_at, size_t type_length,
1074
+ const char *at, size_t length,
1075
+ int current_line)
1076
+ {
1077
+ VALUE re2;
1078
+ VALUE unescape_escaped_quotes;
1079
+ VALUE con = ENCODED_STR_NEW(at, length);
1080
+ VALUE con_type = ENCODED_STR_NEW(type_at, type_length);
1081
+
1082
+ unindent(con, start_col);
1083
+
1084
+ re2 = rb_reg_regcomp(rb_str_new2("\r\\Z"));
1085
+ unescape_escaped_quotes = rb_reg_regcomp(rb_str_new2("\\\\\"\\\\\"\\\\\""));
1086
+ rb_funcall(con, rb_intern("sub!"), 2, re2, rb_str_new2(""));
1087
+ rb_funcall(con_type, rb_intern("strip!"), 0);
1088
+ rb_funcall(con, rb_intern("gsub!"), 2, unescape_escaped_quotes, rb_str_new2("\"\"\""));
1089
+ rb_funcall(listener, rb_intern("doc_string"), 3, con_type, con, INT2FIX(current_line));
1090
+ }
1091
+ static void
1092
+ raise_lexer_error(const char * at, int line)
1093
+ {
1094
+ rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.", line, at);
1095
+ }
1096
+
1097
+ static void lexer_init(lexer_state *lexer) {
1098
+ lexer->content_start = 0;
1099
+ lexer->content_end = 0;
1100
+ lexer->content_len = 0;
1101
+ lexer->docstring_content_type_start = 0;
1102
+ lexer->docstring_content_type_end = 0;
1103
+ lexer->mark = 0;
1104
+ lexer->keyword_start = 0;
1105
+ lexer->keyword_end = 0;
1106
+ lexer->next_keyword_start = 0;
1107
+ lexer->line_number = 1;
1108
+ lexer->last_newline = 0;
1109
+ lexer->final_newline = 0;
1110
+ lexer->start_col = 0;
1111
+ }
1112
+
1113
+ static VALUE CLexer_alloc(VALUE klass)
1114
+ {
1115
+ VALUE obj;
1116
+ lexer_state *lxr = ALLOC(lexer_state);
1117
+ lexer_init(lxr);
1118
+
1119
+ obj = Data_Wrap_Struct(klass, NULL, -1, lxr);
1120
+
1121
+ return obj;
1122
+ }
1123
+
1124
+ static VALUE CLexer_init(VALUE self, VALUE listener)
1125
+ {
1126
+ lexer_state *lxr;
1127
+ rb_iv_set(self, "@listener", listener);
1128
+
1129
+ lxr = NULL;
1130
+ DATA_GET(self, lexer_state, lxr);
1131
+ lexer_init(lxr);
1132
+
1133
+ return self;
1134
+ }
1135
+
1136
+ static VALUE CLexer_scan(VALUE self, VALUE input)
1137
+ {
1138
+ VALUE input_copy;
1139
+ char *data;
1140
+ size_t len;
1141
+ VALUE listener = rb_iv_get(self, "@listener");
1142
+
1143
+ lexer_state *lexer;
1144
+ lexer = NULL;
1145
+ DATA_GET(self, lexer_state, lexer);
1146
+
1147
+ input_copy = rb_str_dup(input);
1148
+
1149
+ rb_str_append(input_copy, rb_str_new2("\n%_FEATURE_END_%"));
1150
+ data = RSTRING_PTR(input_copy);
1151
+ len = RSTRING_LEN(input_copy);
1152
+
1153
+ if (len == 0) {
1154
+ rb_raise(rb_eGherkinLexingError, "No content to lex.");
1155
+ } else {
1156
+
1157
+ const char *p, *pe, *eof;
1158
+ int cs = 0;
1159
+
1160
+ VALUE current_row = Qnil;
1161
+
1162
+ p = data;
1163
+ pe = data + len;
1164
+ eof = pe;
1165
+
1166
+ assert(*pe == '\0' && "pointer does not end on NULL");
1167
+
1168
+
1169
+ #line 1170 "ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c"
1170
+ {
1171
+ cs = lexer_start;
1172
+ }
1173
+
1174
+ #line 425 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1175
+
1176
+ #line 1177 "ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c"
1177
+ {
1178
+ int _klen;
1179
+ unsigned int _trans;
1180
+ const char *_acts;
1181
+ unsigned int _nacts;
1182
+ const char *_keys;
1183
+
1184
+ if ( p == pe )
1185
+ goto _test_eof;
1186
+ if ( cs == 0 )
1187
+ goto _out;
1188
+ _resume:
1189
+ _keys = _lexer_trans_keys + _lexer_key_offsets[cs];
1190
+ _trans = _lexer_index_offsets[cs];
1191
+
1192
+ _klen = _lexer_single_lengths[cs];
1193
+ if ( _klen > 0 ) {
1194
+ const char *_lower = _keys;
1195
+ const char *_mid;
1196
+ const char *_upper = _keys + _klen - 1;
1197
+ while (1) {
1198
+ if ( _upper < _lower )
1199
+ break;
1200
+
1201
+ _mid = _lower + ((_upper-_lower) >> 1);
1202
+ if ( (*p) < *_mid )
1203
+ _upper = _mid - 1;
1204
+ else if ( (*p) > *_mid )
1205
+ _lower = _mid + 1;
1206
+ else {
1207
+ _trans += (_mid - _keys);
1208
+ goto _match;
1209
+ }
1210
+ }
1211
+ _keys += _klen;
1212
+ _trans += _klen;
1213
+ }
1214
+
1215
+ _klen = _lexer_range_lengths[cs];
1216
+ if ( _klen > 0 ) {
1217
+ const char *_lower = _keys;
1218
+ const char *_mid;
1219
+ const char *_upper = _keys + (_klen<<1) - 2;
1220
+ while (1) {
1221
+ if ( _upper < _lower )
1222
+ break;
1223
+
1224
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1225
+ if ( (*p) < _mid[0] )
1226
+ _upper = _mid - 2;
1227
+ else if ( (*p) > _mid[1] )
1228
+ _lower = _mid + 2;
1229
+ else {
1230
+ _trans += ((_mid - _keys)>>1);
1231
+ goto _match;
1232
+ }
1233
+ }
1234
+ _trans += _klen;
1235
+ }
1236
+
1237
+ _match:
1238
+ cs = _lexer_trans_targs[_trans];
1239
+
1240
+ if ( _lexer_trans_actions[_trans] == 0 )
1241
+ goto _again;
1242
+
1243
+ _acts = _lexer_actions + _lexer_trans_actions[_trans];
1244
+ _nacts = (unsigned int) *_acts++;
1245
+ while ( _nacts-- > 0 )
1246
+ {
1247
+ switch ( *_acts++ )
1248
+ {
1249
+ case 0:
1250
+ #line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1251
+ {
1252
+ MARK(content_start, p);
1253
+ lexer->current_line = lexer->line_number;
1254
+ lexer->start_col = lexer->content_start - lexer->last_newline - (lexer->keyword_end - lexer->keyword_start) + 2;
1255
+ }
1256
+ break;
1257
+ case 1:
1258
+ #line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1259
+ {
1260
+ MARK(content_start, p);
1261
+ }
1262
+ break;
1263
+ case 2:
1264
+ #line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1265
+ {
1266
+ lexer->current_line = lexer->line_number;
1267
+ lexer->start_col = p - data - lexer->last_newline;
1268
+ }
1269
+ break;
1270
+ case 3:
1271
+ #line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1272
+ {
1273
+ int len = LEN(content_start, PTR_TO(final_newline));
1274
+ int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
1275
+
1276
+ if (len < 0) len = 0;
1277
+ if (type_len < 0) len = 0;
1278
+
1279
+ store_docstring_content(listener, lexer->start_col, PTR_TO(docstring_content_type_start), type_len, PTR_TO(content_start), len, lexer->current_line);
1280
+ }
1281
+ break;
1282
+ case 4:
1283
+ #line 108 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1284
+ {
1285
+ MARK(docstring_content_type_start, p);
1286
+ }
1287
+ break;
1288
+ case 5:
1289
+ #line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1290
+ {
1291
+ MARK(docstring_content_type_end, p);
1292
+ }
1293
+ break;
1294
+ case 6:
1295
+ #line 116 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1296
+ {
1297
+ STORE_KW_END_CON(feature);
1298
+ }
1299
+ break;
1300
+ case 7:
1301
+ #line 120 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1302
+ {
1303
+ STORE_KW_END_CON(background);
1304
+ }
1305
+ break;
1306
+ case 8:
1307
+ #line 124 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1308
+ {
1309
+ STORE_KW_END_CON(scenario);
1310
+ }
1311
+ break;
1312
+ case 9:
1313
+ #line 128 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1314
+ {
1315
+ STORE_KW_END_CON(scenario_outline);
1316
+ }
1317
+ break;
1318
+ case 10:
1319
+ #line 132 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1320
+ {
1321
+ STORE_KW_END_CON(examples);
1322
+ }
1323
+ break;
1324
+ case 11:
1325
+ #line 136 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1326
+ {
1327
+ store_kw_con(listener, "step",
1328
+ PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
1329
+ PTR_TO(content_start), LEN(content_start, p),
1330
+ lexer->current_line);
1331
+ }
1332
+ break;
1333
+ case 12:
1334
+ #line 143 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1335
+ {
1336
+ STORE_ATTR(comment);
1337
+ lexer->mark = 0;
1338
+ }
1339
+ break;
1340
+ case 13:
1341
+ #line 148 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1342
+ {
1343
+ STORE_ATTR(tag);
1344
+ lexer->mark = 0;
1345
+ }
1346
+ break;
1347
+ case 14:
1348
+ #line 153 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1349
+ {
1350
+ lexer->line_number += 1;
1351
+ MARK(final_newline, p);
1352
+ }
1353
+ break;
1354
+ case 15:
1355
+ #line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1356
+ {
1357
+ MARK(last_newline, p + 1);
1358
+ }
1359
+ break;
1360
+ case 16:
1361
+ #line 162 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1362
+ {
1363
+ if (lexer->mark == 0) {
1364
+ MARK(mark, p);
1365
+ }
1366
+ }
1367
+ break;
1368
+ case 17:
1369
+ #line 168 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1370
+ {
1371
+ MARK(keyword_end, p);
1372
+ MARK(keyword_start, PTR_TO(mark));
1373
+ MARK(content_start, p + 1);
1374
+ lexer->mark = 0;
1375
+ }
1376
+ break;
1377
+ case 18:
1378
+ #line 175 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1379
+ {
1380
+ MARK(content_end, p);
1381
+ }
1382
+ break;
1383
+ case 19:
1384
+ #line 179 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1385
+ {
1386
+ p = p - 1;
1387
+ lexer->current_line = lexer->line_number;
1388
+ current_row = rb_ary_new();
1389
+ }
1390
+ break;
1391
+ case 20:
1392
+ #line 185 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1393
+ {
1394
+ MARK(content_start, p);
1395
+ }
1396
+ break;
1397
+ case 21:
1398
+ #line 189 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1399
+ {
1400
+ VALUE re_pipe, re_newline, re_backslash;
1401
+ VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
1402
+ rb_funcall(con, rb_intern("strip!"), 0);
1403
+ re_pipe = rb_reg_regcomp(rb_str_new2("\\\\\\|"));
1404
+ re_newline = rb_reg_regcomp(rb_str_new2("\\\\n"));
1405
+ re_backslash = rb_reg_regcomp(rb_str_new2("\\\\\\\\"));
1406
+ rb_funcall(con, rb_intern("gsub!"), 2, re_pipe, rb_str_new2("|"));
1407
+ rb_funcall(con, rb_intern("gsub!"), 2, re_newline, rb_str_new2("\n"));
1408
+ rb_funcall(con, rb_intern("gsub!"), 2, re_backslash, rb_str_new2("\\"));
1409
+
1410
+ rb_ary_push(current_row, con);
1411
+ }
1412
+ break;
1413
+ case 22:
1414
+ #line 203 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1415
+ {
1416
+ rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
1417
+ }
1418
+ break;
1419
+ case 23:
1420
+ #line 207 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1421
+ {
1422
+ int line;
1423
+ if (cs < lexer_first_final) {
1424
+ size_t count = 0;
1425
+ VALUE newstr_val;
1426
+ char *newstr;
1427
+ int newstr_count = 0;
1428
+ size_t len;
1429
+ const char *buff;
1430
+ if (lexer->last_newline != 0) {
1431
+ len = LEN(last_newline, eof);
1432
+ buff = PTR_TO(last_newline);
1433
+ } else {
1434
+ len = strlen(data);
1435
+ buff = data;
1436
+ }
1437
+
1438
+ // Allocate as a ruby string so that it gets cleaned up by GC
1439
+ newstr_val = rb_str_new(buff, len);
1440
+ newstr = RSTRING_PTR(newstr_val);
1441
+
1442
+
1443
+ for (count = 0; count < len; count++) {
1444
+ if(buff[count] == 10) {
1445
+ newstr[newstr_count] = '\0'; // terminate new string at first newline found
1446
+ break;
1447
+ } else {
1448
+ if (buff[count] == '%') {
1449
+ newstr[newstr_count++] = buff[count];
1450
+ newstr[newstr_count] = buff[count];
1451
+ } else {
1452
+ newstr[newstr_count] = buff[count];
1453
+ }
1454
+ }
1455
+ newstr_count++;
1456
+ }
1457
+
1458
+ line = lexer->line_number;
1459
+ lexer_init(lexer); // Re-initialize so we can scan again with the same lexer
1460
+ raise_lexer_error(newstr, line);
1461
+ } else {
1462
+ rb_funcall(listener, rb_intern("eof"), 0);
1463
+ }
1464
+ }
1465
+ break;
1466
+ #line 1467 "ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c"
1467
+ }
1468
+ }
1469
+
1470
+ _again:
1471
+ if ( cs == 0 )
1472
+ goto _out;
1473
+ if ( ++p != pe )
1474
+ goto _resume;
1475
+ _test_eof: {}
1476
+ if ( p == eof )
1477
+ {
1478
+ const char *__acts = _lexer_actions + _lexer_eof_actions[cs];
1479
+ unsigned int __nacts = (unsigned int) *__acts++;
1480
+ while ( __nacts-- > 0 ) {
1481
+ switch ( *__acts++ ) {
1482
+ case 23:
1483
+ #line 207 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1484
+ {
1485
+ int line;
1486
+ if (cs < lexer_first_final) {
1487
+ size_t count = 0;
1488
+ VALUE newstr_val;
1489
+ char *newstr;
1490
+ int newstr_count = 0;
1491
+ size_t len;
1492
+ const char *buff;
1493
+ if (lexer->last_newline != 0) {
1494
+ len = LEN(last_newline, eof);
1495
+ buff = PTR_TO(last_newline);
1496
+ } else {
1497
+ len = strlen(data);
1498
+ buff = data;
1499
+ }
1500
+
1501
+ // Allocate as a ruby string so that it gets cleaned up by GC
1502
+ newstr_val = rb_str_new(buff, len);
1503
+ newstr = RSTRING_PTR(newstr_val);
1504
+
1505
+
1506
+ for (count = 0; count < len; count++) {
1507
+ if(buff[count] == 10) {
1508
+ newstr[newstr_count] = '\0'; // terminate new string at first newline found
1509
+ break;
1510
+ } else {
1511
+ if (buff[count] == '%') {
1512
+ newstr[newstr_count++] = buff[count];
1513
+ newstr[newstr_count] = buff[count];
1514
+ } else {
1515
+ newstr[newstr_count] = buff[count];
1516
+ }
1517
+ }
1518
+ newstr_count++;
1519
+ }
1520
+
1521
+ line = lexer->line_number;
1522
+ lexer_init(lexer); // Re-initialize so we can scan again with the same lexer
1523
+ raise_lexer_error(newstr, line);
1524
+ } else {
1525
+ rb_funcall(listener, rb_intern("eof"), 0);
1526
+ }
1527
+ }
1528
+ break;
1529
+ #line 1530 "ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c"
1530
+ }
1531
+ }
1532
+ }
1533
+
1534
+ _out: {}
1535
+ }
1536
+
1537
+ #line 426 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sr_latn.c.rl"
1538
+
1539
+ assert(p <= pe && "data overflow after parsing execute");
1540
+ assert(lexer->content_start <= len && "content starts after data end");
1541
+ assert(lexer->mark < len && "mark is after data end");
1542
+
1543
+ // Reset lexer by re-initializing the whole thing
1544
+ lexer_init(lexer);
1545
+
1546
+ if (cs == lexer_error) {
1547
+ rb_raise(rb_eGherkinLexingError, "Invalid format, lexing fails.");
1548
+ } else {
1549
+ return Qtrue;
1550
+ }
1551
+ }
1552
+ }
1553
+
1554
+ void Init_gherkin_lexer_sr_latn()
1555
+ {
1556
+ mGherkin = rb_define_module("Gherkin");
1557
+ mGherkinLexer = rb_define_module_under(mGherkin, "Lexer");
1558
+ rb_eGherkinLexingError = rb_const_get(mGherkinLexer, rb_intern("LexingError"));
1559
+
1560
+ mCLexer = rb_define_module_under(mGherkin, "CLexer");
1561
+ cI18nLexer = rb_define_class_under(mCLexer, "Sr_latn", rb_cObject);
1562
+ rb_define_alloc_func(cI18nLexer, CLexer_alloc);
1563
+ rb_define_method(cI18nLexer, "initialize", CLexer_init, 1);
1564
+ rb_define_method(cI18nLexer, "scan", CLexer_scan, 1);
1565
+ }
1566
+