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