benhamill-gherkin 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/.gitattributes +2 -0
  2. data/.gitignore +11 -0
  3. data/.mailmap +2 -0
  4. data/.rspec +1 -0
  5. data/.rvmrc +1 -0
  6. data/Gemfile +7 -0
  7. data/History.txt +363 -0
  8. data/LICENSE +20 -0
  9. data/README.rdoc +149 -0
  10. data/Rakefile +19 -0
  11. data/VERSION +1 -0
  12. data/build_native_gems.sh +8 -0
  13. data/cucumber.yml +3 -0
  14. data/features/escaped_pipes.feature +8 -0
  15. data/features/feature_parser.feature +237 -0
  16. data/features/json_formatter.feature +377 -0
  17. data/features/json_parser.feature +318 -0
  18. data/features/native_lexer.feature +19 -0
  19. data/features/parser_with_native_lexer.feature +205 -0
  20. data/features/pretty_formatter.feature +15 -0
  21. data/features/step_definitions/eyeball_steps.rb +3 -0
  22. data/features/step_definitions/gherkin_steps.rb +29 -0
  23. data/features/step_definitions/json_formatter_steps.rb +28 -0
  24. data/features/step_definitions/json_parser_steps.rb +20 -0
  25. data/features/step_definitions/pretty_formatter_steps.rb +84 -0
  26. data/features/steps_parser.feature +46 -0
  27. data/features/support/env.rb +38 -0
  28. data/gherkin.gemspec +61 -0
  29. data/ikvm/.gitignore +3 -0
  30. data/java/.gitignore +5 -0
  31. data/java/src/main/java/gherkin/lexer/i18n/.gitignore +1 -0
  32. data/java/src/main/resources/gherkin/.gitignore +1 -0
  33. data/js/lib/gherkin/lexer/i18n/ar.js +1094 -0
  34. data/js/lib/gherkin/lexer/i18n/bg.js +1308 -0
  35. data/js/lib/gherkin/lexer/i18n/ca.js +1236 -0
  36. data/js/lib/gherkin/lexer/i18n/cs.js +1090 -0
  37. data/js/lib/gherkin/lexer/i18n/cy_gb.js +958 -0
  38. data/js/lib/gherkin/lexer/i18n/da.js +974 -0
  39. data/js/lib/gherkin/lexer/i18n/de.js +1082 -0
  40. data/js/lib/gherkin/lexer/i18n/en.js +965 -0
  41. data/js/lib/gherkin/lexer/i18n/en_au.js +902 -0
  42. data/js/lib/gherkin/lexer/i18n/en_lol.js +859 -0
  43. data/js/lib/gherkin/lexer/i18n/en_pirate.js +1136 -0
  44. data/js/lib/gherkin/lexer/i18n/en_scouse.js +1289 -0
  45. data/js/lib/gherkin/lexer/i18n/en_tx.js +942 -0
  46. data/js/lib/gherkin/lexer/i18n/eo.js +916 -0
  47. data/js/lib/gherkin/lexer/i18n/es.js +1049 -0
  48. data/js/lib/gherkin/lexer/i18n/et.js +915 -0
  49. data/js/lib/gherkin/lexer/i18n/fi.js +894 -0
  50. data/js/lib/gherkin/lexer/i18n/fr.js +1116 -0
  51. data/js/lib/gherkin/lexer/i18n/he.js +1044 -0
  52. data/js/lib/gherkin/lexer/i18n/hr.js +994 -0
  53. data/js/lib/gherkin/lexer/i18n/hu.js +1043 -0
  54. data/js/lib/gherkin/lexer/i18n/id.js +884 -0
  55. data/js/lib/gherkin/lexer/i18n/it.js +1007 -0
  56. data/js/lib/gherkin/lexer/i18n/ja.js +1344 -0
  57. data/js/lib/gherkin/lexer/i18n/ko.js +1028 -0
  58. data/js/lib/gherkin/lexer/i18n/lt.js +972 -0
  59. data/js/lib/gherkin/lexer/i18n/lu.js +1057 -0
  60. data/js/lib/gherkin/lexer/i18n/lv.js +1092 -0
  61. data/js/lib/gherkin/lexer/i18n/nl.js +1036 -0
  62. data/js/lib/gherkin/lexer/i18n/no.js +986 -0
  63. data/js/lib/gherkin/lexer/i18n/pl.js +1140 -0
  64. data/js/lib/gherkin/lexer/i18n/pt.js +1000 -0
  65. data/js/lib/gherkin/lexer/i18n/ro.js +1089 -0
  66. data/js/lib/gherkin/lexer/i18n/ru.js +1560 -0
  67. data/js/lib/gherkin/lexer/i18n/sk.js +972 -0
  68. data/js/lib/gherkin/lexer/i18n/sr_cyrl.js +1728 -0
  69. data/js/lib/gherkin/lexer/i18n/sr_latn.js +1220 -0
  70. data/js/lib/gherkin/lexer/i18n/sv.js +997 -0
  71. data/js/lib/gherkin/lexer/i18n/tr.js +1014 -0
  72. data/js/lib/gherkin/lexer/i18n/uk.js +1572 -0
  73. data/js/lib/gherkin/lexer/i18n/uz.js +1302 -0
  74. data/js/lib/gherkin/lexer/i18n/vi.js +1124 -0
  75. data/js/lib/gherkin/lexer/i18n/zh_cn.js +902 -0
  76. data/js/lib/gherkin/lexer/i18n/zh_tw.js +940 -0
  77. data/lib/.gitignore +4 -0
  78. data/lib/gherkin.rb +2 -0
  79. data/lib/gherkin/c_lexer.rb +17 -0
  80. data/lib/gherkin/formatter/ansi_escapes.rb +95 -0
  81. data/lib/gherkin/formatter/argument.rb +16 -0
  82. data/lib/gherkin/formatter/escaping.rb +15 -0
  83. data/lib/gherkin/formatter/filter_formatter.rb +136 -0
  84. data/lib/gherkin/formatter/hashable.rb +19 -0
  85. data/lib/gherkin/formatter/json_formatter.rb +102 -0
  86. data/lib/gherkin/formatter/line_filter.rb +26 -0
  87. data/lib/gherkin/formatter/model.rb +236 -0
  88. data/lib/gherkin/formatter/pretty_formatter.rb +243 -0
  89. data/lib/gherkin/formatter/regexp_filter.rb +21 -0
  90. data/lib/gherkin/formatter/step_printer.rb +17 -0
  91. data/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
  92. data/lib/gherkin/formatter/tag_filter.rb +19 -0
  93. data/lib/gherkin/i18n.rb +175 -0
  94. data/lib/gherkin/i18n.yml +588 -0
  95. data/lib/gherkin/json_parser.rb +137 -0
  96. data/lib/gherkin/lexer/i18n_lexer.rb +47 -0
  97. data/lib/gherkin/listener/event.rb +45 -0
  98. data/lib/gherkin/listener/formatter_listener.rb +113 -0
  99. data/lib/gherkin/native.rb +7 -0
  100. data/lib/gherkin/native/ikvm.rb +55 -0
  101. data/lib/gherkin/native/java.rb +55 -0
  102. data/lib/gherkin/native/null.rb +9 -0
  103. data/lib/gherkin/parser/meta.txt +5 -0
  104. data/lib/gherkin/parser/parser.rb +164 -0
  105. data/lib/gherkin/parser/root.txt +11 -0
  106. data/lib/gherkin/parser/steps.txt +4 -0
  107. data/lib/gherkin/rb_lexer.rb +8 -0
  108. data/lib/gherkin/rb_lexer/.gitignore +1 -0
  109. data/lib/gherkin/rb_lexer/README.rdoc +8 -0
  110. data/lib/gherkin/rubify.rb +24 -0
  111. data/lib/gherkin/tag_expression.rb +62 -0
  112. data/lib/gherkin/version.rb +3 -0
  113. data/ragel/i18n/.gitignore +1 -0
  114. data/ragel/lexer.c.rl.erb +439 -0
  115. data/ragel/lexer.java.rl.erb +208 -0
  116. data/ragel/lexer.rb.rl.erb +167 -0
  117. data/ragel/lexer_common.rl.erb +50 -0
  118. data/spec/gherkin/c_lexer_spec.rb +21 -0
  119. data/spec/gherkin/fixtures/1.feature +8 -0
  120. data/spec/gherkin/fixtures/comments_in_table.feature +9 -0
  121. data/spec/gherkin/fixtures/complex.feature +45 -0
  122. data/spec/gherkin/fixtures/complex.json +143 -0
  123. data/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
  124. data/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
  125. data/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
  126. data/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
  127. data/spec/gherkin/fixtures/i18n_fr.feature +14 -0
  128. data/spec/gherkin/fixtures/i18n_no.feature +7 -0
  129. data/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
  130. data/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
  131. data/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
  132. data/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
  133. data/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
  134. data/spec/gherkin/fixtures/with_bom.feature +3 -0
  135. data/spec/gherkin/formatter/ansi_escapes_spec.rb +19 -0
  136. data/spec/gherkin/formatter/filter_formatter_spec.rb +165 -0
  137. data/spec/gherkin/formatter/model_spec.rb +28 -0
  138. data/spec/gherkin/formatter/pretty_formatter_spec.rb +158 -0
  139. data/spec/gherkin/formatter/spaces.feature +9 -0
  140. data/spec/gherkin/formatter/step_printer_spec.rb +55 -0
  141. data/spec/gherkin/formatter/tabs.feature +9 -0
  142. data/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
  143. data/spec/gherkin/i18n_spec.rb +152 -0
  144. data/spec/gherkin/java_lexer_spec.rb +20 -0
  145. data/spec/gherkin/java_libs.rb +20 -0
  146. data/spec/gherkin/json_parser_spec.rb +113 -0
  147. data/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
  148. data/spec/gherkin/output_stream_string_io.rb +20 -0
  149. data/spec/gherkin/parser/parser_spec.rb +16 -0
  150. data/spec/gherkin/rb_lexer_spec.rb +19 -0
  151. data/spec/gherkin/sexp_recorder.rb +56 -0
  152. data/spec/gherkin/shared/lexer_group.rb +593 -0
  153. data/spec/gherkin/shared/py_string_group.rb +153 -0
  154. data/spec/gherkin/shared/row_group.rb +125 -0
  155. data/spec/gherkin/shared/tags_group.rb +54 -0
  156. data/spec/gherkin/tag_expression_spec.rb +137 -0
  157. data/spec/spec_helper.rb +69 -0
  158. data/tasks/bench.rake +184 -0
  159. data/tasks/bench/feature_builder.rb +49 -0
  160. data/tasks/bench/generated/.gitignore +1 -0
  161. data/tasks/bench/null_listener.rb +4 -0
  162. data/tasks/compile.rake +102 -0
  163. data/tasks/cucumber.rake +20 -0
  164. data/tasks/gems.rake +35 -0
  165. data/tasks/ikvm.rake +79 -0
  166. data/tasks/ragel_task.rb +70 -0
  167. data/tasks/rdoc.rake +9 -0
  168. data/tasks/release.rake +30 -0
  169. data/tasks/rspec.rake +8 -0
  170. metadata +609 -0
@@ -0,0 +1,972 @@
1
+
2
+ /* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
3
+ ;(function() {
4
+
5
+
6
+ /* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
7
+
8
+
9
+
10
+ /* line 11 "js/lib/gherkin/lexer/i18n/lt.js" */
11
+ const _lexer_actions = [
12
+ 0, 1, 0, 1, 1, 1, 2, 1,
13
+ 3, 1, 4, 1, 5, 1, 6, 1,
14
+ 7, 1, 8, 1, 9, 1, 10, 1,
15
+ 11, 1, 14, 1, 15, 1, 16, 1,
16
+ 17, 1, 18, 1, 19, 1, 20, 1,
17
+ 21, 2, 2, 16, 2, 11, 0, 2,
18
+ 12, 13, 2, 15, 0, 2, 15, 1,
19
+ 2, 15, 14, 2, 15, 17, 2, 16,
20
+ 4, 2, 16, 5, 2, 16, 6, 2,
21
+ 16, 7, 2, 16, 8, 2, 16, 14,
22
+ 2, 18, 19, 2, 20, 0, 2, 20,
23
+ 1, 2, 20, 14, 2, 20, 17, 3,
24
+ 3, 12, 13, 3, 9, 12, 13, 3,
25
+ 10, 12, 13, 3, 11, 12, 13, 3,
26
+ 12, 13, 16, 3, 15, 12, 13, 4,
27
+ 2, 12, 13, 16, 4, 15, 0, 12,
28
+ 13
29
+ ];
30
+
31
+ const _lexer_key_offsets = [
32
+ 0, 0, 19, 37, 38, 39, 43, 48,
33
+ 53, 58, 63, 67, 71, 73, 74, 75,
34
+ 76, 77, 78, 79, 80, 81, 82, 83,
35
+ 84, 85, 86, 87, 88, 89, 90, 92,
36
+ 97, 104, 109, 110, 111, 112, 113, 114,
37
+ 115, 116, 118, 119, 120, 121, 122, 123,
38
+ 124, 125, 126, 127, 128, 129, 130, 144,
39
+ 146, 148, 150, 152, 154, 156, 158, 160,
40
+ 162, 164, 166, 168, 170, 172, 174, 192,
41
+ 193, 194, 195, 196, 197, 198, 199, 200,
42
+ 201, 202, 203, 204, 205, 212, 214, 216,
43
+ 218, 220, 222, 224, 226, 228, 229, 230,
44
+ 231, 232, 233, 234, 235, 236, 247, 249,
45
+ 251, 253, 255, 257, 259, 261, 263, 265,
46
+ 267, 269, 271, 273, 275, 277, 279, 281,
47
+ 283, 285, 287, 289, 291, 293, 295, 297,
48
+ 299, 301, 303, 305, 307, 309, 311, 313,
49
+ 315, 318, 320, 322, 324, 326, 328, 330,
50
+ 332, 334, 336, 338, 340, 343, 346, 348,
51
+ 350, 352, 354, 356, 358, 360, 362, 364,
52
+ 366, 368, 370, 372, 374, 376, 377, 378,
53
+ 379, 380, 381, 382, 384, 386, 387, 388,
54
+ 389, 390, 391, 392, 393, 394, 395, 396,
55
+ 397, 398, 399, 400, 414, 416, 418, 420,
56
+ 422, 424, 426, 428, 430, 432, 434, 436,
57
+ 438, 440, 442, 444, 446, 448, 450, 452,
58
+ 454, 456, 458, 460, 462, 465, 467, 469,
59
+ 471, 473, 475, 477, 479, 481, 483, 485,
60
+ 487, 489, 491, 493, 495, 497, 498, 499,
61
+ 500, 501, 515, 517, 519, 521, 523, 525,
62
+ 527, 529, 531, 533, 535, 537, 539, 541,
63
+ 543, 545, 547, 549, 551, 553, 555, 557,
64
+ 559, 562, 564, 566, 568, 570, 572, 574,
65
+ 576, 578, 580, 582, 585, 587, 589, 591,
66
+ 593, 595, 597, 599, 601, 603, 605, 607,
67
+ 610, 612, 614, 616, 618, 620, 622, 624,
68
+ 626, 628, 630, 632, 634, 635, 636, 637,
69
+ 638, 639, 640, 641, 642, 646, 652, 655,
70
+ 657, 663, 681, 683, 685, 687, 689, 691,
71
+ 693, 695, 697, 699, 702, 704, 706, 708,
72
+ 710, 712, 714, 716, 718, 720, 722, 724,
73
+ 726, 729, 731, 733, 735, 737, 739, 741,
74
+ 743, 745, 747, 749, 751, 753, 755, 757,
75
+ 758, 759
76
+ ];
77
+
78
+ const _lexer_trans_keys = [
79
+ 10, 32, 34, 35, 37, 42, 64, 66,
80
+ 68, 73, 75, 80, 83, 84, 86, 124,
81
+ 239, 9, 13, 10, 32, 34, 35, 37,
82
+ 42, 64, 66, 68, 73, 75, 80, 83,
83
+ 84, 86, 124, 9, 13, 34, 34, 10,
84
+ 32, 9, 13, 10, 32, 34, 9, 13,
85
+ 10, 32, 34, 9, 13, 10, 32, 34,
86
+ 9, 13, 10, 32, 34, 9, 13, 10,
87
+ 32, 9, 13, 10, 32, 9, 13, 10,
88
+ 13, 10, 95, 70, 69, 65, 84, 85,
89
+ 82, 69, 95, 69, 78, 68, 95, 37,
90
+ 32, 10, 10, 13, 13, 32, 64, 9,
91
+ 10, 9, 10, 13, 32, 64, 11, 12,
92
+ 10, 32, 64, 9, 13, 101, 116, 117,
93
+ 111, 116, 97, 114, 97, 111, 105, 110,
94
+ 116, 101, 107, 115, 116, 97, 115, 58,
95
+ 10, 10, 10, 32, 35, 37, 42, 64,
96
+ 66, 68, 73, 75, 83, 84, 9, 13,
97
+ 10, 95, 10, 70, 10, 69, 10, 65,
98
+ 10, 84, 10, 85, 10, 82, 10, 69,
99
+ 10, 95, 10, 69, 10, 78, 10, 68,
100
+ 10, 95, 10, 37, 10, 32, 10, 32,
101
+ 34, 35, 37, 42, 64, 66, 68, 73,
102
+ 75, 80, 83, 84, 86, 124, 9, 13,
103
+ 97, 118, 121, 122, 100, -59, -66, 105,
104
+ 97, 105, 58, 10, 10, 10, 32, 35,
105
+ 83, 124, 9, 13, 10, 97, 10, 118,
106
+ 10, 121, 10, 98, -60, 10, -105, 10,
107
+ 10, 58, 97, 99, 118, 121, 98, -60,
108
+ -105, 58, 10, 10, 10, 32, 35, 37,
109
+ 64, 75, 80, 83, 86, 9, 13, 10,
110
+ 95, 10, 70, 10, 69, 10, 65, 10,
111
+ 84, 10, 85, 10, 82, 10, 69, 10,
112
+ 95, 10, 69, 10, 78, 10, 68, 10,
113
+ 95, 10, 37, 10, 111, 10, 110, 10,
114
+ 116, 10, 101, 10, 107, 10, 115, 10,
115
+ 116, 10, 97, 10, 115, 10, 58, 10,
116
+ 97, 10, 118, 10, 121, 10, 122, 10,
117
+ 100, -59, 10, -66, 10, 10, 105, 10,
118
+ 97, 10, 105, 10, 97, 99, 10, 118,
119
+ 10, 121, 10, 98, -60, 10, -105, 10,
120
+ 10, 101, 10, 110, 10, 97, 10, 114,
121
+ 10, 105, 10, 106, 10, 97, 117, 10,
122
+ 105, 117, 10, 115, 10, 32, -59, 10,
123
+ -95, 10, 10, 97, 10, 98, 10, 108,
124
+ 10, 111, 10, 110, 10, 97, 10, 114,
125
+ 10, 105, 10, 97, 10, 110, 10, 116,
126
+ 101, 110, 97, 114, 105, 106, 97, 117,
127
+ 105, 117, 115, 32, -59, -95, 97, 98,
128
+ 108, 111, 110, 97, 115, 58, 10, 10,
129
+ 10, 32, 35, 37, 42, 64, 66, 68,
130
+ 73, 75, 83, 84, 9, 13, 10, 95,
131
+ 10, 70, 10, 69, 10, 65, 10, 84,
132
+ 10, 85, 10, 82, 10, 69, 10, 95,
133
+ 10, 69, 10, 78, 10, 68, 10, 95,
134
+ 10, 37, 10, 32, 10, 101, 10, 116,
135
+ 10, 117, 10, 111, 10, 116, 10, 97,
136
+ 10, 114, 10, 97, 10, 105, 10, 97,
137
+ 99, 10, 118, 10, 121, 10, 98, -60,
138
+ 10, -105, 10, 10, 58, 10, 101, 10,
139
+ 110, 10, 97, 10, 114, 10, 105, 10,
140
+ 106, 10, 117, 10, 115, 10, 97, 10,
141
+ 100, 115, 58, 10, 10, 10, 32, 35,
142
+ 37, 42, 64, 66, 68, 73, 75, 83,
143
+ 84, 9, 13, 10, 95, 10, 70, 10,
144
+ 69, 10, 65, 10, 84, 10, 85, 10,
145
+ 82, 10, 69, 10, 95, 10, 69, 10,
146
+ 78, 10, 68, 10, 95, 10, 37, 10,
147
+ 32, 10, 101, 10, 116, 10, 117, 10,
148
+ 111, 10, 116, 10, 97, 10, 114, 10,
149
+ 97, 111, 10, 105, 10, 110, 10, 116,
150
+ 10, 101, 10, 107, 10, 115, 10, 116,
151
+ 10, 97, 10, 115, 10, 58, 10, 97,
152
+ 99, 10, 118, 10, 121, 10, 98, -60,
153
+ 10, -105, 10, 10, 101, 10, 110, 10,
154
+ 97, 10, 114, 10, 105, 10, 106, 10,
155
+ 97, 117, 10, 117, 10, 115, 10, 32,
156
+ -59, 10, -95, 10, 10, 97, 10, 98,
157
+ 10, 108, 10, 111, 10, 110, 10, 97,
158
+ 10, 100, 97, 100, 97, 114, 105, 97,
159
+ 110, 116, 32, 124, 9, 13, 10, 32,
160
+ 92, 124, 9, 13, 10, 92, 124, 10,
161
+ 92, 10, 32, 92, 124, 9, 13, 10,
162
+ 32, 34, 35, 37, 42, 64, 66, 68,
163
+ 73, 75, 80, 83, 84, 86, 124, 9,
164
+ 13, 10, 101, 10, 116, 10, 117, 10,
165
+ 111, 10, 116, 10, 97, 10, 114, 10,
166
+ 97, 10, 105, 10, 97, 99, 10, 118,
167
+ 10, 121, 10, 98, -60, 10, -105, 10,
168
+ 10, 58, 10, 101, 10, 110, 10, 97,
169
+ 10, 114, 10, 105, 10, 106, 10, 97,
170
+ 117, 10, 117, 10, 115, 10, 32, -59,
171
+ 10, -95, 10, 10, 97, 10, 98, 10,
172
+ 108, 10, 111, 10, 110, 10, 97, 10,
173
+ 115, 10, 97, 10, 100, 187, 191, 0
174
+ ];
175
+
176
+ const _lexer_single_lengths = [
177
+ 0, 17, 16, 1, 1, 2, 3, 3,
178
+ 3, 3, 2, 2, 2, 1, 1, 1,
179
+ 1, 1, 1, 1, 1, 1, 1, 1,
180
+ 1, 1, 1, 1, 1, 1, 2, 3,
181
+ 5, 3, 1, 1, 1, 1, 1, 1,
182
+ 1, 2, 1, 1, 1, 1, 1, 1,
183
+ 1, 1, 1, 1, 1, 1, 12, 2,
184
+ 2, 2, 2, 2, 2, 2, 2, 2,
185
+ 2, 2, 2, 2, 2, 2, 16, 1,
186
+ 1, 1, 1, 1, 1, 1, 1, 1,
187
+ 1, 1, 1, 1, 5, 2, 2, 2,
188
+ 2, 2, 2, 2, 2, 1, 1, 1,
189
+ 1, 1, 1, 1, 1, 9, 2, 2,
190
+ 2, 2, 2, 2, 2, 2, 2, 2,
191
+ 2, 2, 2, 2, 2, 2, 2, 2,
192
+ 2, 2, 2, 2, 2, 2, 2, 2,
193
+ 2, 2, 2, 2, 2, 2, 2, 2,
194
+ 3, 2, 2, 2, 2, 2, 2, 2,
195
+ 2, 2, 2, 2, 3, 3, 2, 2,
196
+ 2, 2, 2, 2, 2, 2, 2, 2,
197
+ 2, 2, 2, 2, 2, 1, 1, 1,
198
+ 1, 1, 1, 2, 2, 1, 1, 1,
199
+ 1, 1, 1, 1, 1, 1, 1, 1,
200
+ 1, 1, 1, 12, 2, 2, 2, 2,
201
+ 2, 2, 2, 2, 2, 2, 2, 2,
202
+ 2, 2, 2, 2, 2, 2, 2, 2,
203
+ 2, 2, 2, 2, 3, 2, 2, 2,
204
+ 2, 2, 2, 2, 2, 2, 2, 2,
205
+ 2, 2, 2, 2, 2, 1, 1, 1,
206
+ 1, 12, 2, 2, 2, 2, 2, 2,
207
+ 2, 2, 2, 2, 2, 2, 2, 2,
208
+ 2, 2, 2, 2, 2, 2, 2, 2,
209
+ 3, 2, 2, 2, 2, 2, 2, 2,
210
+ 2, 2, 2, 3, 2, 2, 2, 2,
211
+ 2, 2, 2, 2, 2, 2, 2, 3,
212
+ 2, 2, 2, 2, 2, 2, 2, 2,
213
+ 2, 2, 2, 2, 1, 1, 1, 1,
214
+ 1, 1, 1, 1, 2, 4, 3, 2,
215
+ 4, 16, 2, 2, 2, 2, 2, 2,
216
+ 2, 2, 2, 3, 2, 2, 2, 2,
217
+ 2, 2, 2, 2, 2, 2, 2, 2,
218
+ 3, 2, 2, 2, 2, 2, 2, 2,
219
+ 2, 2, 2, 2, 2, 2, 2, 1,
220
+ 1, 0
221
+ ];
222
+
223
+ const _lexer_range_lengths = [
224
+ 0, 1, 1, 0, 0, 1, 1, 1,
225
+ 1, 1, 1, 1, 0, 0, 0, 0,
226
+ 0, 0, 0, 0, 0, 0, 0, 0,
227
+ 0, 0, 0, 0, 0, 0, 0, 1,
228
+ 1, 1, 0, 0, 0, 0, 0, 0,
229
+ 0, 0, 0, 0, 0, 0, 0, 0,
230
+ 0, 0, 0, 0, 0, 0, 1, 0,
231
+ 0, 0, 0, 0, 0, 0, 0, 0,
232
+ 0, 0, 0, 0, 0, 0, 1, 0,
233
+ 0, 0, 0, 0, 0, 0, 0, 0,
234
+ 0, 0, 0, 0, 1, 0, 0, 0,
235
+ 0, 0, 0, 0, 0, 0, 0, 0,
236
+ 0, 0, 0, 0, 0, 1, 0, 0,
237
+ 0, 0, 0, 0, 0, 0, 0, 0,
238
+ 0, 0, 0, 0, 0, 0, 0, 0,
239
+ 0, 0, 0, 0, 0, 0, 0, 0,
240
+ 0, 0, 0, 0, 0, 0, 0, 0,
241
+ 0, 0, 0, 0, 0, 0, 0, 0,
242
+ 0, 0, 0, 0, 0, 0, 0, 0,
243
+ 0, 0, 0, 0, 0, 0, 0, 0,
244
+ 0, 0, 0, 0, 0, 0, 0, 0,
245
+ 0, 0, 0, 0, 0, 0, 0, 0,
246
+ 0, 0, 0, 0, 0, 0, 0, 0,
247
+ 0, 0, 0, 1, 0, 0, 0, 0,
248
+ 0, 0, 0, 0, 0, 0, 0, 0,
249
+ 0, 0, 0, 0, 0, 0, 0, 0,
250
+ 0, 0, 0, 0, 0, 0, 0, 0,
251
+ 0, 0, 0, 0, 0, 0, 0, 0,
252
+ 0, 0, 0, 0, 0, 0, 0, 0,
253
+ 0, 1, 0, 0, 0, 0, 0, 0,
254
+ 0, 0, 0, 0, 0, 0, 0, 0,
255
+ 0, 0, 0, 0, 0, 0, 0, 0,
256
+ 0, 0, 0, 0, 0, 0, 0, 0,
257
+ 0, 0, 0, 0, 0, 0, 0, 0,
258
+ 0, 0, 0, 0, 0, 0, 0, 0,
259
+ 0, 0, 0, 0, 0, 0, 0, 0,
260
+ 0, 0, 0, 0, 0, 0, 0, 0,
261
+ 0, 0, 0, 0, 1, 1, 0, 0,
262
+ 1, 1, 0, 0, 0, 0, 0, 0,
263
+ 0, 0, 0, 0, 0, 0, 0, 0,
264
+ 0, 0, 0, 0, 0, 0, 0, 0,
265
+ 0, 0, 0, 0, 0, 0, 0, 0,
266
+ 0, 0, 0, 0, 0, 0, 0, 0,
267
+ 0, 0
268
+ ];
269
+
270
+ const _lexer_index_offsets = [
271
+ 0, 0, 19, 37, 39, 41, 45, 50,
272
+ 55, 60, 65, 69, 73, 76, 78, 80,
273
+ 82, 84, 86, 88, 90, 92, 94, 96,
274
+ 98, 100, 102, 104, 106, 108, 110, 113,
275
+ 118, 125, 130, 132, 134, 136, 138, 140,
276
+ 142, 144, 147, 149, 151, 153, 155, 157,
277
+ 159, 161, 163, 165, 167, 169, 171, 185,
278
+ 188, 191, 194, 197, 200, 203, 206, 209,
279
+ 212, 215, 218, 221, 224, 227, 230, 248,
280
+ 250, 252, 254, 256, 258, 260, 262, 264,
281
+ 266, 268, 270, 272, 274, 281, 284, 287,
282
+ 290, 293, 296, 299, 302, 305, 307, 309,
283
+ 311, 313, 315, 317, 319, 321, 332, 335,
284
+ 338, 341, 344, 347, 350, 353, 356, 359,
285
+ 362, 365, 368, 371, 374, 377, 380, 383,
286
+ 386, 389, 392, 395, 398, 401, 404, 407,
287
+ 410, 413, 416, 419, 422, 425, 428, 431,
288
+ 434, 438, 441, 444, 447, 450, 453, 456,
289
+ 459, 462, 465, 468, 471, 475, 479, 482,
290
+ 485, 488, 491, 494, 497, 500, 503, 506,
291
+ 509, 512, 515, 518, 521, 524, 526, 528,
292
+ 530, 532, 534, 536, 539, 542, 544, 546,
293
+ 548, 550, 552, 554, 556, 558, 560, 562,
294
+ 564, 566, 568, 570, 584, 587, 590, 593,
295
+ 596, 599, 602, 605, 608, 611, 614, 617,
296
+ 620, 623, 626, 629, 632, 635, 638, 641,
297
+ 644, 647, 650, 653, 656, 660, 663, 666,
298
+ 669, 672, 675, 678, 681, 684, 687, 690,
299
+ 693, 696, 699, 702, 705, 708, 710, 712,
300
+ 714, 716, 730, 733, 736, 739, 742, 745,
301
+ 748, 751, 754, 757, 760, 763, 766, 769,
302
+ 772, 775, 778, 781, 784, 787, 790, 793,
303
+ 796, 800, 803, 806, 809, 812, 815, 818,
304
+ 821, 824, 827, 830, 834, 837, 840, 843,
305
+ 846, 849, 852, 855, 858, 861, 864, 867,
306
+ 871, 874, 877, 880, 883, 886, 889, 892,
307
+ 895, 898, 901, 904, 907, 909, 911, 913,
308
+ 915, 917, 919, 921, 923, 927, 933, 937,
309
+ 940, 946, 964, 967, 970, 973, 976, 979,
310
+ 982, 985, 988, 991, 995, 998, 1001, 1004,
311
+ 1007, 1010, 1013, 1016, 1019, 1022, 1025, 1028,
312
+ 1031, 1035, 1038, 1041, 1044, 1047, 1050, 1053,
313
+ 1056, 1059, 1062, 1065, 1068, 1071, 1074, 1077,
314
+ 1079, 1081
315
+ ];
316
+
317
+ const _lexer_indicies = [
318
+ 2, 1, 3, 4, 5, 6, 7, 8,
319
+ 9, 10, 11, 12, 13, 14, 15, 16,
320
+ 17, 1, 0, 2, 1, 3, 4, 5,
321
+ 6, 7, 8, 9, 10, 11, 12, 13,
322
+ 14, 15, 16, 1, 0, 18, 0, 19,
323
+ 0, 20, 19, 19, 0, 23, 22, 24,
324
+ 22, 21, 27, 26, 28, 26, 25, 27,
325
+ 26, 29, 26, 25, 27, 26, 30, 26,
326
+ 25, 32, 31, 31, 0, 2, 33, 33,
327
+ 0, 35, 36, 34, 2, 0, 37, 0,
328
+ 38, 0, 39, 0, 40, 0, 41, 0,
329
+ 42, 0, 43, 0, 44, 0, 45, 0,
330
+ 46, 0, 47, 0, 48, 0, 49, 0,
331
+ 50, 0, 51, 0, 0, 52, 54, 55,
332
+ 53, 0, 0, 0, 0, 56, 57, 58,
333
+ 57, 57, 60, 59, 56, 2, 61, 7,
334
+ 61, 0, 62, 0, 63, 0, 64, 0,
335
+ 65, 0, 66, 0, 63, 0, 63, 0,
336
+ 67, 68, 0, 63, 0, 69, 0, 70,
337
+ 0, 71, 0, 72, 0, 73, 0, 74,
338
+ 0, 75, 0, 76, 0, 77, 0, 79,
339
+ 78, 81, 80, 81, 82, 83, 84, 85,
340
+ 83, 86, 87, 88, 89, 90, 91, 82,
341
+ 80, 81, 92, 80, 81, 93, 80, 81,
342
+ 94, 80, 81, 95, 80, 81, 96, 80,
343
+ 81, 97, 80, 81, 98, 80, 81, 99,
344
+ 80, 81, 100, 80, 81, 101, 80, 81,
345
+ 102, 80, 81, 103, 80, 81, 104, 80,
346
+ 81, 105, 80, 81, 106, 80, 108, 107,
347
+ 109, 110, 111, 112, 113, 114, 115, 116,
348
+ 117, 118, 119, 120, 121, 122, 107, 0,
349
+ 123, 0, 124, 0, 125, 0, 126, 0,
350
+ 127, 0, 128, 0, 129, 0, 130, 0,
351
+ 131, 0, 132, 0, 133, 0, 135, 134,
352
+ 137, 136, 137, 138, 139, 140, 139, 138,
353
+ 136, 137, 141, 136, 137, 142, 136, 137,
354
+ 143, 136, 137, 144, 136, 145, 137, 136,
355
+ 146, 137, 136, 137, 147, 136, 148, 149,
356
+ 0, 150, 0, 151, 0, 152, 0, 153,
357
+ 0, 154, 0, 155, 0, 157, 156, 159,
358
+ 158, 159, 160, 161, 162, 161, 163, 164,
359
+ 165, 166, 160, 158, 159, 167, 158, 159,
360
+ 168, 158, 159, 169, 158, 159, 170, 158,
361
+ 159, 171, 158, 159, 172, 158, 159, 173,
362
+ 158, 159, 174, 158, 159, 175, 158, 159,
363
+ 176, 158, 159, 177, 158, 159, 178, 158,
364
+ 159, 179, 158, 159, 180, 158, 159, 181,
365
+ 158, 159, 182, 158, 159, 183, 158, 159,
366
+ 184, 158, 159, 185, 158, 159, 186, 158,
367
+ 159, 187, 158, 159, 188, 158, 159, 189,
368
+ 158, 159, 190, 158, 159, 191, 158, 159,
369
+ 192, 158, 159, 193, 158, 159, 194, 158,
370
+ 159, 195, 158, 196, 159, 158, 197, 159,
371
+ 158, 159, 198, 158, 159, 199, 158, 159,
372
+ 189, 158, 159, 200, 201, 158, 159, 202,
373
+ 158, 159, 203, 158, 159, 204, 158, 205,
374
+ 159, 158, 189, 159, 158, 159, 206, 158,
375
+ 159, 207, 158, 159, 208, 158, 159, 209,
376
+ 158, 159, 210, 158, 159, 211, 158, 159,
377
+ 212, 188, 158, 159, 189, 213, 158, 159,
378
+ 214, 158, 159, 215, 158, 216, 159, 158,
379
+ 217, 159, 158, 159, 218, 158, 159, 219,
380
+ 158, 159, 220, 158, 159, 221, 158, 159,
381
+ 187, 158, 159, 222, 158, 159, 223, 158,
382
+ 159, 224, 158, 159, 225, 158, 159, 226,
383
+ 158, 159, 198, 158, 227, 0, 228, 0,
384
+ 229, 0, 230, 0, 231, 0, 232, 0,
385
+ 233, 234, 0, 132, 235, 0, 236, 0,
386
+ 237, 0, 238, 0, 239, 0, 240, 0,
387
+ 241, 0, 242, 0, 243, 0, 244, 0,
388
+ 245, 0, 246, 0, 247, 0, 249, 248,
389
+ 251, 250, 251, 252, 253, 254, 255, 253,
390
+ 256, 257, 258, 259, 260, 261, 252, 250,
391
+ 251, 262, 250, 251, 263, 250, 251, 264,
392
+ 250, 251, 265, 250, 251, 266, 250, 251,
393
+ 267, 250, 251, 268, 250, 251, 269, 250,
394
+ 251, 270, 250, 251, 271, 250, 251, 272,
395
+ 250, 251, 273, 250, 251, 274, 250, 251,
396
+ 275, 250, 251, 276, 250, 251, 277, 250,
397
+ 251, 278, 250, 251, 279, 250, 251, 280,
398
+ 250, 251, 281, 250, 251, 278, 250, 251,
399
+ 278, 250, 251, 282, 250, 251, 278, 250,
400
+ 251, 283, 284, 250, 251, 285, 250, 251,
401
+ 286, 250, 251, 287, 250, 288, 251, 250,
402
+ 289, 251, 250, 251, 276, 250, 251, 290,
403
+ 250, 251, 291, 250, 251, 292, 250, 251,
404
+ 293, 250, 251, 294, 250, 251, 295, 250,
405
+ 251, 296, 250, 251, 289, 250, 251, 297,
406
+ 250, 251, 281, 250, 298, 0, 299, 0,
407
+ 301, 300, 303, 302, 303, 304, 305, 306,
408
+ 307, 305, 308, 309, 310, 311, 312, 313,
409
+ 304, 302, 303, 314, 302, 303, 315, 302,
410
+ 303, 316, 302, 303, 317, 302, 303, 318,
411
+ 302, 303, 319, 302, 303, 320, 302, 303,
412
+ 321, 302, 303, 322, 302, 303, 323, 302,
413
+ 303, 324, 302, 303, 325, 302, 303, 326,
414
+ 302, 303, 327, 302, 303, 328, 302, 303,
415
+ 329, 302, 303, 330, 302, 303, 331, 302,
416
+ 303, 332, 302, 303, 333, 302, 303, 330,
417
+ 302, 303, 330, 302, 303, 334, 335, 302,
418
+ 303, 330, 302, 303, 336, 302, 303, 337,
419
+ 302, 303, 338, 302, 303, 339, 302, 303,
420
+ 340, 302, 303, 341, 302, 303, 342, 302,
421
+ 303, 343, 302, 303, 328, 302, 303, 344,
422
+ 345, 302, 303, 346, 302, 303, 347, 302,
423
+ 303, 348, 302, 349, 303, 302, 343, 303,
424
+ 302, 303, 350, 302, 303, 351, 302, 303,
425
+ 352, 302, 303, 353, 302, 303, 354, 302,
426
+ 303, 355, 302, 303, 356, 342, 302, 303,
427
+ 357, 302, 303, 358, 302, 303, 359, 302,
428
+ 360, 303, 302, 361, 303, 302, 303, 362,
429
+ 302, 303, 363, 302, 303, 364, 302, 303,
430
+ 365, 302, 303, 341, 302, 303, 366, 302,
431
+ 303, 333, 302, 367, 0, 66, 0, 368,
432
+ 0, 369, 0, 370, 0, 371, 0, 372,
433
+ 0, 130, 0, 373, 374, 373, 0, 377,
434
+ 376, 378, 379, 376, 375, 0, 381, 382,
435
+ 380, 0, 381, 380, 377, 383, 381, 382,
436
+ 383, 380, 377, 384, 385, 386, 387, 388,
437
+ 389, 390, 391, 392, 393, 394, 395, 396,
438
+ 397, 398, 384, 0, 81, 399, 80, 81,
439
+ 400, 80, 81, 401, 80, 81, 402, 80,
440
+ 81, 403, 80, 81, 400, 80, 81, 400,
441
+ 80, 81, 404, 80, 81, 400, 80, 81,
442
+ 405, 406, 80, 81, 407, 80, 81, 408,
443
+ 80, 81, 409, 80, 410, 81, 80, 411,
444
+ 81, 80, 81, 106, 80, 81, 412, 80,
445
+ 81, 413, 80, 81, 414, 80, 81, 415,
446
+ 80, 81, 416, 80, 81, 417, 80, 81,
447
+ 418, 419, 80, 81, 420, 80, 81, 421,
448
+ 80, 81, 422, 80, 423, 81, 80, 424,
449
+ 81, 80, 81, 425, 80, 81, 426, 80,
450
+ 81, 427, 80, 81, 428, 80, 81, 429,
451
+ 80, 81, 419, 80, 81, 411, 80, 81,
452
+ 430, 80, 81, 403, 80, 431, 0, 1,
453
+ 0, 432, 0
454
+ ];
455
+
456
+ const _lexer_trans_targs = [
457
+ 0, 2, 2, 3, 12, 14, 28, 31,
458
+ 34, 36, 40, 41, 71, 92, 292, 294,
459
+ 300, 343, 4, 5, 6, 7, 7, 7,
460
+ 8, 7, 7, 7, 8, 9, 10, 11,
461
+ 2, 11, 12, 2, 13, 15, 16, 17,
462
+ 18, 19, 20, 21, 22, 23, 24, 25,
463
+ 26, 27, 345, 29, 30, 30, 2, 13,
464
+ 32, 33, 2, 32, 31, 33, 35, 28,
465
+ 37, 38, 39, 42, 43, 44, 45, 46,
466
+ 47, 48, 49, 50, 51, 52, 53, 54,
467
+ 53, 54, 54, 2, 55, 69, 306, 308,
468
+ 312, 313, 315, 341, 56, 57, 58, 59,
469
+ 60, 61, 62, 63, 64, 65, 66, 67,
470
+ 68, 2, 70, 2, 2, 3, 12, 14,
471
+ 28, 31, 34, 36, 40, 41, 71, 92,
472
+ 292, 294, 300, 72, 73, 74, 75, 76,
473
+ 77, 78, 79, 80, 81, 82, 83, 84,
474
+ 83, 84, 84, 2, 85, 86, 87, 88,
475
+ 89, 90, 91, 70, 93, 165, 94, 95,
476
+ 96, 97, 98, 99, 100, 101, 100, 101,
477
+ 101, 2, 102, 116, 126, 136, 159, 103,
478
+ 104, 105, 106, 107, 108, 109, 110, 111,
479
+ 112, 113, 114, 115, 2, 117, 118, 119,
480
+ 120, 121, 122, 123, 124, 125, 70, 127,
481
+ 128, 129, 130, 131, 132, 133, 134, 135,
482
+ 137, 142, 138, 139, 140, 141, 143, 144,
483
+ 145, 146, 147, 148, 149, 150, 151, 152,
484
+ 153, 154, 155, 156, 157, 158, 160, 161,
485
+ 162, 163, 164, 166, 167, 168, 169, 170,
486
+ 171, 172, 229, 173, 174, 175, 176, 177,
487
+ 178, 179, 180, 181, 182, 183, 184, 185,
488
+ 186, 187, 186, 187, 187, 2, 188, 202,
489
+ 203, 205, 209, 210, 212, 227, 189, 190,
490
+ 191, 192, 193, 194, 195, 196, 197, 198,
491
+ 199, 200, 201, 2, 70, 204, 202, 206,
492
+ 207, 208, 211, 213, 219, 214, 215, 216,
493
+ 217, 218, 220, 221, 222, 223, 224, 225,
494
+ 226, 228, 230, 231, 232, 233, 232, 233,
495
+ 233, 2, 234, 248, 249, 251, 255, 256,
496
+ 267, 290, 235, 236, 237, 238, 239, 240,
497
+ 241, 242, 243, 244, 245, 246, 247, 2,
498
+ 70, 250, 248, 252, 253, 254, 257, 258,
499
+ 259, 260, 261, 262, 263, 264, 265, 266,
500
+ 268, 273, 269, 270, 271, 272, 274, 275,
501
+ 276, 277, 278, 279, 280, 281, 282, 283,
502
+ 284, 285, 286, 287, 288, 289, 291, 293,
503
+ 295, 296, 297, 298, 299, 300, 301, 302,
504
+ 304, 305, 303, 301, 302, 303, 301, 304,
505
+ 305, 3, 12, 14, 28, 31, 34, 36,
506
+ 40, 41, 71, 92, 292, 294, 300, 307,
507
+ 69, 309, 310, 311, 314, 316, 322, 317,
508
+ 318, 319, 320, 321, 323, 324, 325, 326,
509
+ 327, 328, 329, 340, 330, 331, 332, 333,
510
+ 334, 335, 336, 337, 338, 339, 342, 344,
511
+ 0
512
+ ];
513
+
514
+ const _lexer_trans_actions = [
515
+ 39, 0, 47, 3, 1, 0, 25, 1,
516
+ 25, 25, 25, 25, 25, 25, 25, 25,
517
+ 31, 0, 0, 0, 47, 5, 41, 119,
518
+ 41, 0, 29, 111, 29, 29, 0, 7,
519
+ 95, 0, 0, 103, 21, 0, 0, 0,
520
+ 0, 0, 0, 0, 0, 0, 0, 0,
521
+ 0, 0, 0, 0, 50, 0, 99, 19,
522
+ 0, 23, 107, 23, 44, 0, 0, 0,
523
+ 0, 0, 0, 0, 0, 0, 0, 0,
524
+ 0, 0, 0, 0, 0, 0, 50, 124,
525
+ 0, 47, 0, 65, 29, 77, 77, 77,
526
+ 77, 77, 77, 77, 0, 0, 0, 0,
527
+ 0, 0, 0, 0, 0, 0, 0, 0,
528
+ 0, 11, 11, 27, 115, 53, 50, 27,
529
+ 56, 50, 56, 56, 56, 56, 56, 56,
530
+ 56, 56, 59, 0, 0, 0, 0, 0,
531
+ 0, 0, 0, 0, 0, 0, 50, 124,
532
+ 0, 47, 0, 74, 77, 0, 0, 0,
533
+ 0, 0, 0, 17, 0, 0, 0, 0,
534
+ 0, 0, 0, 0, 50, 124, 0, 47,
535
+ 0, 62, 29, 77, 77, 77, 77, 0,
536
+ 0, 0, 0, 0, 0, 0, 0, 0,
537
+ 0, 0, 0, 0, 9, 0, 0, 0,
538
+ 0, 0, 0, 0, 0, 0, 9, 0,
539
+ 0, 0, 0, 0, 0, 0, 0, 0,
540
+ 0, 0, 0, 0, 0, 0, 0, 0,
541
+ 0, 0, 0, 0, 0, 0, 0, 0,
542
+ 0, 0, 0, 0, 0, 0, 0, 0,
543
+ 0, 0, 0, 0, 0, 0, 0, 0,
544
+ 0, 0, 0, 0, 0, 0, 0, 0,
545
+ 0, 0, 0, 0, 0, 0, 0, 0,
546
+ 50, 124, 0, 47, 0, 71, 29, 77,
547
+ 77, 77, 77, 77, 77, 77, 0, 0,
548
+ 0, 0, 0, 0, 0, 0, 0, 0,
549
+ 0, 0, 0, 15, 15, 0, 0, 0,
550
+ 0, 0, 0, 0, 0, 0, 0, 0,
551
+ 0, 0, 0, 0, 0, 0, 0, 0,
552
+ 0, 0, 0, 0, 50, 124, 0, 47,
553
+ 0, 68, 29, 77, 77, 77, 77, 77,
554
+ 77, 77, 0, 0, 0, 0, 0, 0,
555
+ 0, 0, 0, 0, 0, 0, 0, 13,
556
+ 13, 0, 0, 0, 0, 0, 0, 0,
557
+ 0, 0, 0, 0, 0, 0, 0, 0,
558
+ 0, 0, 0, 0, 0, 0, 0, 0,
559
+ 0, 0, 0, 0, 0, 0, 0, 0,
560
+ 0, 0, 0, 0, 0, 0, 0, 0,
561
+ 0, 0, 0, 0, 0, 0, 0, 33,
562
+ 33, 47, 33, 80, 0, 0, 35, 0,
563
+ 0, 86, 83, 37, 89, 83, 89, 89,
564
+ 89, 89, 89, 89, 89, 89, 92, 0,
565
+ 0, 0, 0, 0, 0, 0, 0, 0,
566
+ 0, 0, 0, 0, 0, 0, 0, 0,
567
+ 0, 0, 0, 0, 0, 0, 0, 0,
568
+ 0, 0, 0, 0, 0, 0, 0, 0,
569
+ 0
570
+ ];
571
+
572
+ const _lexer_eof_actions = [
573
+ 0, 39, 39, 39, 39, 39, 39, 39,
574
+ 39, 39, 39, 39, 39, 39, 39, 39,
575
+ 39, 39, 39, 39, 39, 39, 39, 39,
576
+ 39, 39, 39, 39, 39, 39, 39, 39,
577
+ 39, 39, 39, 39, 39, 39, 39, 39,
578
+ 39, 39, 39, 39, 39, 39, 39, 39,
579
+ 39, 39, 39, 39, 39, 39, 39, 39,
580
+ 39, 39, 39, 39, 39, 39, 39, 39,
581
+ 39, 39, 39, 39, 39, 39, 39, 39,
582
+ 39, 39, 39, 39, 39, 39, 39, 39,
583
+ 39, 39, 39, 39, 39, 39, 39, 39,
584
+ 39, 39, 39, 39, 39, 39, 39, 39,
585
+ 39, 39, 39, 39, 39, 39, 39, 39,
586
+ 39, 39, 39, 39, 39, 39, 39, 39,
587
+ 39, 39, 39, 39, 39, 39, 39, 39,
588
+ 39, 39, 39, 39, 39, 39, 39, 39,
589
+ 39, 39, 39, 39, 39, 39, 39, 39,
590
+ 39, 39, 39, 39, 39, 39, 39, 39,
591
+ 39, 39, 39, 39, 39, 39, 39, 39,
592
+ 39, 39, 39, 39, 39, 39, 39, 39,
593
+ 39, 39, 39, 39, 39, 39, 39, 39,
594
+ 39, 39, 39, 39, 39, 39, 39, 39,
595
+ 39, 39, 39, 39, 39, 39, 39, 39,
596
+ 39, 39, 39, 39, 39, 39, 39, 39,
597
+ 39, 39, 39, 39, 39, 39, 39, 39,
598
+ 39, 39, 39, 39, 39, 39, 39, 39,
599
+ 39, 39, 39, 39, 39, 39, 39, 39,
600
+ 39, 39, 39, 39, 39, 39, 39, 39,
601
+ 39, 39, 39, 39, 39, 39, 39, 39,
602
+ 39, 39, 39, 39, 39, 39, 39, 39,
603
+ 39, 39, 39, 39, 39, 39, 39, 39,
604
+ 39, 39, 39, 39, 39, 39, 39, 39,
605
+ 39, 39, 39, 39, 39, 39, 39, 39,
606
+ 39, 39, 39, 39, 39, 39, 39, 39,
607
+ 39, 39, 39, 39, 39, 39, 39, 39,
608
+ 39, 39, 39, 39, 39, 39, 39, 39,
609
+ 39, 39, 39, 39, 39, 39, 39, 39,
610
+ 39, 39, 39, 39, 39, 39, 39, 39,
611
+ 39, 39, 39, 39, 39, 39, 39, 39,
612
+ 39, 39, 39, 39, 39, 39, 39, 39,
613
+ 39, 39, 39, 39, 39, 39, 39, 39,
614
+ 39, 39, 39, 39, 39, 39, 39, 39,
615
+ 39, 39, 39, 39, 39, 39, 39, 39,
616
+ 39, 39
617
+ ];
618
+
619
+ const lexer_start = 1;
620
+ const lexer_first_final = 345;
621
+ const lexer_error = 0;
622
+
623
+ const lexer_en_main = 1;
624
+
625
+
626
+ /* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
627
+
628
+ /* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
629
+
630
+ /* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
631
+
632
+ var Lexer = function(listeners) {
633
+ // check that we have an 'on' method (for registering event listeners - Node has that)
634
+ // If not, make a trivial implementation that can register one listener. -Enough for testing.
635
+
636
+ if(!this.on) {
637
+ this._listeners = {};
638
+
639
+ this.on = function(event, cb) {
640
+ this._listeners[event] = cb;
641
+ };
642
+
643
+ this.emit = function() {
644
+ var event = arguments[0];
645
+ var args = [];
646
+ for(var i = 1; i < arguments.length; i++) {
647
+ args.push(arguments[i]);
648
+ }
649
+ var cb = this._listeners[event];
650
+ cb.apply(listeners, args);
651
+ };
652
+ }
653
+
654
+ var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end'];
655
+ for(e in events) {
656
+ var event = events[e];
657
+ var listener = listeners[event];
658
+ // if(!listener) {
659
+ // throw "No listener for " + event;
660
+ // }
661
+ this.on(event, listener);
662
+ }
663
+
664
+
665
+ /* line 666 "js/lib/gherkin/lexer/i18n/lt.js" */
666
+ {
667
+ this.cs = lexer_start;
668
+ } /* JSCodeGen::writeInit */
669
+
670
+ /* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
671
+ };
672
+
673
+ if(typeof require == 'function') {
674
+ require('sys').inherits(Lexer, require('events').EventEmitter);
675
+ }
676
+
677
+ Lexer.prototype.scan = function(data) {
678
+ var p = 0;
679
+ var pe = data.length;
680
+ var eof = 0;
681
+
682
+
683
+ /* line 684 "js/lib/gherkin/lexer/i18n/lt.js" */
684
+ {
685
+ var _klen, _trans, _keys, _ps, _widec, _acts, _nacts;
686
+ var _goto_level, _resume, _eof_trans, _again, _test_eof;
687
+ var _out;
688
+ _klen = _trans = _keys = _acts = _nacts = null;
689
+ _goto_level = 0;
690
+ _resume = 10;
691
+ _eof_trans = 15;
692
+ _again = 20;
693
+ _test_eof = 30;
694
+ _out = 40;
695
+ while (true) {
696
+ _trigger_goto = false;
697
+ if (_goto_level <= 0) {
698
+ if (p == pe) {
699
+ _goto_level = _test_eof;
700
+ continue;
701
+ }
702
+ if ( this.cs == 0) {
703
+ _goto_level = _out;
704
+ continue;
705
+ }
706
+ }
707
+ if (_goto_level <= _resume) {
708
+ _keys = _lexer_key_offsets[ this.cs];
709
+ _trans = _lexer_index_offsets[ this.cs];
710
+ _klen = _lexer_single_lengths[ this.cs];
711
+ _break_match = false;
712
+
713
+ do {
714
+ if (_klen > 0) {
715
+ _lower = _keys;
716
+ _upper = _keys + _klen - 1;
717
+
718
+ while (true) {
719
+ if (_upper < _lower) { break; }
720
+ _mid = _lower + ( (_upper - _lower) >> 1 );
721
+
722
+ if ( data[p] < _lexer_trans_keys[_mid]) {
723
+ _upper = _mid - 1;
724
+ } else if ( data[p] > _lexer_trans_keys[_mid]) {
725
+ _lower = _mid + 1;
726
+ } else {
727
+ _trans += (_mid - _keys);
728
+ _break_match = true;
729
+ break;
730
+ };
731
+ } /* while */
732
+ if (_break_match) { break; }
733
+ _keys += _klen;
734
+ _trans += _klen;
735
+ }
736
+ _klen = _lexer_range_lengths[ this.cs];
737
+ if (_klen > 0) {
738
+ _lower = _keys;
739
+ _upper = _keys + (_klen << 1) - 2;
740
+ while (true) {
741
+ if (_upper < _lower) { break; }
742
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
743
+ if ( data[p] < _lexer_trans_keys[_mid]) {
744
+ _upper = _mid - 2;
745
+ } else if ( data[p] > _lexer_trans_keys[_mid+1]) {
746
+ _lower = _mid + 2;
747
+ } else {
748
+ _trans += ((_mid - _keys) >> 1);
749
+ _break_match = true;
750
+ break;
751
+ }
752
+ } /* while */
753
+ if (_break_match) { break; }
754
+ _trans += _klen
755
+ }
756
+ } while (false);
757
+ _trans = _lexer_indicies[_trans];
758
+ this.cs = _lexer_trans_targs[_trans];
759
+ if (_lexer_trans_actions[_trans] != 0) {
760
+ _acts = _lexer_trans_actions[_trans];
761
+ _nacts = _lexer_actions[_acts];
762
+ _acts += 1;
763
+ while (_nacts > 0) {
764
+ _nacts -= 1;
765
+ _acts += 1;
766
+ switch (_lexer_actions[_acts - 1]) {
767
+ case 0:
768
+ /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
769
+
770
+ this.content_start = p;
771
+ this.current_line = this.line_number;
772
+ this.start_col = p - this.last_newline - (this.keyword+':').length;
773
+ break;
774
+ case 1:
775
+ /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
776
+
777
+ this.current_line = this.line_number;
778
+ this.start_col = p - this.last_newline;
779
+ break;
780
+ case 2:
781
+ /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
782
+
783
+ this.content_start = p;
784
+ break;
785
+ case 3:
786
+ /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
787
+
788
+ var con = this.unindent(
789
+ this.start_col,
790
+ this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""')
791
+ );
792
+ this.emit('py_string', con, this.current_line);
793
+ break;
794
+ case 4:
795
+ /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
796
+
797
+ p = this.store_keyword_content('feature', data, p, eof);
798
+ break;
799
+ case 5:
800
+ /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
801
+
802
+ p = this.store_keyword_content('background', data, p, eof);
803
+ break;
804
+ case 6:
805
+ /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
806
+
807
+ p = this.store_keyword_content('scenario', data, p, eof);
808
+ break;
809
+ case 7:
810
+ /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
811
+
812
+ p = this.store_keyword_content('scenario_outline', data, p, eof);
813
+ break;
814
+ case 8:
815
+ /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
816
+
817
+ p = this.store_keyword_content('examples', data, p, eof);
818
+ break;
819
+ case 9:
820
+ /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
821
+
822
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
823
+ this.emit('step', this.keyword, con, this.current_line);
824
+ break;
825
+ case 10:
826
+ /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
827
+
828
+ console.log('TODO: store_comment_content');
829
+ break;
830
+ case 11:
831
+ /* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
832
+
833
+ console.log('TODO: store_tag_content');
834
+ break;
835
+ case 12:
836
+ /* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
837
+
838
+ this.line_number++;
839
+ break;
840
+ case 13:
841
+ /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
842
+
843
+ this.last_newline = p + 1;
844
+ break;
845
+ case 14:
846
+ /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
847
+
848
+ this.keyword_start = this.keyword_start || p;
849
+ break;
850
+ case 15:
851
+ /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
852
+
853
+ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, '');
854
+ this.keyword_start = null;
855
+ break;
856
+ case 16:
857
+ /* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
858
+
859
+ this.next_keyword_start = p;
860
+ break;
861
+ case 17:
862
+ /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
863
+
864
+ p = p - 1;
865
+ current_row = [];
866
+ this.current_line = this.line_number;
867
+ break;
868
+ case 18:
869
+ /* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
870
+
871
+ this.content_start = p;
872
+ break;
873
+ case 19:
874
+ /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
875
+
876
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
877
+ current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\"));
878
+ break;
879
+ case 20:
880
+ /* line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
881
+
882
+ this.emit('row', current_row, this.current_line);
883
+ break;
884
+ case 21:
885
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
886
+
887
+ console.log('TODO: end_feature');
888
+ break;
889
+ /* line 890 "js/lib/gherkin/lexer/i18n/lt.js" */
890
+ } /* action switch */
891
+ }
892
+ }
893
+ if (_trigger_goto) {
894
+ continue;
895
+ }
896
+ }
897
+ if (_goto_level <= _again) {
898
+ if ( this.cs == 0) {
899
+ _goto_level = _out;
900
+ continue;
901
+ }
902
+ p += 1;
903
+ if (p != pe) {
904
+ _goto_level = _resume;
905
+ continue;
906
+ }
907
+ }
908
+ if (_goto_level <= _test_eof) {
909
+ if (p == eof) {
910
+ __acts = _lexer_eof_actions[ this.cs];
911
+ __nacts = _lexer_actions[__acts];
912
+ __acts += 1;
913
+ while (__nacts > 0) {
914
+ __nacts -= 1;
915
+ __acts += 1;
916
+ switch (_lexer_actions[__acts - 1]) {
917
+ case 21:
918
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
919
+
920
+ console.log('TODO: end_feature');
921
+ break;
922
+ /* line 923 "js/lib/gherkin/lexer/i18n/lt.js" */
923
+ } /* eof action switch */
924
+ }
925
+ if (_trigger_goto) {
926
+ continue;
927
+ }
928
+ }
929
+ }
930
+ if (_goto_level <= _out) {
931
+ break;
932
+ }
933
+ }
934
+ }
935
+
936
+ /* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/lt.js.rl" */
937
+ };
938
+
939
+ Lexer.prototype.bytesToString = function(bytes) {
940
+ if(typeof bytes.write == 'function') {
941
+ // Node.js
942
+ return bytes.toString('utf-8');
943
+ } else {
944
+ var result = "";
945
+ for(var b in bytes) {
946
+ result += String.fromCharCode(bytes[b]);
947
+ }
948
+ return result;
949
+ }
950
+ }
951
+
952
+ Lexer.prototype.unindent = function(startcol, text) {
953
+ startcol = startcol || 0;
954
+ return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), '');
955
+ };
956
+
957
+ Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
958
+ var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
959
+ var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
960
+ var content_lines = content.split("\n")
961
+ var name = content_lines.shift() || "";
962
+ name = name.trim();
963
+ var description = content_lines.join("\n");
964
+ this.emit(event, this.keyword, name, description, this.current_line);
965
+ var nks = this.next_keyword_start;
966
+ this.next_keyword_start = null;
967
+ return nks ? nks - 1 : p;
968
+ };
969
+
970
+ exports.Lexer = Lexer;
971
+
972
+ })();