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