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