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