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_lol")
5
+ have_library("c", "main")
6
+ create_makefile("gherkin_lexer_en_lol")
@@ -0,0 +1,1174 @@
1
+
2
+ #line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.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_lol.c.rl"
84
+
85
+
86
+ /** Data **/
87
+
88
+ #line 89 "ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.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, 19, 20, 21, 39, 40, 41,
113
+ 43, 45, 50, 55, 60, 65, 69, 73,
114
+ 75, 76, 77, 78, 79, 80, 81, 82,
115
+ 83, 84, 85, 86, 87, 88, 89, 90,
116
+ 91, 92, 94, 99, 106, 111, 112, 114,
117
+ 115, 116, 117, 132, 134, 136, 138, 140,
118
+ 142, 144, 146, 148, 150, 152, 154, 156,
119
+ 158, 160, 162, 180, 181, 182, 183, 184,
120
+ 185, 186, 187, 188, 189, 190, 197, 199,
121
+ 201, 203, 205, 207, 209, 210, 211, 212,
122
+ 213, 214, 215, 216, 217, 218, 219, 220,
123
+ 221, 222, 224, 225, 226, 227, 228, 229,
124
+ 230, 231, 232, 247, 249, 251, 253, 255,
125
+ 257, 259, 261, 263, 265, 267, 269, 271,
126
+ 273, 275, 277, 279, 281, 283, 285, 287,
127
+ 289, 291, 293, 295, 297, 299, 301, 303,
128
+ 305, 307, 309, 311, 313, 315, 317, 319,
129
+ 321, 323, 324, 325, 340, 342, 344, 346,
130
+ 348, 350, 352, 354, 356, 358, 360, 362,
131
+ 364, 366, 368, 370, 372, 375, 377, 379,
132
+ 381, 383, 385, 387, 389, 391, 393, 395,
133
+ 397, 399, 401, 403, 405, 407, 410, 412,
134
+ 414, 416, 418, 420, 422, 424, 426, 428,
135
+ 430, 431, 432, 433, 434, 435, 436, 437,
136
+ 438, 449, 451, 453, 455, 457, 459, 461,
137
+ 463, 465, 467, 469, 471, 473, 475, 477,
138
+ 479, 481, 483, 485, 487, 489, 491, 493,
139
+ 495, 497, 499, 501, 503, 506, 508, 510,
140
+ 512, 514, 516, 518, 520, 522, 524, 526,
141
+ 530, 536, 539, 541, 547, 565, 567, 569,
142
+ 571, 573, 575, 577, 579, 581, 583, 585,
143
+ 587, 589, 591, 593, 595, 597, 599, 602,
144
+ 604, 606, 608, 610, 612, 614, 616, 618,
145
+ 620, 622, 624, 625
146
+ };
147
+
148
+ static const char _lexer_trans_keys[] = {
149
+ -17, 10, 32, 34, 35, 37, 42, 64,
150
+ 65, 66, 68, 69, 73, 77, 79, 87,
151
+ 124, 9, 13, -69, -65, 10, 32, 34,
152
+ 35, 37, 42, 64, 65, 66, 68, 69,
153
+ 73, 77, 79, 87, 124, 9, 13, 34,
154
+ 34, 10, 13, 10, 13, 10, 32, 34,
155
+ 9, 13, 10, 32, 34, 9, 13, 10,
156
+ 32, 34, 9, 13, 10, 32, 34, 9,
157
+ 13, 10, 32, 9, 13, 10, 32, 9,
158
+ 13, 10, 13, 10, 95, 70, 69, 65,
159
+ 84, 85, 82, 69, 95, 69, 78, 68,
160
+ 95, 37, 32, 10, 10, 13, 13, 32,
161
+ 64, 9, 10, 9, 10, 13, 32, 64,
162
+ 11, 12, 10, 32, 64, 9, 13, 78,
163
+ 52, 85, 58, 10, 10, 10, 32, 35,
164
+ 37, 42, 64, 65, 66, 68, 73, 77,
165
+ 79, 87, 9, 13, 10, 95, 10, 70,
166
+ 10, 69, 10, 65, 10, 84, 10, 85,
167
+ 10, 82, 10, 69, 10, 95, 10, 69,
168
+ 10, 78, 10, 68, 10, 95, 10, 37,
169
+ 10, 32, 10, 32, 34, 35, 37, 42,
170
+ 64, 65, 66, 68, 69, 73, 77, 79,
171
+ 87, 124, 9, 13, 69, 88, 65, 77,
172
+ 80, 76, 90, 58, 10, 10, 10, 32,
173
+ 35, 79, 124, 9, 13, 10, 72, 10,
174
+ 32, 10, 72, 10, 65, 10, 73, 10,
175
+ 58, 32, 67, 65, 78, 32, 72, 65,
176
+ 90, 73, 83, 72, 85, 78, 32, 58,
177
+ 83, 82, 83, 76, 89, 58, 10, 10,
178
+ 10, 32, 35, 37, 42, 64, 65, 66,
179
+ 68, 73, 77, 79, 87, 9, 13, 10,
180
+ 95, 10, 70, 10, 69, 10, 65, 10,
181
+ 84, 10, 85, 10, 82, 10, 69, 10,
182
+ 95, 10, 69, 10, 78, 10, 68, 10,
183
+ 95, 10, 37, 10, 32, 10, 78, 10,
184
+ 85, 10, 84, 10, 69, 10, 32, 10,
185
+ 67, 10, 65, 10, 78, 10, 32, 10,
186
+ 72, 10, 65, 10, 90, 10, 73, 10,
187
+ 83, 10, 72, 10, 85, 10, 78, 10,
188
+ 58, 10, 72, 10, 32, 10, 72, 10,
189
+ 65, 10, 73, 10, 10, 10, 32, 35,
190
+ 37, 42, 64, 65, 66, 68, 73, 77,
191
+ 79, 87, 9, 13, 10, 95, 10, 70,
192
+ 10, 69, 10, 65, 10, 84, 10, 85,
193
+ 10, 82, 10, 69, 10, 95, 10, 69,
194
+ 10, 78, 10, 68, 10, 95, 10, 37,
195
+ 10, 32, 10, 78, 10, 52, 85, 10,
196
+ 58, 10, 84, 10, 69, 10, 32, 10,
197
+ 67, 10, 65, 10, 78, 10, 32, 10,
198
+ 72, 10, 65, 10, 90, 10, 73, 10,
199
+ 83, 10, 72, 10, 85, 10, 78, 10,
200
+ 32, 58, 10, 83, 10, 82, 10, 83,
201
+ 10, 76, 10, 89, 10, 72, 10, 32,
202
+ 10, 72, 10, 65, 10, 73, 72, 32,
203
+ 72, 65, 73, 58, 10, 10, 10, 32,
204
+ 35, 37, 64, 66, 69, 77, 79, 9,
205
+ 13, 10, 95, 10, 70, 10, 69, 10,
206
+ 65, 10, 84, 10, 85, 10, 82, 10,
207
+ 69, 10, 95, 10, 69, 10, 78, 10,
208
+ 68, 10, 95, 10, 37, 10, 52, 10,
209
+ 58, 10, 88, 10, 65, 10, 77, 10,
210
+ 80, 10, 76, 10, 90, 10, 73, 10,
211
+ 83, 10, 72, 10, 85, 10, 78, 10,
212
+ 32, 58, 10, 83, 10, 82, 10, 83,
213
+ 10, 76, 10, 89, 10, 72, 10, 32,
214
+ 10, 72, 10, 65, 10, 73, 32, 124,
215
+ 9, 13, 10, 32, 92, 124, 9, 13,
216
+ 10, 92, 124, 10, 92, 10, 32, 92,
217
+ 124, 9, 13, 10, 32, 34, 35, 37,
218
+ 42, 64, 65, 66, 68, 69, 73, 77,
219
+ 79, 87, 124, 9, 13, 10, 78, 10,
220
+ 85, 10, 84, 10, 69, 10, 32, 10,
221
+ 67, 10, 65, 10, 78, 10, 32, 10,
222
+ 72, 10, 65, 10, 90, 10, 73, 10,
223
+ 83, 10, 72, 10, 85, 10, 78, 10,
224
+ 32, 58, 10, 83, 10, 82, 10, 83,
225
+ 10, 76, 10, 89, 10, 58, 10, 72,
226
+ 10, 32, 10, 72, 10, 65, 10, 73,
227
+ 84, 0
228
+ };
229
+
230
+ static const char _lexer_single_lengths[] = {
231
+ 0, 17, 1, 1, 16, 1, 1, 2,
232
+ 2, 3, 3, 3, 3, 2, 2, 2,
233
+ 1, 1, 1, 1, 1, 1, 1, 1,
234
+ 1, 1, 1, 1, 1, 1, 1, 1,
235
+ 1, 2, 3, 5, 3, 1, 2, 1,
236
+ 1, 1, 13, 2, 2, 2, 2, 2,
237
+ 2, 2, 2, 2, 2, 2, 2, 2,
238
+ 2, 2, 16, 1, 1, 1, 1, 1,
239
+ 1, 1, 1, 1, 1, 5, 2, 2,
240
+ 2, 2, 2, 2, 1, 1, 1, 1,
241
+ 1, 1, 1, 1, 1, 1, 1, 1,
242
+ 1, 2, 1, 1, 1, 1, 1, 1,
243
+ 1, 1, 13, 2, 2, 2, 2, 2,
244
+ 2, 2, 2, 2, 2, 2, 2, 2,
245
+ 2, 2, 2, 2, 2, 2, 2, 2,
246
+ 2, 2, 2, 2, 2, 2, 2, 2,
247
+ 2, 2, 2, 2, 2, 2, 2, 2,
248
+ 2, 1, 1, 13, 2, 2, 2, 2,
249
+ 2, 2, 2, 2, 2, 2, 2, 2,
250
+ 2, 2, 2, 2, 3, 2, 2, 2,
251
+ 2, 2, 2, 2, 2, 2, 2, 2,
252
+ 2, 2, 2, 2, 2, 3, 2, 2,
253
+ 2, 2, 2, 2, 2, 2, 2, 2,
254
+ 1, 1, 1, 1, 1, 1, 1, 1,
255
+ 9, 2, 2, 2, 2, 2, 2, 2,
256
+ 2, 2, 2, 2, 2, 2, 2, 2,
257
+ 2, 2, 2, 2, 2, 2, 2, 2,
258
+ 2, 2, 2, 2, 3, 2, 2, 2,
259
+ 2, 2, 2, 2, 2, 2, 2, 2,
260
+ 4, 3, 2, 4, 16, 2, 2, 2,
261
+ 2, 2, 2, 2, 2, 2, 2, 2,
262
+ 2, 2, 2, 2, 2, 2, 3, 2,
263
+ 2, 2, 2, 2, 2, 2, 2, 2,
264
+ 2, 2, 1, 0
265
+ };
266
+
267
+ static const char _lexer_range_lengths[] = {
268
+ 0, 1, 0, 0, 1, 0, 0, 0,
269
+ 0, 1, 1, 1, 1, 1, 1, 0,
270
+ 0, 0, 0, 0, 0, 0, 0, 0,
271
+ 0, 0, 0, 0, 0, 0, 0, 0,
272
+ 0, 0, 1, 1, 1, 0, 0, 0,
273
+ 0, 0, 1, 0, 0, 0, 0, 0,
274
+ 0, 0, 0, 0, 0, 0, 0, 0,
275
+ 0, 0, 1, 0, 0, 0, 0, 0,
276
+ 0, 0, 0, 0, 0, 1, 0, 0,
277
+ 0, 0, 0, 0, 0, 0, 0, 0,
278
+ 0, 0, 0, 0, 0, 0, 0, 0,
279
+ 0, 0, 0, 0, 0, 0, 0, 0,
280
+ 0, 0, 1, 0, 0, 0, 0, 0,
281
+ 0, 0, 0, 0, 0, 0, 0, 0,
282
+ 0, 0, 0, 0, 0, 0, 0, 0,
283
+ 0, 0, 0, 0, 0, 0, 0, 0,
284
+ 0, 0, 0, 0, 0, 0, 0, 0,
285
+ 0, 0, 0, 1, 0, 0, 0, 0,
286
+ 0, 0, 0, 0, 0, 0, 0, 0,
287
+ 0, 0, 0, 0, 0, 0, 0, 0,
288
+ 0, 0, 0, 0, 0, 0, 0, 0,
289
+ 0, 0, 0, 0, 0, 0, 0, 0,
290
+ 0, 0, 0, 0, 0, 0, 0, 0,
291
+ 0, 0, 0, 0, 0, 0, 0, 0,
292
+ 1, 0, 0, 0, 0, 0, 0, 0,
293
+ 0, 0, 0, 0, 0, 0, 0, 0,
294
+ 0, 0, 0, 0, 0, 0, 0, 0,
295
+ 0, 0, 0, 0, 0, 0, 0, 0,
296
+ 0, 0, 0, 0, 0, 0, 0, 1,
297
+ 1, 0, 0, 1, 1, 0, 0, 0,
298
+ 0, 0, 0, 0, 0, 0, 0, 0,
299
+ 0, 0, 0, 0, 0, 0, 0, 0,
300
+ 0, 0, 0, 0, 0, 0, 0, 0,
301
+ 0, 0, 0, 0
302
+ };
303
+
304
+ static const short _lexer_index_offsets[] = {
305
+ 0, 0, 19, 21, 23, 41, 43, 45,
306
+ 48, 51, 56, 61, 66, 71, 75, 79,
307
+ 82, 84, 86, 88, 90, 92, 94, 96,
308
+ 98, 100, 102, 104, 106, 108, 110, 112,
309
+ 114, 116, 119, 124, 131, 136, 138, 141,
310
+ 143, 145, 147, 162, 165, 168, 171, 174,
311
+ 177, 180, 183, 186, 189, 192, 195, 198,
312
+ 201, 204, 207, 225, 227, 229, 231, 233,
313
+ 235, 237, 239, 241, 243, 245, 252, 255,
314
+ 258, 261, 264, 267, 270, 272, 274, 276,
315
+ 278, 280, 282, 284, 286, 288, 290, 292,
316
+ 294, 296, 299, 301, 303, 305, 307, 309,
317
+ 311, 313, 315, 330, 333, 336, 339, 342,
318
+ 345, 348, 351, 354, 357, 360, 363, 366,
319
+ 369, 372, 375, 378, 381, 384, 387, 390,
320
+ 393, 396, 399, 402, 405, 408, 411, 414,
321
+ 417, 420, 423, 426, 429, 432, 435, 438,
322
+ 441, 444, 446, 448, 463, 466, 469, 472,
323
+ 475, 478, 481, 484, 487, 490, 493, 496,
324
+ 499, 502, 505, 508, 511, 515, 518, 521,
325
+ 524, 527, 530, 533, 536, 539, 542, 545,
326
+ 548, 551, 554, 557, 560, 563, 567, 570,
327
+ 573, 576, 579, 582, 585, 588, 591, 594,
328
+ 597, 599, 601, 603, 605, 607, 609, 611,
329
+ 613, 624, 627, 630, 633, 636, 639, 642,
330
+ 645, 648, 651, 654, 657, 660, 663, 666,
331
+ 669, 672, 675, 678, 681, 684, 687, 690,
332
+ 693, 696, 699, 702, 705, 709, 712, 715,
333
+ 718, 721, 724, 727, 730, 733, 736, 739,
334
+ 743, 749, 753, 756, 762, 780, 783, 786,
335
+ 789, 792, 795, 798, 801, 804, 807, 810,
336
+ 813, 816, 819, 822, 825, 828, 831, 835,
337
+ 838, 841, 844, 847, 850, 853, 856, 859,
338
+ 862, 865, 868, 870
339
+ };
340
+
341
+ static const short _lexer_trans_targs[] = {
342
+ 2, 4, 4, 5, 15, 17, 31, 34,
343
+ 37, 38, 59, 60, 76, 84, 184, 59,
344
+ 231, 4, 0, 3, 0, 4, 0, 4,
345
+ 4, 5, 15, 17, 31, 34, 37, 38,
346
+ 59, 60, 76, 84, 184, 59, 231, 4,
347
+ 0, 6, 0, 7, 0, 9, 8, 8,
348
+ 9, 8, 8, 10, 10, 11, 10, 10,
349
+ 10, 10, 11, 10, 10, 10, 10, 12,
350
+ 10, 10, 10, 10, 13, 10, 10, 4,
351
+ 14, 14, 0, 4, 14, 14, 0, 4,
352
+ 16, 15, 4, 0, 18, 0, 19, 0,
353
+ 20, 0, 21, 0, 22, 0, 23, 0,
354
+ 24, 0, 25, 0, 26, 0, 27, 0,
355
+ 28, 0, 29, 0, 30, 0, 267, 0,
356
+ 32, 0, 0, 33, 4, 16, 33, 0,
357
+ 0, 0, 0, 35, 36, 4, 36, 36,
358
+ 34, 35, 35, 4, 36, 34, 36, 0,
359
+ 31, 0, 39, 266, 0, 40, 0, 42,
360
+ 41, 42, 41, 42, 42, 4, 43, 57,
361
+ 4, 237, 238, 240, 241, 249, 261, 240,
362
+ 42, 41, 42, 44, 41, 42, 45, 41,
363
+ 42, 46, 41, 42, 47, 41, 42, 48,
364
+ 41, 42, 49, 41, 42, 50, 41, 42,
365
+ 51, 41, 42, 52, 41, 42, 53, 41,
366
+ 42, 54, 41, 42, 55, 41, 42, 56,
367
+ 41, 42, 4, 41, 42, 58, 41, 4,
368
+ 4, 5, 15, 17, 31, 34, 37, 38,
369
+ 59, 60, 76, 84, 184, 59, 231, 4,
370
+ 0, 37, 0, 61, 0, 62, 0, 63,
371
+ 0, 64, 0, 65, 0, 66, 0, 67,
372
+ 0, 69, 68, 69, 68, 69, 69, 4,
373
+ 70, 4, 69, 68, 69, 71, 68, 69,
374
+ 72, 68, 69, 73, 68, 69, 74, 68,
375
+ 69, 75, 68, 69, 58, 68, 77, 0,
376
+ 78, 0, 79, 0, 80, 0, 81, 0,
377
+ 82, 0, 83, 0, 31, 0, 85, 0,
378
+ 86, 0, 87, 0, 88, 0, 89, 0,
379
+ 90, 137, 0, 91, 0, 92, 0, 93,
380
+ 0, 94, 0, 95, 0, 96, 0, 98,
381
+ 97, 98, 97, 98, 98, 4, 99, 113,
382
+ 4, 114, 115, 117, 118, 126, 132, 117,
383
+ 98, 97, 98, 100, 97, 98, 101, 97,
384
+ 98, 102, 97, 98, 103, 97, 98, 104,
385
+ 97, 98, 105, 97, 98, 106, 97, 98,
386
+ 107, 97, 98, 108, 97, 98, 109, 97,
387
+ 98, 110, 97, 98, 111, 97, 98, 112,
388
+ 97, 98, 4, 97, 98, 58, 97, 98,
389
+ 113, 97, 98, 116, 97, 98, 113, 97,
390
+ 98, 114, 97, 98, 119, 97, 98, 120,
391
+ 97, 98, 121, 97, 98, 122, 97, 98,
392
+ 123, 97, 98, 124, 97, 98, 125, 97,
393
+ 98, 113, 97, 98, 127, 97, 98, 128,
394
+ 97, 98, 129, 97, 98, 130, 97, 98,
395
+ 131, 97, 98, 58, 97, 98, 133, 97,
396
+ 98, 134, 97, 98, 135, 97, 98, 136,
397
+ 97, 98, 131, 97, 139, 138, 139, 138,
398
+ 139, 139, 4, 140, 154, 4, 155, 156,
399
+ 159, 160, 168, 179, 159, 139, 138, 139,
400
+ 141, 138, 139, 142, 138, 139, 143, 138,
401
+ 139, 144, 138, 139, 145, 138, 139, 146,
402
+ 138, 139, 147, 138, 139, 148, 138, 139,
403
+ 149, 138, 139, 150, 138, 139, 151, 138,
404
+ 139, 152, 138, 139, 153, 138, 139, 4,
405
+ 138, 139, 58, 138, 139, 154, 138, 139,
406
+ 157, 158, 138, 139, 58, 138, 139, 154,
407
+ 138, 139, 155, 138, 139, 161, 138, 139,
408
+ 162, 138, 139, 163, 138, 139, 164, 138,
409
+ 139, 165, 138, 139, 166, 138, 139, 167,
410
+ 138, 139, 154, 138, 139, 169, 138, 139,
411
+ 170, 138, 139, 171, 138, 139, 172, 138,
412
+ 139, 173, 138, 139, 174, 58, 138, 139,
413
+ 175, 138, 139, 176, 138, 139, 177, 138,
414
+ 139, 178, 138, 139, 157, 138, 139, 180,
415
+ 138, 139, 181, 138, 139, 182, 138, 139,
416
+ 183, 138, 139, 157, 138, 185, 0, 186,
417
+ 0, 187, 0, 188, 0, 189, 0, 190,
418
+ 0, 192, 191, 192, 191, 192, 192, 4,
419
+ 193, 4, 207, 209, 215, 226, 192, 191,
420
+ 192, 194, 191, 192, 195, 191, 192, 196,
421
+ 191, 192, 197, 191, 192, 198, 191, 192,
422
+ 199, 191, 192, 200, 191, 192, 201, 191,
423
+ 192, 202, 191, 192, 203, 191, 192, 204,
424
+ 191, 192, 205, 191, 192, 206, 191, 192,
425
+ 4, 191, 192, 208, 191, 192, 58, 191,
426
+ 192, 210, 191, 192, 211, 191, 192, 212,
427
+ 191, 192, 213, 191, 192, 214, 191, 192,
428
+ 208, 191, 192, 216, 191, 192, 217, 191,
429
+ 192, 218, 191, 192, 219, 191, 192, 220,
430
+ 191, 192, 221, 58, 191, 192, 222, 191,
431
+ 192, 223, 191, 192, 224, 191, 192, 225,
432
+ 191, 192, 208, 191, 192, 227, 191, 192,
433
+ 228, 191, 192, 229, 191, 192, 230, 191,
434
+ 192, 208, 191, 231, 232, 231, 0, 236,
435
+ 235, 234, 232, 235, 233, 0, 234, 232,
436
+ 233, 0, 234, 233, 236, 235, 234, 232,
437
+ 235, 233, 236, 236, 5, 15, 17, 31,
438
+ 34, 37, 38, 59, 60, 76, 84, 184,
439
+ 59, 231, 236, 0, 42, 57, 41, 42,
440
+ 239, 41, 42, 57, 41, 42, 237, 41,
441
+ 42, 242, 41, 42, 243, 41, 42, 244,
442
+ 41, 42, 245, 41, 42, 246, 41, 42,
443
+ 247, 41, 42, 248, 41, 42, 57, 41,
444
+ 42, 250, 41, 42, 251, 41, 42, 252,
445
+ 41, 42, 253, 41, 42, 254, 41, 42,
446
+ 255, 58, 41, 42, 256, 41, 42, 257,
447
+ 41, 42, 258, 41, 42, 259, 41, 42,
448
+ 260, 41, 42, 58, 41, 42, 262, 41,
449
+ 42, 263, 41, 42, 264, 41, 42, 265,
450
+ 41, 42, 260, 41, 31, 0, 0, 0
451
+ };
452
+
453
+ static const unsigned char _lexer_trans_actions[] = {
454
+ 0, 54, 0, 5, 1, 0, 29, 1,
455
+ 29, 29, 29, 29, 29, 29, 29, 29,
456
+ 35, 0, 43, 0, 43, 0, 43, 54,
457
+ 0, 5, 1, 0, 29, 1, 29, 29,
458
+ 29, 29, 29, 29, 29, 29, 35, 0,
459
+ 43, 0, 43, 0, 43, 135, 48, 9,
460
+ 106, 11, 0, 130, 45, 45, 45, 3,
461
+ 122, 33, 33, 33, 0, 122, 33, 33,
462
+ 33, 0, 122, 33, 0, 33, 0, 102,
463
+ 7, 7, 43, 54, 0, 0, 43, 114,
464
+ 25, 0, 54, 43, 0, 43, 0, 43,
465
+ 0, 43, 0, 43, 0, 43, 0, 43,
466
+ 0, 43, 0, 43, 0, 43, 0, 43,
467
+ 0, 43, 0, 43, 0, 43, 0, 43,
468
+ 0, 43, 43, 57, 110, 23, 0, 43,
469
+ 43, 43, 43, 0, 27, 118, 27, 27,
470
+ 51, 27, 0, 54, 0, 1, 0, 43,
471
+ 0, 43, 0, 0, 43, 0, 43, 140,
472
+ 57, 54, 0, 54, 0, 72, 33, 84,
473
+ 72, 84, 84, 84, 84, 84, 84, 84,
474
+ 0, 0, 54, 0, 0, 54, 0, 0,
475
+ 54, 0, 0, 54, 0, 0, 54, 0,
476
+ 0, 54, 0, 0, 54, 0, 0, 54,
477
+ 0, 0, 54, 0, 0, 54, 0, 0,
478
+ 54, 0, 0, 54, 0, 0, 54, 0,
479
+ 0, 54, 15, 0, 54, 15, 0, 126,
480
+ 31, 60, 57, 31, 63, 57, 63, 63,
481
+ 63, 63, 63, 63, 63, 63, 66, 31,
482
+ 43, 0, 43, 0, 43, 0, 43, 0,
483
+ 43, 0, 43, 0, 43, 0, 43, 0,
484
+ 43, 140, 57, 54, 0, 54, 0, 81,
485
+ 84, 81, 0, 0, 54, 0, 0, 54,
486
+ 0, 0, 54, 0, 0, 54, 0, 0,
487
+ 54, 0, 0, 54, 21, 0, 0, 43,
488
+ 0, 43, 0, 43, 0, 43, 0, 43,
489
+ 0, 43, 0, 43, 0, 43, 0, 43,
490
+ 0, 43, 0, 43, 0, 43, 0, 43,
491
+ 0, 0, 43, 0, 43, 0, 43, 0,
492
+ 43, 0, 43, 0, 43, 0, 43, 140,
493
+ 57, 54, 0, 54, 0, 78, 33, 84,
494
+ 78, 84, 84, 84, 84, 84, 84, 84,
495
+ 0, 0, 54, 0, 0, 54, 0, 0,
496
+ 54, 0, 0, 54, 0, 0, 54, 0,
497
+ 0, 54, 0, 0, 54, 0, 0, 54,
498
+ 0, 0, 54, 0, 0, 54, 0, 0,
499
+ 54, 0, 0, 54, 0, 0, 54, 0,
500
+ 0, 54, 19, 0, 54, 19, 0, 54,
501
+ 0, 0, 54, 0, 0, 54, 0, 0,
502
+ 54, 0, 0, 54, 0, 0, 54, 0,
503
+ 0, 54, 0, 0, 54, 0, 0, 54,
504
+ 0, 0, 54, 0, 0, 54, 0, 0,
505
+ 54, 0, 0, 54, 0, 0, 54, 0,
506
+ 0, 54, 0, 0, 54, 0, 0, 54,
507
+ 0, 0, 54, 19, 0, 54, 0, 0,
508
+ 54, 0, 0, 54, 0, 0, 54, 0,
509
+ 0, 54, 0, 0, 140, 57, 54, 0,
510
+ 54, 0, 75, 33, 84, 75, 84, 84,
511
+ 84, 84, 84, 84, 84, 0, 0, 54,
512
+ 0, 0, 54, 0, 0, 54, 0, 0,
513
+ 54, 0, 0, 54, 0, 0, 54, 0,
514
+ 0, 54, 0, 0, 54, 0, 0, 54,
515
+ 0, 0, 54, 0, 0, 54, 0, 0,
516
+ 54, 0, 0, 54, 0, 0, 54, 17,
517
+ 0, 54, 17, 0, 54, 0, 0, 54,
518
+ 0, 0, 0, 54, 17, 0, 54, 0,
519
+ 0, 54, 0, 0, 54, 0, 0, 54,
520
+ 0, 0, 54, 0, 0, 54, 0, 0,
521
+ 54, 0, 0, 54, 0, 0, 54, 0,
522
+ 0, 54, 0, 0, 54, 0, 0, 54,
523
+ 0, 0, 54, 0, 0, 54, 0, 0,
524
+ 54, 0, 0, 54, 0, 17, 0, 54,
525
+ 0, 0, 54, 0, 0, 54, 0, 0,
526
+ 54, 0, 0, 54, 0, 0, 54, 0,
527
+ 0, 54, 0, 0, 54, 0, 0, 54,
528
+ 0, 0, 54, 0, 0, 0, 43, 0,
529
+ 43, 0, 43, 0, 43, 0, 43, 0,
530
+ 43, 140, 57, 54, 0, 54, 0, 69,
531
+ 33, 69, 84, 84, 84, 84, 0, 0,
532
+ 54, 0, 0, 54, 0, 0, 54, 0,
533
+ 0, 54, 0, 0, 54, 0, 0, 54,
534
+ 0, 0, 54, 0, 0, 54, 0, 0,
535
+ 54, 0, 0, 54, 0, 0, 54, 0,
536
+ 0, 54, 0, 0, 54, 0, 0, 54,
537
+ 13, 0, 54, 0, 0, 54, 13, 0,
538
+ 54, 0, 0, 54, 0, 0, 54, 0,
539
+ 0, 54, 0, 0, 54, 0, 0, 54,
540
+ 0, 0, 54, 0, 0, 54, 0, 0,
541
+ 54, 0, 0, 54, 0, 0, 54, 0,
542
+ 0, 54, 0, 13, 0, 54, 0, 0,
543
+ 54, 0, 0, 54, 0, 0, 54, 0,
544
+ 0, 54, 0, 0, 54, 0, 0, 54,
545
+ 0, 0, 54, 0, 0, 54, 0, 0,
546
+ 54, 0, 0, 0, 0, 0, 43, 54,
547
+ 37, 37, 87, 37, 37, 43, 0, 39,
548
+ 0, 43, 0, 0, 54, 0, 0, 39,
549
+ 0, 0, 54, 0, 93, 90, 41, 96,
550
+ 90, 96, 96, 96, 96, 96, 96, 96,
551
+ 96, 99, 0, 43, 54, 0, 0, 54,
552
+ 0, 0, 54, 0, 0, 54, 0, 0,
553
+ 54, 0, 0, 54, 0, 0, 54, 0,
554
+ 0, 54, 0, 0, 54, 0, 0, 54,
555
+ 0, 0, 54, 0, 0, 54, 0, 0,
556
+ 54, 0, 0, 54, 0, 0, 54, 0,
557
+ 0, 54, 0, 0, 54, 0, 0, 54,
558
+ 0, 15, 0, 54, 0, 0, 54, 0,
559
+ 0, 54, 0, 0, 54, 0, 0, 54,
560
+ 0, 0, 54, 15, 0, 54, 0, 0,
561
+ 54, 0, 0, 54, 0, 0, 54, 0,
562
+ 0, 54, 0, 0, 0, 43, 0, 0
563
+ };
564
+
565
+ static const unsigned char _lexer_eof_actions[] = {
566
+ 0, 43, 43, 43, 43, 43, 43, 43,
567
+ 43, 43, 43, 43, 43, 43, 43, 43,
568
+ 43, 43, 43, 43, 43, 43, 43, 43,
569
+ 43, 43, 43, 43, 43, 43, 43, 43,
570
+ 43, 43, 43, 43, 43, 43, 43, 43,
571
+ 43, 43, 43, 43, 43, 43, 43, 43,
572
+ 43, 43, 43, 43, 43, 43, 43, 43,
573
+ 43, 43, 43, 43, 43, 43, 43, 43,
574
+ 43, 43, 43, 43, 43, 43, 43, 43,
575
+ 43, 43, 43, 43, 43, 43, 43, 43,
576
+ 43, 43, 43, 43, 43, 43, 43, 43,
577
+ 43, 43, 43, 43, 43, 43, 43, 43,
578
+ 43, 43, 43, 43, 43, 43, 43, 43,
579
+ 43, 43, 43, 43, 43, 43, 43, 43,
580
+ 43, 43, 43, 43, 43, 43, 43, 43,
581
+ 43, 43, 43, 43, 43, 43, 43, 43,
582
+ 43, 43, 43, 43, 43, 43, 43, 43,
583
+ 43, 43, 43, 43, 43, 43, 43, 43,
584
+ 43, 43, 43, 43, 43, 43, 43, 43,
585
+ 43, 43, 43, 43, 43, 43, 43, 43,
586
+ 43, 43, 43, 43, 43, 43, 43, 43,
587
+ 43, 43, 43, 43, 43, 43, 43, 43,
588
+ 43, 43, 43, 43, 43, 43, 43, 43,
589
+ 43, 43, 43, 43, 43, 43, 43, 43,
590
+ 43, 43, 43, 43, 43, 43, 43, 43,
591
+ 43, 43, 43, 43, 43, 43, 43, 43,
592
+ 43, 43, 43, 43, 43, 43, 43, 43,
593
+ 43, 43, 43, 43, 43, 43, 43, 43,
594
+ 43, 43, 43, 43, 43, 43, 43, 43,
595
+ 43, 43, 43, 43, 43, 43, 43, 43,
596
+ 43, 43, 43, 43, 43, 43, 43, 43,
597
+ 43, 43, 43, 43, 43, 43, 43, 43,
598
+ 43, 43, 43, 43, 43, 43, 43, 43,
599
+ 43, 43, 43, 43
600
+ };
601
+
602
+ static const int lexer_start = 1;
603
+ static const int lexer_first_final = 267;
604
+ static const int lexer_error = 0;
605
+
606
+ static const int lexer_en_main = 1;
607
+
608
+
609
+ #line 258 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
610
+
611
+ static VALUE
612
+ unindent(VALUE con, int start_col)
613
+ {
614
+ VALUE re;
615
+ // Gherkin will crash gracefully if the string representation of start_col pushes the pattern past 32 characters
616
+ char pat[32];
617
+ snprintf(pat, 32, "^[\t ]{0,%d}", start_col);
618
+ re = rb_reg_regcomp(rb_str_new2(pat));
619
+ rb_funcall(con, rb_intern("gsub!"), 2, re, rb_str_new2(""));
620
+
621
+ return Qnil;
622
+
623
+ }
624
+
625
+ static void
626
+ store_kw_con(VALUE listener, const char * event_name,
627
+ const char * keyword_at, size_t keyword_length,
628
+ const char * at, size_t length,
629
+ int current_line)
630
+ {
631
+ VALUE con = Qnil, kw = Qnil;
632
+ kw = ENCODED_STR_NEW(keyword_at, keyword_length);
633
+ con = ENCODED_STR_NEW(at, length);
634
+ rb_funcall(con, rb_intern("strip!"), 0);
635
+ rb_funcall(listener, rb_intern(event_name), 3, kw, con, INT2FIX(current_line));
636
+ }
637
+
638
+ static void
639
+ store_multiline_kw_con(VALUE listener, const char * event_name,
640
+ const char * keyword_at, size_t keyword_length,
641
+ const char * at, size_t length,
642
+ int current_line, int start_col)
643
+ {
644
+ VALUE split;
645
+ VALUE con = Qnil, kw = Qnil, name = Qnil, desc = Qnil;
646
+
647
+ kw = ENCODED_STR_NEW(keyword_at, keyword_length);
648
+ con = ENCODED_STR_NEW(at, length);
649
+
650
+ unindent(con, start_col);
651
+
652
+ split = rb_str_split(con, "\n");
653
+
654
+ name = rb_funcall(split, rb_intern("shift"), 0);
655
+ desc = rb_ary_join(split, rb_str_new2( "\n" ));
656
+
657
+ if( name == Qnil )
658
+ {
659
+ name = rb_str_new2("");
660
+ }
661
+ if( rb_funcall(desc, rb_intern("size"), 0) == 0)
662
+ {
663
+ desc = rb_str_new2("");
664
+ }
665
+ rb_funcall(name, rb_intern("strip!"), 0);
666
+ rb_funcall(desc, rb_intern("rstrip!"), 0);
667
+ rb_funcall(listener, rb_intern(event_name), 4, kw, name, desc, INT2FIX(current_line));
668
+ }
669
+
670
+ static void
671
+ store_attr(VALUE listener, const char * attr_type,
672
+ const char * at, size_t length,
673
+ int line)
674
+ {
675
+ VALUE val = ENCODED_STR_NEW(at, length);
676
+ rb_funcall(listener, rb_intern(attr_type), 2, val, INT2FIX(line));
677
+ }
678
+ static void
679
+ store_docstring_content(VALUE listener,
680
+ int start_col,
681
+ const char *type_at, size_t type_length,
682
+ const char *at, size_t length,
683
+ int current_line)
684
+ {
685
+ VALUE re2;
686
+ VALUE unescape_escaped_quotes;
687
+ VALUE con = ENCODED_STR_NEW(at, length);
688
+ VALUE con_type = ENCODED_STR_NEW(type_at, type_length);
689
+
690
+ unindent(con, start_col);
691
+
692
+ re2 = rb_reg_regcomp(rb_str_new2("\r\\Z"));
693
+ unescape_escaped_quotes = rb_reg_regcomp(rb_str_new2("\\\\\"\\\\\"\\\\\""));
694
+ rb_funcall(con, rb_intern("sub!"), 2, re2, rb_str_new2(""));
695
+ rb_funcall(con_type, rb_intern("strip!"), 0);
696
+ rb_funcall(con, rb_intern("gsub!"), 2, unescape_escaped_quotes, rb_str_new2("\"\"\""));
697
+ rb_funcall(listener, rb_intern("doc_string"), 3, con_type, con, INT2FIX(current_line));
698
+ }
699
+ static void
700
+ raise_lexer_error(const char * at, int line)
701
+ {
702
+ rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.", line, at);
703
+ }
704
+
705
+ static void lexer_init(lexer_state *lexer) {
706
+ lexer->content_start = 0;
707
+ lexer->content_end = 0;
708
+ lexer->content_len = 0;
709
+ lexer->docstring_content_type_start = 0;
710
+ lexer->docstring_content_type_end = 0;
711
+ lexer->mark = 0;
712
+ lexer->keyword_start = 0;
713
+ lexer->keyword_end = 0;
714
+ lexer->next_keyword_start = 0;
715
+ lexer->line_number = 1;
716
+ lexer->last_newline = 0;
717
+ lexer->final_newline = 0;
718
+ lexer->start_col = 0;
719
+ }
720
+
721
+ static VALUE CLexer_alloc(VALUE klass)
722
+ {
723
+ VALUE obj;
724
+ lexer_state *lxr = ALLOC(lexer_state);
725
+ lexer_init(lxr);
726
+
727
+ obj = Data_Wrap_Struct(klass, NULL, -1, lxr);
728
+
729
+ return obj;
730
+ }
731
+
732
+ static VALUE CLexer_init(VALUE self, VALUE listener)
733
+ {
734
+ lexer_state *lxr;
735
+ rb_iv_set(self, "@listener", listener);
736
+
737
+ lxr = NULL;
738
+ DATA_GET(self, lexer_state, lxr);
739
+ lexer_init(lxr);
740
+
741
+ return self;
742
+ }
743
+
744
+ static VALUE CLexer_scan(VALUE self, VALUE input)
745
+ {
746
+ VALUE input_copy;
747
+ char *data;
748
+ size_t len;
749
+ VALUE listener = rb_iv_get(self, "@listener");
750
+
751
+ lexer_state *lexer;
752
+ lexer = NULL;
753
+ DATA_GET(self, lexer_state, lexer);
754
+
755
+ input_copy = rb_str_dup(input);
756
+
757
+ rb_str_append(input_copy, rb_str_new2("\n%_FEATURE_END_%"));
758
+ data = RSTRING_PTR(input_copy);
759
+ len = RSTRING_LEN(input_copy);
760
+
761
+ if (len == 0) {
762
+ rb_raise(rb_eGherkinLexingError, "No content to lex.");
763
+ } else {
764
+
765
+ const char *p, *pe, *eof;
766
+ int cs = 0;
767
+
768
+ VALUE current_row = Qnil;
769
+
770
+ p = data;
771
+ pe = data + len;
772
+ eof = pe;
773
+
774
+ assert(*pe == '\0' && "pointer does not end on NULL");
775
+
776
+
777
+ #line 778 "ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c"
778
+ {
779
+ cs = lexer_start;
780
+ }
781
+
782
+ #line 425 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
783
+
784
+ #line 785 "ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c"
785
+ {
786
+ int _klen;
787
+ unsigned int _trans;
788
+ const char *_acts;
789
+ unsigned int _nacts;
790
+ const char *_keys;
791
+
792
+ if ( p == pe )
793
+ goto _test_eof;
794
+ if ( cs == 0 )
795
+ goto _out;
796
+ _resume:
797
+ _keys = _lexer_trans_keys + _lexer_key_offsets[cs];
798
+ _trans = _lexer_index_offsets[cs];
799
+
800
+ _klen = _lexer_single_lengths[cs];
801
+ if ( _klen > 0 ) {
802
+ const char *_lower = _keys;
803
+ const char *_mid;
804
+ const char *_upper = _keys + _klen - 1;
805
+ while (1) {
806
+ if ( _upper < _lower )
807
+ break;
808
+
809
+ _mid = _lower + ((_upper-_lower) >> 1);
810
+ if ( (*p) < *_mid )
811
+ _upper = _mid - 1;
812
+ else if ( (*p) > *_mid )
813
+ _lower = _mid + 1;
814
+ else {
815
+ _trans += (_mid - _keys);
816
+ goto _match;
817
+ }
818
+ }
819
+ _keys += _klen;
820
+ _trans += _klen;
821
+ }
822
+
823
+ _klen = _lexer_range_lengths[cs];
824
+ if ( _klen > 0 ) {
825
+ const char *_lower = _keys;
826
+ const char *_mid;
827
+ const char *_upper = _keys + (_klen<<1) - 2;
828
+ while (1) {
829
+ if ( _upper < _lower )
830
+ break;
831
+
832
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
833
+ if ( (*p) < _mid[0] )
834
+ _upper = _mid - 2;
835
+ else if ( (*p) > _mid[1] )
836
+ _lower = _mid + 2;
837
+ else {
838
+ _trans += ((_mid - _keys)>>1);
839
+ goto _match;
840
+ }
841
+ }
842
+ _trans += _klen;
843
+ }
844
+
845
+ _match:
846
+ cs = _lexer_trans_targs[_trans];
847
+
848
+ if ( _lexer_trans_actions[_trans] == 0 )
849
+ goto _again;
850
+
851
+ _acts = _lexer_actions + _lexer_trans_actions[_trans];
852
+ _nacts = (unsigned int) *_acts++;
853
+ while ( _nacts-- > 0 )
854
+ {
855
+ switch ( *_acts++ )
856
+ {
857
+ case 0:
858
+ #line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
859
+ {
860
+ MARK(content_start, p);
861
+ lexer->current_line = lexer->line_number;
862
+ lexer->start_col = lexer->content_start - lexer->last_newline - (lexer->keyword_end - lexer->keyword_start) + 2;
863
+ }
864
+ break;
865
+ case 1:
866
+ #line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
867
+ {
868
+ MARK(content_start, p);
869
+ }
870
+ break;
871
+ case 2:
872
+ #line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
873
+ {
874
+ lexer->current_line = lexer->line_number;
875
+ lexer->start_col = p - data - lexer->last_newline;
876
+ }
877
+ break;
878
+ case 3:
879
+ #line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
880
+ {
881
+ int len = LEN(content_start, PTR_TO(final_newline));
882
+ int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
883
+
884
+ if (len < 0) len = 0;
885
+ if (type_len < 0) len = 0;
886
+
887
+ store_docstring_content(listener, lexer->start_col, PTR_TO(docstring_content_type_start), type_len, PTR_TO(content_start), len, lexer->current_line);
888
+ }
889
+ break;
890
+ case 4:
891
+ #line 108 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
892
+ {
893
+ MARK(docstring_content_type_start, p);
894
+ }
895
+ break;
896
+ case 5:
897
+ #line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
898
+ {
899
+ MARK(docstring_content_type_end, p);
900
+ }
901
+ break;
902
+ case 6:
903
+ #line 116 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
904
+ {
905
+ STORE_KW_END_CON(feature);
906
+ }
907
+ break;
908
+ case 7:
909
+ #line 120 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
910
+ {
911
+ STORE_KW_END_CON(background);
912
+ }
913
+ break;
914
+ case 8:
915
+ #line 124 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
916
+ {
917
+ STORE_KW_END_CON(scenario);
918
+ }
919
+ break;
920
+ case 9:
921
+ #line 128 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
922
+ {
923
+ STORE_KW_END_CON(scenario_outline);
924
+ }
925
+ break;
926
+ case 10:
927
+ #line 132 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
928
+ {
929
+ STORE_KW_END_CON(examples);
930
+ }
931
+ break;
932
+ case 11:
933
+ #line 136 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
934
+ {
935
+ store_kw_con(listener, "step",
936
+ PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
937
+ PTR_TO(content_start), LEN(content_start, p),
938
+ lexer->current_line);
939
+ }
940
+ break;
941
+ case 12:
942
+ #line 143 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
943
+ {
944
+ STORE_ATTR(comment);
945
+ lexer->mark = 0;
946
+ }
947
+ break;
948
+ case 13:
949
+ #line 148 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
950
+ {
951
+ STORE_ATTR(tag);
952
+ lexer->mark = 0;
953
+ }
954
+ break;
955
+ case 14:
956
+ #line 153 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
957
+ {
958
+ lexer->line_number += 1;
959
+ MARK(final_newline, p);
960
+ }
961
+ break;
962
+ case 15:
963
+ #line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
964
+ {
965
+ MARK(last_newline, p + 1);
966
+ }
967
+ break;
968
+ case 16:
969
+ #line 162 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
970
+ {
971
+ if (lexer->mark == 0) {
972
+ MARK(mark, p);
973
+ }
974
+ }
975
+ break;
976
+ case 17:
977
+ #line 168 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
978
+ {
979
+ MARK(keyword_end, p);
980
+ MARK(keyword_start, PTR_TO(mark));
981
+ MARK(content_start, p + 1);
982
+ lexer->mark = 0;
983
+ }
984
+ break;
985
+ case 18:
986
+ #line 175 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
987
+ {
988
+ MARK(content_end, p);
989
+ }
990
+ break;
991
+ case 19:
992
+ #line 179 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
993
+ {
994
+ p = p - 1;
995
+ lexer->current_line = lexer->line_number;
996
+ current_row = rb_ary_new();
997
+ }
998
+ break;
999
+ case 20:
1000
+ #line 185 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
1001
+ {
1002
+ MARK(content_start, p);
1003
+ }
1004
+ break;
1005
+ case 21:
1006
+ #line 189 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
1007
+ {
1008
+ VALUE re_pipe, re_newline, re_backslash;
1009
+ VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
1010
+ rb_funcall(con, rb_intern("strip!"), 0);
1011
+ re_pipe = rb_reg_regcomp(rb_str_new2("\\\\\\|"));
1012
+ re_newline = rb_reg_regcomp(rb_str_new2("\\\\n"));
1013
+ re_backslash = rb_reg_regcomp(rb_str_new2("\\\\\\\\"));
1014
+ rb_funcall(con, rb_intern("gsub!"), 2, re_pipe, rb_str_new2("|"));
1015
+ rb_funcall(con, rb_intern("gsub!"), 2, re_newline, rb_str_new2("\n"));
1016
+ rb_funcall(con, rb_intern("gsub!"), 2, re_backslash, rb_str_new2("\\"));
1017
+
1018
+ rb_ary_push(current_row, con);
1019
+ }
1020
+ break;
1021
+ case 22:
1022
+ #line 203 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
1023
+ {
1024
+ rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
1025
+ }
1026
+ break;
1027
+ case 23:
1028
+ #line 207 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
1029
+ {
1030
+ int line;
1031
+ if (cs < lexer_first_final) {
1032
+ size_t count = 0;
1033
+ VALUE newstr_val;
1034
+ char *newstr;
1035
+ int newstr_count = 0;
1036
+ size_t len;
1037
+ const char *buff;
1038
+ if (lexer->last_newline != 0) {
1039
+ len = LEN(last_newline, eof);
1040
+ buff = PTR_TO(last_newline);
1041
+ } else {
1042
+ len = strlen(data);
1043
+ buff = data;
1044
+ }
1045
+
1046
+ // Allocate as a ruby string so that it gets cleaned up by GC
1047
+ newstr_val = rb_str_new(buff, len);
1048
+ newstr = RSTRING_PTR(newstr_val);
1049
+
1050
+
1051
+ for (count = 0; count < len; count++) {
1052
+ if(buff[count] == 10) {
1053
+ newstr[newstr_count] = '\0'; // terminate new string at first newline found
1054
+ break;
1055
+ } else {
1056
+ if (buff[count] == '%') {
1057
+ newstr[newstr_count++] = buff[count];
1058
+ newstr[newstr_count] = buff[count];
1059
+ } else {
1060
+ newstr[newstr_count] = buff[count];
1061
+ }
1062
+ }
1063
+ newstr_count++;
1064
+ }
1065
+
1066
+ line = lexer->line_number;
1067
+ lexer_init(lexer); // Re-initialize so we can scan again with the same lexer
1068
+ raise_lexer_error(newstr, line);
1069
+ } else {
1070
+ rb_funcall(listener, rb_intern("eof"), 0);
1071
+ }
1072
+ }
1073
+ break;
1074
+ #line 1075 "ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c"
1075
+ }
1076
+ }
1077
+
1078
+ _again:
1079
+ if ( cs == 0 )
1080
+ goto _out;
1081
+ if ( ++p != pe )
1082
+ goto _resume;
1083
+ _test_eof: {}
1084
+ if ( p == eof )
1085
+ {
1086
+ const char *__acts = _lexer_actions + _lexer_eof_actions[cs];
1087
+ unsigned int __nacts = (unsigned int) *__acts++;
1088
+ while ( __nacts-- > 0 ) {
1089
+ switch ( *__acts++ ) {
1090
+ case 23:
1091
+ #line 207 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
1092
+ {
1093
+ int line;
1094
+ if (cs < lexer_first_final) {
1095
+ size_t count = 0;
1096
+ VALUE newstr_val;
1097
+ char *newstr;
1098
+ int newstr_count = 0;
1099
+ size_t len;
1100
+ const char *buff;
1101
+ if (lexer->last_newline != 0) {
1102
+ len = LEN(last_newline, eof);
1103
+ buff = PTR_TO(last_newline);
1104
+ } else {
1105
+ len = strlen(data);
1106
+ buff = data;
1107
+ }
1108
+
1109
+ // Allocate as a ruby string so that it gets cleaned up by GC
1110
+ newstr_val = rb_str_new(buff, len);
1111
+ newstr = RSTRING_PTR(newstr_val);
1112
+
1113
+
1114
+ for (count = 0; count < len; count++) {
1115
+ if(buff[count] == 10) {
1116
+ newstr[newstr_count] = '\0'; // terminate new string at first newline found
1117
+ break;
1118
+ } else {
1119
+ if (buff[count] == '%') {
1120
+ newstr[newstr_count++] = buff[count];
1121
+ newstr[newstr_count] = buff[count];
1122
+ } else {
1123
+ newstr[newstr_count] = buff[count];
1124
+ }
1125
+ }
1126
+ newstr_count++;
1127
+ }
1128
+
1129
+ line = lexer->line_number;
1130
+ lexer_init(lexer); // Re-initialize so we can scan again with the same lexer
1131
+ raise_lexer_error(newstr, line);
1132
+ } else {
1133
+ rb_funcall(listener, rb_intern("eof"), 0);
1134
+ }
1135
+ }
1136
+ break;
1137
+ #line 1138 "ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c"
1138
+ }
1139
+ }
1140
+ }
1141
+
1142
+ _out: {}
1143
+ }
1144
+
1145
+ #line 426 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.c.rl"
1146
+
1147
+ assert(p <= pe && "data overflow after parsing execute");
1148
+ assert(lexer->content_start <= len && "content starts after data end");
1149
+ assert(lexer->mark < len && "mark is after data end");
1150
+
1151
+ // Reset lexer by re-initializing the whole thing
1152
+ lexer_init(lexer);
1153
+
1154
+ if (cs == lexer_error) {
1155
+ rb_raise(rb_eGherkinLexingError, "Invalid format, lexing fails.");
1156
+ } else {
1157
+ return Qtrue;
1158
+ }
1159
+ }
1160
+ }
1161
+
1162
+ void Init_gherkin_lexer_en_lol()
1163
+ {
1164
+ mGherkin = rb_define_module("Gherkin");
1165
+ mGherkinLexer = rb_define_module_under(mGherkin, "Lexer");
1166
+ rb_eGherkinLexingError = rb_const_get(mGherkinLexer, rb_intern("LexingError"));
1167
+
1168
+ mCLexer = rb_define_module_under(mGherkin, "CLexer");
1169
+ cI18nLexer = rb_define_class_under(mCLexer, "En_lol", rb_cObject);
1170
+ rb_define_alloc_func(cI18nLexer, CLexer_alloc);
1171
+ rb_define_method(cI18nLexer, "initialize", CLexer_init, 1);
1172
+ rb_define_method(cI18nLexer, "scan", CLexer_scan, 1);
1173
+ }
1174
+