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