@pubid/pubid 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifact/corpus.json.gz +0 -0
- package/dist/flavors/ieee/index.js +136 -19
- package/dist/flavors/ieee/model.js +90 -34
- package/dist/flavors/ieee/preprocessor.js +46 -1
- package/package.json +2 -2
- package/vendor/parg/adobe.json +1 -1
- package/vendor/parg/aiee.json +1 -1
- package/vendor/parg/amca.json +1 -1
- package/vendor/parg/ansi.json +1 -1
- package/vendor/parg/api.json +1 -1
- package/vendor/parg/ashrae.json +1 -1
- package/vendor/parg/asme.json +1 -1
- package/vendor/parg/astm.json +1 -1
- package/vendor/parg/bipm.json +1 -1
- package/vendor/parg/bsi.json +1 -1
- package/vendor/parg/calconnect.json +1 -1
- package/vendor/parg/ccsds.json +1 -1
- package/vendor/parg/cen_cenelec.json +1 -1
- package/vendor/parg/cie.json +1 -1
- package/vendor/parg/csa.json +1 -1
- package/vendor/parg/doi.json +1 -1
- package/vendor/parg/easc.json +1 -1
- package/vendor/parg/ecma.json +1 -1
- package/vendor/parg/etsi.json +1 -1
- package/vendor/parg/evs.json +1 -1
- package/vendor/parg/gb.json +1 -1
- package/vendor/parg/gost.json +1 -1
- package/vendor/parg/iala.json +1 -1
- package/vendor/parg/iana.json +1 -1
- package/vendor/parg/idf.json +1 -1
- package/vendor/parg/iec.json +1 -1
- package/vendor/parg/ieee.json +1 -1
- package/vendor/parg/ietf.json +1 -1
- package/vendor/parg/ire.json +1 -1
- package/vendor/parg/isbn.json +1 -1
- package/vendor/parg/iso.json +1 -1
- package/vendor/parg/itu.json +1 -1
- package/vendor/parg/jcgm.json +1 -1
- package/vendor/parg/jis.json +1 -1
- package/vendor/parg/nesc.json +1 -1
- package/vendor/parg/nist.json +1 -1
- package/vendor/parg/oasis.json +1 -1
- package/vendor/parg/ogc.json +1 -1
- package/vendor/parg/oiml.json +1 -1
- package/vendor/parg/omg.json +1 -1
- package/vendor/parg/parg.json +1 -1
- package/vendor/parg/plateau.json +1 -1
- package/vendor/parg/sae.json +1 -1
- package/vendor/parg/tgpp.json +1 -1
- package/vendor/parg/un.json +1 -1
- package/vendor/parg/w3c.json +1 -1
- package/vendor/parg/xsf.json +1 -1
package/vendor/parg/gb.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidGb","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":23}},{"Str":{"pattern":"T/"}},{"Entity":{"atom":5}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[3,4]}},{"Repetition":{"atom":2,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[1,6]}},{"Str":{"pattern":"GBn"}},{"Str":{"pattern":"/T"}},{"Str":{"pattern":"/Z"}},{"Alternative":{"atoms":[9,10]}},{"Repetition":{"atom":11,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[8,12]}},{"Entity":{"atom":15}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":14,"min":1,"max":3,"tag":"Repetition"}},{"Str":{"pattern":"/T"}},{"Str":{"pattern":"/Z"}},{"Alternative":{"atoms":[17,18]}},{"Repetition":{"atom":19,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[16,20]}},{"Alternative":{"atoms":[7,13,21]}},{"Named":{"name":"publisher_code","atom":22}},{"Entity":{"atom":25}},{"Str":{"pattern":" "}},{"Entity":{"atom":27}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":28}},{"Str":{"pattern":"."}},{"Entity":{"atom":27}},{"Repetition":{"atom":31,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":32}},{"Sequence":{"atoms":[30,33]}},{"Repetition":{"atom":34,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"—"}},{"Alternative":{"atoms":[37,38]}},{"Entity":{"atom":27}},{"Repetition":{"atom":40,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":41}},{"Sequence":{"atoms":[36,42]}},{"Repetition":{"atom":43,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" ("}},{"Entity":{"atom":47}},{"Str":{"pattern":"all parts"}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[45,46,48]}},{"Repetition":{"atom":49,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[0,24,29,35,44,50]}}],"root":51},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":[]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"GB/T 19001-2016","expect":{}},{"entry":"identifier","kind":"accept","input":"GB 4943","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/gb/parser.rb — Chinese standard identifiers.\n# publisher_code order is load-bearing: the social-group form, then the\n# confidential GBn series (lowercase n is part of the code), then the\n# general 1-3-letter code. The year separator is ASCII dash or the\n# Chinese typographic em-dash.\n\ngrammar PubidGb version \"0.1.0\" {\n publisher_code = ((\"T/\" 1*upper_digit) / (\"GBn\" [\"/T\" / \"/Z\"]) / (1*3upper [\"/T\" / \"/Z\"])) as publisher_code\n identifier = publisher_code space (1*digit) as number [(\".\" (1*digit) as part)] [(dash (4digit) as year)] [(\" (\" all_parts_text \")\")]\n all_parts_text = \"all parts\"\n upper = %x41-5A\n upper_digit = %x41-5A / %x30-39\n dash = \"-\" / \"—\"\n space = \" \"\n digit = %x30-39\n entry identifier: identifier\n\n test {\n accept \"GB/T 19001-2016\"\n accept \"GB 4943\"\n reject \"nonsense\"\n }\n}\n","checksum":"sha256:
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidGb","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":23}},{"Str":{"pattern":"T/"}},{"Entity":{"atom":5}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[3,4]}},{"Repetition":{"atom":2,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[1,6]}},{"Str":{"pattern":"GBn"}},{"Str":{"pattern":"/T"}},{"Str":{"pattern":"/Z"}},{"Alternative":{"atoms":[9,10]}},{"Repetition":{"atom":11,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[8,12]}},{"Entity":{"atom":15}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":14,"min":1,"max":3,"tag":"Repetition"}},{"Str":{"pattern":"/T"}},{"Str":{"pattern":"/Z"}},{"Alternative":{"atoms":[17,18]}},{"Repetition":{"atom":19,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[16,20]}},{"Alternative":{"atoms":[7,13,21]}},{"Named":{"name":"publisher_code","atom":22}},{"Entity":{"atom":25}},{"Str":{"pattern":" "}},{"Entity":{"atom":27}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":28}},{"Str":{"pattern":"."}},{"Entity":{"atom":27}},{"Repetition":{"atom":31,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":32}},{"Sequence":{"atoms":[30,33]}},{"Repetition":{"atom":34,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"—"}},{"Alternative":{"atoms":[37,38]}},{"Entity":{"atom":27}},{"Repetition":{"atom":40,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":41}},{"Sequence":{"atoms":[36,42]}},{"Repetition":{"atom":43,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" ("}},{"Entity":{"atom":47}},{"Str":{"pattern":"all parts"}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[45,46,48]}},{"Repetition":{"atom":49,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[0,24,29,35,44,50]}}],"root":51},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":[]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"GB/T 19001-2016","expect":{}},{"entry":"identifier","kind":"accept","input":"GB 4943","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/gb/parser.rb — Chinese standard identifiers.\n# publisher_code order is load-bearing: the social-group form, then the\n# confidential GBn series (lowercase n is part of the code), then the\n# general 1-3-letter code. The year separator is ASCII dash or the\n# Chinese typographic em-dash.\n\ngrammar PubidGb version \"0.1.0\" {\n publisher_code = ((\"T/\" 1*upper_digit) / (\"GBn\" [\"/T\" / \"/Z\"]) / (1*3upper [\"/T\" / \"/Z\"])) as publisher_code\n identifier = publisher_code space (1*digit) as number [(\".\" (1*digit) as part)] [(dash (4digit) as year)] [(\" (\" all_parts_text \")\")]\n all_parts_text = \"all parts\"\n upper = %x41-5A\n upper_digit = %x41-5A / %x30-39\n dash = \"-\" / \"—\"\n space = \" \"\n digit = %x30-39\n entry identifier: identifier\n\n test {\n accept \"GB/T 19001-2016\"\n accept \"GB 4943\"\n reject \"nonsense\"\n }\n}\n","source_hash":"f8363c298b72bdaaf8179332b2c79d5a77ffe3cd592a41c3af03eb0f31563fd0","compiler_version":"1.3.93","checksum":"sha256:0636aa9b40f8b9455a25e573f77b6054c65b5f196b7eec7a6bd7203a8353a8c3"}
|
package/vendor/parg/gost.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidGost","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":7}},{"Str":{"pattern":"GOST"}},{"Str":{"pattern":"ГОСТ"}},{"Alternative":{"atoms":[1,2]}},{"Named":{"name":"gost_word","atom":3}},{"Entity":{"atom":6}},{"Str":{"pattern":" "}},{"Sequence":{"atoms":[4,5]}},{"Entity":{"atom":14}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"Р"}},{"Alternative":{"atoms":[9,10]}},{"Named":{"name":"scope_r","atom":11}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[12,13]}},{"Repetition":{"atom":8,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":33}},{"Entity":{"atom":23}},{"Re":{"pattern":"[\\u0410-\\u042f]"}},{"Re":{"pattern":"[\\u0430-\\u044f]"}},{"Re":{"pattern":"[/]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Alternative":{"atoms":[18,19,20,21,22]}},{"Repetition":{"atom":17,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":6}},{"Entity":{"atom":23}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[25,27]}},{"Repetition":{"atom":28,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[24,29]}},{"Named":{"name":"prefix_text","atom":30}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[31,32]}},{"Repetition":{"atom":16,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":55}},{"Entity":{"atom":37}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":40}},{"Str":{"pattern":"."}},{"Entity":{"atom":46}},{"Entity":{"atom":43}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"—"}},{"Str":{"pattern":"–"}},{"Alternative":{"atoms":[42,44,45]}},{"Alternative":{"atoms":[39,41]}},{"Entity":{"atom":6}},{"Repetition":{"atom":48,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Repetition":{"atom":50,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[47,49,51]}},{"Repetition":{"atom":52,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[38,53]}},{"Named":{"name":"raw","atom":54}},{"Entity":{"atom":68}},{"Entity":{"atom":6}},{"Repetition":{"atom":57,"min":0,"max":1,"tag":"Maybe"}},{"Repetition":{"atom":58,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":61}},{"Str":{"pattern":"/"}},{"Entity":{"atom":65}},{"Re":{"pattern":"[\\x01-\\x09]"}},{"Re":{"pattern":"[\\x0b-\\u{10ffff}]"}},{"Alternative":{"atoms":[63,64]}},{"Repetition":{"atom":62,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"adopted_raw","atom":66}},{"Sequence":{"atoms":[59,60,67]}},{"Repetition":{"atom":56,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":82}},{"Entity":{"atom":6}},{"Repetition":{"atom":71,"min":0,"max":1,"tag":"Maybe"}},{"Repetition":{"atom":72,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"("}},{"Entity":{"atom":78}},{"Re":{"pattern":"[\\x01-\\x28]"}},{"Re":{"pattern":"[\\x2a-\\u{10ffff}]"}},{"Alternative":{"atoms":[76,77]}},{"Repetition":{"atom":75,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"adopted_reference_raw","atom":79}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[73,74,80,81]}},{"Repetition":{"atom":70,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[0,15,34,35,69,83]}}],"root":84},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule year_sep_core: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule any_noln_char: branches 1 and 2 are order-dependent (first set not statically known)","rule no_rparen_char: branches 1 and 2 are order-dependent (first set not statically known)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"GOST 12.0.004","expect":{}},{"entry":"identifier","kind":"accept","input":"GOST R 8.568","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/gost/parser.rb — GOST identifiers in Latin and\n# Cyrillic: ГОСТ [Р|R] [copublisher/subtype] <raw>[/adopted|(reference)].\n# prefix_text and raw are captured verbatim; the builder splits them.\n# The Cyrillic character class uses codepoint ranges (%x0410-042F\n# = А-Я, %x0430-044F = а-я), faithful to the source class.\n\ngrammar PubidGost version \"0.1.0\" {\n gost_word = (\"GOST\" / \"ГОСТ\") as gost_word space\n scope_r = (\"R\" / \"Р\") as scope_r space\n prefix_char = %x0410-042F / %x0430-044F / %x2F / %x41-5A / %x61-7A\n prefix_text = (1*prefix_char *(space 1*prefix_char)) as prefix_text space\n raw_body = (1*digit *((dot / year_sep_core) [space] 1*digit)) as raw\n year_sep_core = dash / \"—\" / \"–\"\n adopted_part = [[space]] slash (1*any_noln_char) as adopted_raw\n adopted_reference_part = [[space]] \"(\" (1*no_rparen_char) as adopted_reference_raw \")\"\n identifier = gost_word [scope_r] [prefix_text] raw_body [adopted_part] [adopted_reference_part]\n any_noln_char = %x01-09 / %x0B-10FFFF\n no_rparen_char = %x01-28 / %x2A-10FFFF\n digit = %x30-39\n dot = \".\"\n dash = \"-\"\n slash = \"/\"\n space = \" \"\n entry identifier: identifier\n\n test {\n accept \"GOST 12.0.004\"\n accept \"GOST R 8.568\"\n reject \"nonsense\"\n }\n}\n","checksum":"sha256:
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidGost","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":7}},{"Str":{"pattern":"GOST"}},{"Str":{"pattern":"ГОСТ"}},{"Alternative":{"atoms":[1,2]}},{"Named":{"name":"gost_word","atom":3}},{"Entity":{"atom":6}},{"Str":{"pattern":" "}},{"Sequence":{"atoms":[4,5]}},{"Entity":{"atom":14}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"Р"}},{"Alternative":{"atoms":[9,10]}},{"Named":{"name":"scope_r","atom":11}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[12,13]}},{"Repetition":{"atom":8,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":33}},{"Entity":{"atom":23}},{"Re":{"pattern":"[\\u0410-\\u042f]"}},{"Re":{"pattern":"[\\u0430-\\u044f]"}},{"Re":{"pattern":"[/]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Alternative":{"atoms":[18,19,20,21,22]}},{"Repetition":{"atom":17,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":6}},{"Entity":{"atom":23}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[25,27]}},{"Repetition":{"atom":28,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[24,29]}},{"Named":{"name":"prefix_text","atom":30}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[31,32]}},{"Repetition":{"atom":16,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":55}},{"Entity":{"atom":37}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":40}},{"Str":{"pattern":"."}},{"Entity":{"atom":46}},{"Entity":{"atom":43}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"—"}},{"Str":{"pattern":"–"}},{"Alternative":{"atoms":[42,44,45]}},{"Alternative":{"atoms":[39,41]}},{"Entity":{"atom":6}},{"Repetition":{"atom":48,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Repetition":{"atom":50,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[47,49,51]}},{"Repetition":{"atom":52,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[38,53]}},{"Named":{"name":"raw","atom":54}},{"Entity":{"atom":68}},{"Entity":{"atom":6}},{"Repetition":{"atom":57,"min":0,"max":1,"tag":"Maybe"}},{"Repetition":{"atom":58,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":61}},{"Str":{"pattern":"/"}},{"Entity":{"atom":65}},{"Re":{"pattern":"[\\x01-\\x09]"}},{"Re":{"pattern":"[\\x0b-\\u{10ffff}]"}},{"Alternative":{"atoms":[63,64]}},{"Repetition":{"atom":62,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"adopted_raw","atom":66}},{"Sequence":{"atoms":[59,60,67]}},{"Repetition":{"atom":56,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":82}},{"Entity":{"atom":6}},{"Repetition":{"atom":71,"min":0,"max":1,"tag":"Maybe"}},{"Repetition":{"atom":72,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"("}},{"Entity":{"atom":78}},{"Re":{"pattern":"[\\x01-\\x28]"}},{"Re":{"pattern":"[\\x2a-\\u{10ffff}]"}},{"Alternative":{"atoms":[76,77]}},{"Repetition":{"atom":75,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"adopted_reference_raw","atom":79}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[73,74,80,81]}},{"Repetition":{"atom":70,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[0,15,34,35,69,83]}}],"root":84},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule year_sep_core: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule any_noln_char: branches 1 and 2 are order-dependent (first set not statically known)","rule no_rparen_char: branches 1 and 2 are order-dependent (first set not statically known)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"GOST 12.0.004","expect":{}},{"entry":"identifier","kind":"accept","input":"GOST R 8.568","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/gost/parser.rb — GOST identifiers in Latin and\n# Cyrillic: ГОСТ [Р|R] [copublisher/subtype] <raw>[/adopted|(reference)].\n# prefix_text and raw are captured verbatim; the builder splits them.\n# The Cyrillic character class uses codepoint ranges (%x0410-042F\n# = А-Я, %x0430-044F = а-я), faithful to the source class.\n\ngrammar PubidGost version \"0.1.0\" {\n gost_word = (\"GOST\" / \"ГОСТ\") as gost_word space\n scope_r = (\"R\" / \"Р\") as scope_r space\n prefix_char = %x0410-042F / %x0430-044F / %x2F / %x41-5A / %x61-7A\n prefix_text = (1*prefix_char *(space 1*prefix_char)) as prefix_text space\n raw_body = (1*digit *((dot / year_sep_core) [space] 1*digit)) as raw\n year_sep_core = dash / \"—\" / \"–\"\n adopted_part = [[space]] slash (1*any_noln_char) as adopted_raw\n adopted_reference_part = [[space]] \"(\" (1*no_rparen_char) as adopted_reference_raw \")\"\n identifier = gost_word [scope_r] [prefix_text] raw_body [adopted_part] [adopted_reference_part]\n any_noln_char = %x01-09 / %x0B-10FFFF\n no_rparen_char = %x01-28 / %x2A-10FFFF\n digit = %x30-39\n dot = \".\"\n dash = \"-\"\n slash = \"/\"\n space = \" \"\n entry identifier: identifier\n\n test {\n accept \"GOST 12.0.004\"\n accept \"GOST R 8.568\"\n reject \"nonsense\"\n }\n}\n","source_hash":"bc4461efe1d38cccf66f1c2bc75e5d8001916e27a95c365c9a397c9ac7cfda3f","compiler_version":"1.3.93","checksum":"sha256:2344feb986fa3cdb5d651b9de33a3e607cfdd22a69d398a3e2b97793049f95ef"}
|
package/vendor/parg/iala.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidIala","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":100}},{"Entity":{"atom":3}},{"Str":{"pattern":"IALA "}},{"Repetition":{"atom":2,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":16}},{"Str":{"pattern":"GA"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"G"}},{"Str":{"pattern":"M"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"L"}},{"Str":{"pattern":"X"}},{"Str":{"pattern":"P"}},{"Alternative":{"atoms":[5,6,7,8,9,10,11,12,13,14]}},{"Named":{"name":"type_letter","atom":15}},{"Entity":{"atom":30}},{"Entity":{"atom":22}},{"Entity":{"atom":20}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":19,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":21}},{"Entity":{"atom":27}},{"Str":{"pattern":"."}},{"Entity":{"atom":20}},{"Repetition":{"atom":25,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[24,26]}},{"Repetition":{"atom":23,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number_dots","atom":28}},{"Sequence":{"atoms":[18,29]}},{"Entity":{"atom":39}},{"Entity":{"atom":33}},{"Str":{"pattern":"-"}},{"Entity":{"atom":20}},{"Repetition":{"atom":34,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subpart_number","atom":35}},{"Sequence":{"atoms":[32,36]}},{"Repetition":{"atom":37,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subpart","atom":38}},{"Repetition":{"atom":31,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,4,17,40]}},{"Named":{"name":"base","atom":41}},{"Entity":{"atom":44}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Annex"}},{"Str":{"pattern":"ANNEX"}},{"Alternative":{"atoms":[45,46]}},{"Named":{"name":"annex_marker","atom":47}},{"Entity":{"atom":44}},{"Entity":{"atom":51}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"annex_letter","atom":50}},{"Entity":{"atom":54}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Lookahead":{"atom":53,"positive":false}},{"Sequence":{"atoms":[49,52,55]}},{"Repetition":{"atom":56,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":74}},{"Entity":{"atom":44}},{"Str":{"pattern":"Ed"}},{"Entity":{"atom":44}},{"Entity":{"atom":72}},{"Entity":{"atom":20}},{"Repetition":{"atom":63,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":66}},{"Str":{"pattern":"."}},{"Entity":{"atom":20}},{"Repetition":{"atom":67,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[65,68]}},{"Repetition":{"atom":69,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[64,70]}},{"Named":{"name":"edition_value","atom":71}},{"Sequence":{"atoms":[59,60,61,62]}},{"Named":{"name":"edition","atom":73}},{"Entity":{"atom":81}},{"Entity":{"atom":77}},{"Str":{"pattern":":"}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":72}},{"Sequence":{"atoms":[76,78,79]}},{"Named":{"name":"edition","atom":80}},{"Alternative":{"atoms":[58,75]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":98}},{"Entity":{"atom":44}},{"Repetition":{"atom":85,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"("}},{"Str":{"pattern":"E"}},{"Str":{"pattern":"F"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"R"}},{"Alternative":{"atoms":[88,89,90,91,92,93]}},{"Named":{"name":"language","atom":94}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[86,87,95,96]}},{"Named":{"name":"language_group","atom":97}},{"Repetition":{"atom":84,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[42,43,48,57,83,99]}},{"Entity":{"atom":3}},{"Entity":{"atom":107}},{"Entity":{"atom":16}},{"Entity":{"atom":30}},{"Entity":{"atom":39}},{"Repetition":{"atom":105,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[103,104,106]}},{"Entity":{"atom":74}},{"Entity":{"atom":81}},{"Alternative":{"atoms":[108,109]}},{"Repetition":{"atom":110,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":98}},{"Repetition":{"atom":112,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[101,102,111,113]}},{"Alternative":{"atoms":[0,114]}}],"root":115},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"G1040","expect":{}},{"entry":"identifier","kind":"accept","input":"GA1040","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/iala/parser.rb: [IALA ]<type><number>[.dots][-subs]\n# [ Ed X.Y | :edX.Y] [(L)], plus the Annex-to-base form. The annex\n# letter guard (!lower) keeps \"Ed 1\" from mis-capturing.\n\ngrammar PubidIala version \"0.1.0\" {\n type_letter = (\"GA\" / \"S\" / \"R\" / \"G\" / \"M\" / \"C\" / \"A\" / \"L\" / \"X\" / \"P\") as type_letter\n doc_number = (1*digit) as doc_number\n dotted_number = \".\" 1*digit\n number_with_dots = doc_number (*dotted_number) as doc_number_dots\n subpart = (1*(dash (1*digit) as subpart_number)) as subpart\n code = type_letter number_with_dots [subpart]\n edition_value = (1*digit *(dot 1*digit)) as edition_value\n edition_human = (space \"Ed\" space edition_value) as edition\n edition_compact = (colon \"ed\" edition_value) as edition\n language_group = ([space] \"(\" (\"E\" / \"F\" / \"S\" / \"C\" / \"A\" / \"R\") as language \")\") as language_group\n annex_identifier = ((publisher type_letter number_with_dots [subpart]) as base) space (\"Annex\" / \"ANNEX\") as annex_marker [(space upper as annex_letter !lower)] [edition_human / edition_compact] [language_group]\n identifier = annex_identifier / (publisher code [edition_human / edition_compact] [language_group])\n publisher = [\"IALA \"]\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n dash = \"-\"\n colon = \":\"\n dot = \".\"\n space = \" \"\n entry identifier: identifier\n\n test {\n accept \"G1040\"\n accept \"GA1040\"\n reject \"nonsense\"\n }\n}\n","checksum":"sha256:
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidIala","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":100}},{"Entity":{"atom":3}},{"Str":{"pattern":"IALA "}},{"Repetition":{"atom":2,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":16}},{"Str":{"pattern":"GA"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"G"}},{"Str":{"pattern":"M"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"L"}},{"Str":{"pattern":"X"}},{"Str":{"pattern":"P"}},{"Alternative":{"atoms":[5,6,7,8,9,10,11,12,13,14]}},{"Named":{"name":"type_letter","atom":15}},{"Entity":{"atom":30}},{"Entity":{"atom":22}},{"Entity":{"atom":20}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":19,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":21}},{"Entity":{"atom":27}},{"Str":{"pattern":"."}},{"Entity":{"atom":20}},{"Repetition":{"atom":25,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[24,26]}},{"Repetition":{"atom":23,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number_dots","atom":28}},{"Sequence":{"atoms":[18,29]}},{"Entity":{"atom":39}},{"Entity":{"atom":33}},{"Str":{"pattern":"-"}},{"Entity":{"atom":20}},{"Repetition":{"atom":34,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subpart_number","atom":35}},{"Sequence":{"atoms":[32,36]}},{"Repetition":{"atom":37,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subpart","atom":38}},{"Repetition":{"atom":31,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,4,17,40]}},{"Named":{"name":"base","atom":41}},{"Entity":{"atom":44}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Annex"}},{"Str":{"pattern":"ANNEX"}},{"Alternative":{"atoms":[45,46]}},{"Named":{"name":"annex_marker","atom":47}},{"Entity":{"atom":44}},{"Entity":{"atom":51}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"annex_letter","atom":50}},{"Entity":{"atom":54}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Lookahead":{"atom":53,"positive":false}},{"Sequence":{"atoms":[49,52,55]}},{"Repetition":{"atom":56,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":74}},{"Entity":{"atom":44}},{"Str":{"pattern":"Ed"}},{"Entity":{"atom":44}},{"Entity":{"atom":72}},{"Entity":{"atom":20}},{"Repetition":{"atom":63,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":66}},{"Str":{"pattern":"."}},{"Entity":{"atom":20}},{"Repetition":{"atom":67,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[65,68]}},{"Repetition":{"atom":69,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[64,70]}},{"Named":{"name":"edition_value","atom":71}},{"Sequence":{"atoms":[59,60,61,62]}},{"Named":{"name":"edition","atom":73}},{"Entity":{"atom":81}},{"Entity":{"atom":77}},{"Str":{"pattern":":"}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":72}},{"Sequence":{"atoms":[76,78,79]}},{"Named":{"name":"edition","atom":80}},{"Alternative":{"atoms":[58,75]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":98}},{"Entity":{"atom":44}},{"Repetition":{"atom":85,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"("}},{"Str":{"pattern":"E"}},{"Str":{"pattern":"F"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"R"}},{"Alternative":{"atoms":[88,89,90,91,92,93]}},{"Named":{"name":"language","atom":94}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[86,87,95,96]}},{"Named":{"name":"language_group","atom":97}},{"Repetition":{"atom":84,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[42,43,48,57,83,99]}},{"Entity":{"atom":3}},{"Entity":{"atom":107}},{"Entity":{"atom":16}},{"Entity":{"atom":30}},{"Entity":{"atom":39}},{"Repetition":{"atom":105,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[103,104,106]}},{"Entity":{"atom":74}},{"Entity":{"atom":81}},{"Alternative":{"atoms":[108,109]}},{"Repetition":{"atom":110,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":98}},{"Repetition":{"atom":112,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[101,102,111,113]}},{"Alternative":{"atoms":[0,114]}}],"root":115},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"G1040","expect":{}},{"entry":"identifier","kind":"accept","input":"GA1040","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/iala/parser.rb: [IALA ]<type><number>[.dots][-subs]\n# [ Ed X.Y | :edX.Y] [(L)], plus the Annex-to-base form. The annex\n# letter guard (!lower) keeps \"Ed 1\" from mis-capturing.\n\ngrammar PubidIala version \"0.1.0\" {\n type_letter = (\"GA\" / \"S\" / \"R\" / \"G\" / \"M\" / \"C\" / \"A\" / \"L\" / \"X\" / \"P\") as type_letter\n doc_number = (1*digit) as doc_number\n dotted_number = \".\" 1*digit\n number_with_dots = doc_number (*dotted_number) as doc_number_dots\n subpart = (1*(dash (1*digit) as subpart_number)) as subpart\n code = type_letter number_with_dots [subpart]\n edition_value = (1*digit *(dot 1*digit)) as edition_value\n edition_human = (space \"Ed\" space edition_value) as edition\n edition_compact = (colon \"ed\" edition_value) as edition\n language_group = ([space] \"(\" (\"E\" / \"F\" / \"S\" / \"C\" / \"A\" / \"R\") as language \")\") as language_group\n annex_identifier = ((publisher type_letter number_with_dots [subpart]) as base) space (\"Annex\" / \"ANNEX\") as annex_marker [(space upper as annex_letter !lower)] [edition_human / edition_compact] [language_group]\n identifier = annex_identifier / (publisher code [edition_human / edition_compact] [language_group])\n publisher = [\"IALA \"]\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n dash = \"-\"\n colon = \":\"\n dot = \".\"\n space = \" \"\n entry identifier: identifier\n\n test {\n accept \"G1040\"\n accept \"GA1040\"\n reject \"nonsense\"\n }\n}\n","source_hash":"21d282f6ed3a1c0ac8a3a3240beed0cb4f0942f09f1e76be2103a2093b9453bd","compiler_version":"1.3.93","checksum":"sha256:69f6e8a2a70f9c9211fffc2833037eff92ae312cce7d5e45f69dd7e9f7832867"}
|
package/vendor/parg/iana.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidIana","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Str":{"pattern":"IANA "}},{"Repetition":{"atom":0,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":11}},{"Entity":{"atom":10}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[.]"}},{"Re":{"pattern":"[_]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[4,5,6,7,8,9]}},{"Repetition":{"atom":3,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"registry","atom":2}},{"Entity":{"atom":14}},{"Str":{"pattern":"/"}},{"Entity":{"atom":11}},{"Named":{"name":"sub_registry","atom":15}},{"Sequence":{"atoms":[13,16]}},{"Repetition":{"atom":17,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,12,18]}}],"root":19},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":[]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"IANA media-types","expect":{}},{"entry":"identifier","kind":"accept","input":"media-types/application","expect":{}},{"entry":"identifier","kind":"reject","input":"no sense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/iana/parser.rb: \"IANA <slug>[/<sub-slug>]\", the\n# optional prefix consumed and discarded.\n\ngrammar PubidIana version \"0.1.0\" {\n slug_char = %x30-39 / %x41-5A / %x61-7A / %x2E / %x5F / %x2D\n slug = 1*slug_char\n identifier = [\"IANA \"] slug as registry [slash slug as sub_registry]\n slash = \"/\"\n entry identifier: identifier\n\n test {\n accept \"IANA media-types\"\n accept \"media-types/application\"\n reject \"no sense\"\n }\n}\n","checksum":"sha256:
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidIana","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Str":{"pattern":"IANA "}},{"Repetition":{"atom":0,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":11}},{"Entity":{"atom":10}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[.]"}},{"Re":{"pattern":"[_]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[4,5,6,7,8,9]}},{"Repetition":{"atom":3,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"registry","atom":2}},{"Entity":{"atom":14}},{"Str":{"pattern":"/"}},{"Entity":{"atom":11}},{"Named":{"name":"sub_registry","atom":15}},{"Sequence":{"atoms":[13,16]}},{"Repetition":{"atom":17,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,12,18]}}],"root":19},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":[]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"IANA media-types","expect":{}},{"entry":"identifier","kind":"accept","input":"media-types/application","expect":{}},{"entry":"identifier","kind":"reject","input":"no sense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/iana/parser.rb: \"IANA <slug>[/<sub-slug>]\", the\n# optional prefix consumed and discarded.\n\ngrammar PubidIana version \"0.1.0\" {\n slug_char = %x30-39 / %x41-5A / %x61-7A / %x2E / %x5F / %x2D\n slug = 1*slug_char\n identifier = [\"IANA \"] slug as registry [slash slug as sub_registry]\n slash = \"/\"\n entry identifier: identifier\n\n test {\n accept \"IANA media-types\"\n accept \"media-types/application\"\n reject \"no sense\"\n }\n}\n","source_hash":"dda303d728e294b1de4c21739472aa0be410e688f6a091edfde8bf383f57fbe2","compiler_version":"1.3.93","checksum":"sha256:bb231355167ad8ab16f6c83a4727e0f0d9e3b7cc9b002fc27cbc9ee032063473"}
|
package/vendor/parg/idf.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidIdf","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":169}},{"Entity":{"atom":135}},{"Entity":{"atom":120}},{"Entity":{"atom":5}},{"Str":{"pattern":"IDF"}},{"Named":{"name":"publisher","atom":4}},{"Entity":{"atom":7}},{"Str":{"pattern":" "}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":10}},{"Str":{"pattern":"/"}},{"Repetition":{"atom":9,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":48}},{"Str":{"pattern":"AWI RM"}},{"Str":{"pattern":"PRF RM"}},{"Str":{"pattern":"PWI RM"}},{"Str":{"pattern":"CD RM"}},{"Str":{"pattern":"NP RM"}},{"Str":{"pattern":"WD RM"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"FDRM"}},{"Str":{"pattern":"NWIP"}},{"Str":{"pattern":"PDRM"}},{"Str":{"pattern":"WDAR"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"AWI"}},{"Str":{"pattern":"COR"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DRM"}},{"Str":{"pattern":"FCD"}},{"Str":{"pattern":"FPD"}},{"Str":{"pattern":"Fpr"}},{"Str":{"pattern":"PRF"}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"WDA"}},{"Str":{"pattern":"WDR"}},{"Str":{"pattern":"CD"}},{"Str":{"pattern":"NP"}},{"Str":{"pattern":"RM"}},{"Str":{"pattern":"WD"}},{"Alternative":{"atoms":[13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]}},{"Named":{"name":"type_with_stage","atom":40}},{"Entity":{"atom":43}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Named":{"name":"stage_iteration","atom":42}},{"Entity":{"atom":7}},{"Sequence":{"atoms":[44,45]}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[41,47]}},{"Repetition":{"atom":12,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":7}},{"Repetition":{"atom":50,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Entity":{"atom":80}},{"Entity":{"atom":61}},{"Entity":{"atom":60}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[_]"}},{"Alternative":{"atoms":[56,57,58,59]}},{"Repetition":{"atom":55,"min":1,"max":5,"tag":"Repetition"}},{"Entity":{"atom":77}},{"Entity":{"atom":67}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"‑"}},{"Str":{"pattern":"‐"}},{"Alternative":{"atoms":[64,65,66]}},{"Entity":{"atom":7}},{"Repetition":{"atom":68,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":60}},{"Repetition":{"atom":70,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":67}},{"Entity":{"atom":60}},{"Repetition":{"atom":73,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[72,74]}},{"Repetition":{"atom":75,"min":0,"max":1,"tag":"Repetition"}},{"Sequence":{"atoms":[63,69,71,76]}},{"Repetition":{"atom":62,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[54,78]}},{"Named":{"name":"number_with_part","atom":79}},{"Entity":{"atom":86}},{"Entity":{"atom":83}},{"Str":{"pattern":"."}},{"Entity":{"atom":43}},{"Named":{"name":"stage_iteration","atom":84}},{"Sequence":{"atoms":[82,85]}},{"Repetition":{"atom":81,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":7}},{"Repetition":{"atom":88,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":91}},{"Str":{"pattern":":"}},{"Entity":{"atom":116}},{"Entity":{"atom":102}},{"Entity":{"atom":97}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[95,96]}},{"Entity":{"atom":43}},{"Repetition":{"atom":98,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":43}},{"Lookahead":{"atom":100,"positive":false}},{"Sequence":{"atoms":[94,99,101]}},{"Entity":{"atom":67}},{"Entity":{"atom":106}},{"Entity":{"atom":43}},{"Repetition":{"atom":105,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[103,104]}},{"Repetition":{"atom":107,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":67}},{"Entity":{"atom":112}},{"Entity":{"atom":43}},{"Repetition":{"atom":111,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[109,110]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[93,108,114]}},{"Named":{"name":"date","atom":115}},{"Sequence":{"atoms":[90,92]}},{"Repetition":{"atom":117,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[53,87,89,118]}},{"Sequence":{"atoms":[3,8,11,49,51,52]}},{"Named":{"name":"base","atom":2}},{"Entity":{"atom":7}},{"Repetition":{"atom":122,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":10}},{"Entity":{"atom":7}},{"Repetition":{"atom":125,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":131}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"COR"}},{"Alternative":{"atoms":[128,129]}},{"Named":{"name":"type_with_stage","atom":130}},{"Entity":{"atom":7}},{"Repetition":{"atom":132,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Sequence":{"atoms":[121,123,124,126,127,133,134]}},{"Entity":{"atom":168}},{"Entity":{"atom":7}},{"Repetition":{"atom":137,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":162}},{"Str":{"pattern":"("}},{"Entity":{"atom":142}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":141,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[143,145]}},{"Entity":{"atom":154}},{"Re":{"pattern":"[E]"}},{"Re":{"pattern":"[F]"}},{"Re":{"pattern":"[A]"}},{"Re":{"pattern":"[R]"}},{"Re":{"pattern":"[D]"}},{"Re":{"pattern":"[S]"}},{"Alternative":{"atoms":[148,149,150,151,152,153]}},{"Entity":{"atom":10}},{"Repetition":{"atom":155,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[147,156]}},{"Alternative":{"atoms":[146,157]}},{"
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidIdf","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":169}},{"Entity":{"atom":135}},{"Entity":{"atom":120}},{"Entity":{"atom":5}},{"Str":{"pattern":"IDF"}},{"Named":{"name":"publisher","atom":4}},{"Entity":{"atom":7}},{"Str":{"pattern":" "}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":10}},{"Str":{"pattern":"/"}},{"Repetition":{"atom":9,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":48}},{"Str":{"pattern":"AWI RM"}},{"Str":{"pattern":"PRF RM"}},{"Str":{"pattern":"PWI RM"}},{"Str":{"pattern":"CD RM"}},{"Str":{"pattern":"NP RM"}},{"Str":{"pattern":"WD RM"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"FDRM"}},{"Str":{"pattern":"NWIP"}},{"Str":{"pattern":"PDRM"}},{"Str":{"pattern":"WDAR"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"AWI"}},{"Str":{"pattern":"COR"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DRM"}},{"Str":{"pattern":"FCD"}},{"Str":{"pattern":"FPD"}},{"Str":{"pattern":"Fpr"}},{"Str":{"pattern":"PRF"}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"WDA"}},{"Str":{"pattern":"WDR"}},{"Str":{"pattern":"CD"}},{"Str":{"pattern":"NP"}},{"Str":{"pattern":"RM"}},{"Str":{"pattern":"WD"}},{"Alternative":{"atoms":[13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]}},{"Named":{"name":"type_with_stage","atom":40}},{"Entity":{"atom":43}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Named":{"name":"stage_iteration","atom":42}},{"Entity":{"atom":7}},{"Sequence":{"atoms":[44,45]}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[41,47]}},{"Repetition":{"atom":12,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":7}},{"Repetition":{"atom":50,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Entity":{"atom":80}},{"Entity":{"atom":61}},{"Entity":{"atom":60}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[_]"}},{"Alternative":{"atoms":[56,57,58,59]}},{"Repetition":{"atom":55,"min":1,"max":5,"tag":"Repetition"}},{"Entity":{"atom":77}},{"Entity":{"atom":67}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"‑"}},{"Str":{"pattern":"‐"}},{"Alternative":{"atoms":[64,65,66]}},{"Entity":{"atom":7}},{"Repetition":{"atom":68,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":60}},{"Repetition":{"atom":70,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":67}},{"Entity":{"atom":60}},{"Repetition":{"atom":73,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[72,74]}},{"Repetition":{"atom":75,"min":0,"max":1,"tag":"Repetition"}},{"Sequence":{"atoms":[63,69,71,76]}},{"Repetition":{"atom":62,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[54,78]}},{"Named":{"name":"number_with_part","atom":79}},{"Entity":{"atom":86}},{"Entity":{"atom":83}},{"Str":{"pattern":"."}},{"Entity":{"atom":43}},{"Named":{"name":"stage_iteration","atom":84}},{"Sequence":{"atoms":[82,85]}},{"Repetition":{"atom":81,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":7}},{"Repetition":{"atom":88,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":91}},{"Str":{"pattern":":"}},{"Entity":{"atom":116}},{"Entity":{"atom":102}},{"Entity":{"atom":97}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[95,96]}},{"Entity":{"atom":43}},{"Repetition":{"atom":98,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":43}},{"Lookahead":{"atom":100,"positive":false}},{"Sequence":{"atoms":[94,99,101]}},{"Entity":{"atom":67}},{"Entity":{"atom":106}},{"Entity":{"atom":43}},{"Repetition":{"atom":105,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[103,104]}},{"Repetition":{"atom":107,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":67}},{"Entity":{"atom":112}},{"Entity":{"atom":43}},{"Repetition":{"atom":111,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[109,110]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[93,108,114]}},{"Named":{"name":"date","atom":115}},{"Sequence":{"atoms":[90,92]}},{"Repetition":{"atom":117,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[53,87,89,118]}},{"Sequence":{"atoms":[3,8,11,49,51,52]}},{"Named":{"name":"base","atom":2}},{"Entity":{"atom":7}},{"Repetition":{"atom":122,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":10}},{"Entity":{"atom":7}},{"Repetition":{"atom":125,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":131}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"COR"}},{"Alternative":{"atoms":[128,129]}},{"Named":{"name":"type_with_stage","atom":130}},{"Entity":{"atom":7}},{"Repetition":{"atom":132,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Sequence":{"atoms":[121,123,124,126,127,133,134]}},{"Entity":{"atom":168}},{"Entity":{"atom":7}},{"Repetition":{"atom":137,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":162}},{"Str":{"pattern":"("}},{"Entity":{"atom":142}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":141,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[143,145]}},{"Entity":{"atom":154}},{"Re":{"pattern":"[E]"}},{"Re":{"pattern":"[F]"}},{"Re":{"pattern":"[A]"}},{"Re":{"pattern":"[R]"}},{"Re":{"pattern":"[D]"}},{"Re":{"pattern":"[S]"}},{"Alternative":{"atoms":[148,149,150,151,152,153]}},{"Entity":{"atom":10}},{"Repetition":{"atom":155,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[147,156]}},{"Alternative":{"atoms":[146,157]}},{"Repetition":{"atom":158,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":159}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[140,160,161]}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":166}},{"Str":{"pattern":"(all parts)"}},{"Named":{"name":"all_parts","atom":165}},{"Repetition":{"atom":164,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[138,163,167]}},{"Sequence":{"atoms":[1,136]}},{"Entity":{"atom":173}},{"Entity":{"atom":120}},{"Entity":{"atom":168}},{"Sequence":{"atoms":[171,172]}},{"Alternative":{"atoms":[0,170]}}],"root":174},"bindings":[]}},"preprocess":{},"tables":{"idf_typed_stages":{"file":"idf_typed_stages.yaml","rows":[{"abbr":"PWI RM"},{"abbr":"NP RM"},{"abbr":"AWI RM"},{"abbr":"WD RM"},{"abbr":"CD RM"},{"abbr":"PDRM"},{"abbr":"DRM"},{"abbr":"FDRM"},{"abbr":"PRF RM"},{"abbr":"RM"},{"abbr":"AMD"},{"abbr":"COR"},{"abbr":"PWI"},{"abbr":"NP"},{"abbr":"NWIP"},{"abbr":"AWI"},{"abbr":"WD"},{"abbr":"CD"},{"abbr":"FCD"},{"abbr":"DIS"},{"abbr":"FPD"},{"abbr":"FDIS"},{"abbr":"PRF"},{"abbr":"Fpr"},{"abbr":"WDR"},{"abbr":"WDA"},{"abbr":"WDAR"}]},"idf_typed_stages_supplements":{"file":"idf_typed_stages_supplements.yaml","rows":[{"abbr":"AMD"},{"abbr":"COR"}]}},"lint":{"order_warnings":["rule dash: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[],"docs":{},"source":"# Port of lib/pubid/idf/parser.rb: IDF identifiers and their\n# supplements. The ISO joint form (ISO 5537|IDF 26) inlines these rules\n# as idf_* in iso.pg.\n\ngrammar PubidIdf version \"0.1.0\" {\n digit = %x30-39\n word_char = %x30-39 / %x41-5A / %x61-7A / %x5F\n dash = \"-\" / \"‑\" / \"‐\"\n dot = \".\"\n slash = \"/\"\n space = \" \"\n colon = \":\"\n letter = %x41-5A / %x61-7A\n lower = %x61-7A\n century = \"19\" / \"20\"\n year_digits = century 2*digit !digit\n month_digits = 2*digit\n day_digits = 2*digit\n publisher = \"IDF\" as publisher\n number = 1*5word_char\n part_and_subpart = dash [space] 1*word_char *1(dash 1*word_char)\n number_with_part = (number [part_and_subpart]) as number_with_part\n date = (year_digits [(dash month_digits)] [(dash day_digits)]) as date\n stage_iteration = dot digit as stage_iteration\n second_part = number_with_part [stage_iteration] [space] [(colon date)]\n all_parts = \"(all parts)\" as all_parts\n language = \"(\" *(1*lower [\",\"] / (one_of_efards [slash])) as languages \")\"\n one_of_efards = %x45 / %x46 / %x41 / %x52 / %x44 / %x53\n third_part = [space] [language] [all_parts]\n identifier_publisher_no_third = publisher [space] [slash] [type_with_stage] [space] second_part\n identifier_publisher = identifier_publisher_no_third third_part\n type_with_stage = alt from_table \"idf_typed_stages\" column \"abbr\" as type_with_stage [digit as stage_iteration space]\n supplement_type_with_stage = alt from_table \"idf_typed_stages_supplements\" column \"abbr\" as type_with_stage\n supplement_identifier_no_third = (identifier_publisher_no_third as base) [space] slash [space] supplement_type_with_stage [space] second_part\n supplement_identifier = supplement_identifier_no_third third_part\n identifier = supplement_identifier / identifier_publisher\n\n entry identifier: identifier\n}\n","source_hash":"003db1b987581830be83c1eed083ae3a02d23facba0ae8e496046b6914ff623f","compiler_version":"1.3.93","checksum":"sha256:f17f36891ddfb0594cf57ce6c2a6005b7c8baa7fa8bbd7c3f2e89210091ad7c3"}
|
package/vendor/parg/iec.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidIec","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":141}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"PNW"}},{"Alternative":{"atoms":[1,2]}},{"Named":{"name":"wp_stage","atom":3}},{"Entity":{"atom":6}},{"Str":{"pattern":" "}},{"Entity":{"atom":14}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Str":{"pattern":"SRD"}},{"Alternative":{"atoms":[8,9,10]}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[11,12]}},{"Named":{"name":"wp_type","atom":13}},{"Repetition":{"atom":7,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":117}},{"Entity":{"atom":22}},{"Entity":{"atom":19}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Entity":{"atom":21}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Alternative":{"atoms":[18,20]}},{"Repetition":{"atom":17,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":29}},{"Entity":{"atom":19}},{"Entity":{"atom":21}},{"Entity":{"atom":28}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[25,26,27]}},{"Repetition":{"atom":24,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":35}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"‑"}},{"Str":{"pattern":"‐"}},{"Alternative":{"atoms":[32,33,34]}},{"Entity":{"atom":28}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[31,37]}},{"Repetition":{"atom":38,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[23,30,39]}},{"Named":{"name":"number_with_part","atom":40}},{"Entity":{"atom":116}},{"Entity":{"atom":91}},{"Str":{"pattern":"DIR"}},{"Entity":{"atom":6}},{"Entity":{"atom":49}},{"Entity":{"atom":19}},{"Entity":{"atom":28}},{"Alternative":{"atoms":[47,48]}},{"Repetition":{"atom":46,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[45,50]}},{"Repetition":{"atom":51,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[44,52]}},{"Str":{"pattern":"VIM"}},{"Str":{"pattern":"SYMBOL"}},{"Entity":{"atom":28}},{"Repetition":{"atom":56,"min":1,"max":6,"tag":"Repetition"}},{"Str":{"pattern":"v"}},{"Entity":{"atom":28}},{"Repetition":{"atom":59,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":22}},{"Repetition":{"atom":61,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"_"}},{"Entity":{"atom":22}},{"Repetition":{"atom":64,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[63,65]}},{"Repetition":{"atom":66,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[57,58,60,62,67]}},{"Entity":{"atom":19}},{"Repetition":{"atom":69,"min":2,"max":4,"tag":"Repetition"}},{"Entity":{"atom":35}},{"Entity":{"atom":28}},{"Repetition":{"atom":72,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[71,73]}},{"Repetition":{"atom":74,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":49}},{"Repetition":{"atom":76,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[70,75,77]}},{"Entity":{"atom":28}},{"Repetition":{"atom":79,"min":1,"max":6,"tag":"Repetition"}},{"Entity":{"atom":22}},{"Repetition":{"atom":81,"min":0,"max":1,"tag":"Repetition"}},{"Str":{"pattern":"_"}},{"Entity":{"atom":22}},{"Repetition":{"atom":84,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[83,85]}},{"Repetition":{"atom":86,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[82,87]}},{"Repetition":{"atom":88,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[80,89]}},{"Alternative":{"atoms":[53,54,55,68,78,90]}},{"Entity":{"atom":113}},{"Entity":{"atom":35}},{"Entity":{"atom":95}},{"Str":{"pattern":","}},{"Alternative":{"atoms":[93,94]}},{"Entity":{"atom":6}},{"Repetition":{"atom":97,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":104}},{"Entity":{"atom":29}},{"Re":{"pattern":"[_]"}},{"Re":{"pattern":"[&]"}},{"Re":{"pattern":"[,]"}},{"Alternative":{"atoms":[100,101,102,103]}},{"Repetition":{"atom":99,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":35}},{"Entity":{"atom":95}},{"Alternative":{"atoms":[106,107]}},{"Entity":{"atom":104}},{"Repetition":{"atom":109,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[108,110]}},{"Repetition":{"atom":111,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[96,98,105,112]}},{"Repetition":{"atom":92,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[43,114]}},{"Named":{"name":"number_with_part","atom":115}},{"Alternative":{"atoms":[41,42]}},{"Entity":{"atom":6}},{"Entity":{"atom":138}},{"Entity":{"atom":125}},{"Str":{"pattern":"Edition"}},{"Str":{"pattern":"Ed."}},{"Str":{"pattern":"ED"}},{"Str":{"pattern":"Ed"}},{"Alternative":{"atoms":[121,122,123,124]}},{"Entity":{"atom":6}},{"Repetition":{"atom":126,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":28}},{"Repetition":{"atom":128,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":131}},{"Str":{"pattern":"."}},{"Entity":{"atom":28}},{"Repetition":{"atom":132,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[130,133]}},{"Repetition":{"atom":134,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[129,135]}},{"Named":{"name":"edition","atom":136}},{"Sequence":{"atoms":[120,127,137]}},{"Sequence":{"atoms":[118,119]}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[4,5,15,16,140]}},{"Entity":{"atom":234}},{"Entity":{"atom":222}},{"Entity":{"atom":158}},{"Str":{"pattern":"IECQ OD"}},{"Str":{"pattern":"IECQ CS"}},{"Str":{"pattern":"IEC CAB"}},{"Str":{"pattern":"IEC CA"}},{"Str":{"pattern":"IECRE"}},{"Str":{"pattern":"CISPR"}},{"Str":{"pattern":"IECEE"}},{"Str":{"pattern":"IECEx"}},{"Str":{"pattern":"IECQ"}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"CEI"}},{"Alternative":{"atoms":[145,146,147,148,149,150,151,152,153,154,155,156]}},{"Named":{"name":"publisher","atom":157}},{"Entity":{"atom":182}},{"Entity":{"atom":180}},{"Entity":{"atom":162}},{"Str":{"pattern":"/"}},{"Entity":{"atom":6}},{"Repetition":{"atom":163,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":178}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"IEEE"}},{"Str":{"pattern":"CIW"}},{"Str":{"pattern":"SAE"}},{"Str":{"pattern":"CIE"}},{"Str":{"pattern":"ASME"}},{"Str":{"pattern":"ASTM"}},{"Str":{"pattern":"OECD"}},{"Str":{"pattern":"HL7"}},{"Str":{"pattern":"CEI"}},{"Str":{"pattern":"UNDP"}},{"Alternative":{"atoms":[166,167,168,169,170,171,172,173,174,175,176,177]}},{"Named":{"name":"copublisher","atom":165}},{"Sequence":{"atoms":[161,164,179]}},{"Repetition":{"atom":160,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":181}},{"Repetition":{"atom":159,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Entity":{"atom":206}},{"Str":{"pattern":"CISPR"}},{"Str":{"pattern":"CIS"}},{"Entity":{"atom":162}},{"Entity":{"atom":19}},{"Sequence":{"atoms":[187,188,189]}},{"Entity":{"atom":197}},{"Str":{"pattern":"JTC"}},{"Str":{"pattern":"JPC"}},{"Str":{"pattern":"TC"}},{"Str":{"pattern":"SC"}},{"Str":{"pattern":"PC"}},{"Alternative":{"atoms":[192,193,194,195,196]}},{"Entity":{"atom":6}},{"Entity":{"atom":201}},{"Entity":{"atom":28}},{"Repetition":{"atom":200,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":19}},{"Repetition":{"atom":202,"min":0,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":203,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[191,198,199,204]}},{"Alternative":{"atoms":[186,190,205]}},{"Named":{"name":"technical_committee","atom":185}},{"Entity":{"atom":162}},{"Entity":{"atom":6}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":218}},{"Str":{"pattern":"SC"}},{"Entity":{"atom":6}},{"Entity":{"atom":201}},{"Entity":{"atom":19}},{"Repetition":{"atom":215,"min":0,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":216,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[212,213,214,217]}},{"Sequence":{"atoms":[208,210,211]}},{"Named":{"name":"subcommittee","atom":219}},{"Repetition":{"atom":220,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[144,183,184,207,221]}},{"Entity":{"atom":233}},{"Entity":{"atom":206}},{"Named":{"name":"technical_committee","atom":224}},{"Entity":{"atom":162}},{"Entity":{"atom":6}},{"Repetition":{"atom":227,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":218}},{"Sequence":{"atoms":[226,228,229]}},{"Named":{"name":"subcommittee","atom":230}},{"Repetition":{"atom":231,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[225,232]}},{"Alternative":{"atoms":[143,223]}},{"Entity":{"atom":266}},{"Str":{"pattern":"JTC1-SC"}},{"Entity":{"atom":28}},{"Repetition":{"atom":237,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[236,238]}},{"Entity":{"atom":19}},{"Repetition":{"atom":240,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":162}},{"Entity":{"atom":19}},{"Repetition":{"atom":243,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[241,242,244]}},{"Entity":{"atom":29}},{"Repetition":{"atom":246,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[239,245,247]}},{"Named":{"name":"technical_committee","atom":248}},{"Entity":{"atom":162}},{"Entity":{"atom":29}},{"Repetition":{"atom":251,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"wd_number","atom":252}},{"Str":{"pattern":"("}},{"Entity":{"atom":19}},{"Named":{"name":"wd_language","atom":255}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[254,256,257]}},{"Repetition":{"atom":258,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":162}},{"Entity":{"atom":19}},{"Repetition":{"atom":261,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"wd_stage","atom":262}},{"Sequence":{"atoms":[260,263]}},{"Repetition":{"atom":264,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[249,250,253,259,265]}},{"Entity":{"atom":738}},{"Entity":{"atom":542}},{"Entity":{"atom":272}},{"Str":{"pattern":"Guide"}},{"Str":{"pattern":"GUIDE"}},{"Alternative":{"atoms":[270,271]}},{"Named":{"name":"type_with_stage_fr","atom":269}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[273,274]}},{"Repetition":{"atom":275,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":283}},{"Entity":{"atom":158}},{"Entity":{"atom":6}},{"Repetition":{"atom":279,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":182}},{"Repetition":{"atom":281,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[278,280,282]}},{"Repetition":{"atom":277,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Repetition":{"atom":285,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":162}},{"Repetition":{"atom":287,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":427}},{"Str":{"pattern":"Technology Report"}},{"Str":{"pattern":"Trend Report"}},{"Str":{"pattern":"White Paper"}},{"Str":{"pattern":"ANW Guide"}},{"Str":{"pattern":"PRF Guide"}},{"Str":{"pattern":"PWI Guide"}},{"Str":{"pattern":"ANW Frag"}},{"Str":{"pattern":"CD Guide"}},{"Str":{"pattern":"NP Guide"}},{"Str":{"pattern":"PRF Frag"}},{"Str":{"pattern":"PWI Frag"}},{"Str":{"pattern":"WD Guide"}},{"Str":{"pattern":"ANW Amd"}},{"Str":{"pattern":"ANW Cor"}},{"Str":{"pattern":"ANW ISH"}},{"Str":{"pattern":"ANW PAS"}},{"Str":{"pattern":"FDGuide"}},{"Str":{"pattern":"NP Frag"}},{"Str":{"pattern":"PRF Amd"}},{"Str":{"pattern":"PRF Cor"}},{"Str":{"pattern":"PWI Amd"}},{"Str":{"pattern":"PWI Cor"}},{"Str":{"pattern":"PWI ISH"}},{"Str":{"pattern":"PWI PAS"}},{"Str":{"pattern":"WD Frag"}},{"Str":{"pattern":"ANW TR"}},{"Str":{"pattern":"ANW TS"}},{"Str":{"pattern":"CDFRAG"}},{"Str":{"pattern":"DELPUB"}},{"Str":{"pattern":"DGuide"}},{"Str":{"pattern":"FDFRAG"}},{"Str":{"pattern":"NP Amd"}},{"Str":{"pattern":"NP Cor"}},{"Str":{"pattern":"NP ISH"}},{"Str":{"pattern":"NP PAS"}},{"Str":{"pattern":"PWI TR"}},{"Str":{"pattern":"PWI TS"}},{"Str":{"pattern":"WD Amd"}},{"Str":{"pattern":"WD ISH"}},{"Str":{"pattern":"WD PAS"}},{"Str":{"pattern":"CD TR"}},{"Str":{"pattern":"CD TS"}},{"Str":{"pattern":"CDCor"}},{"Str":{"pattern":"CDISH"}},{"Str":{"pattern":"CDPAS"}},{"Str":{"pattern":"CFDIS"}},{"Str":{"pattern":"DFRAG"}},{"Str":{"pattern":"FDCOR"}},{"Str":{"pattern":"GUIDE"}},{"Str":{"pattern":"Guide"}},{"Str":{"pattern":"NADIS"}},{"Str":{"pattern":"NFDIS"}},{"Str":{"pattern":"NP TR"}},{"Str":{"pattern":"NP TS"}},{"Str":{"pattern":"RDISH"}},{"Str":{"pattern":"RFDIS"}},{"Str":{"pattern":"WD TR"}},{"Str":{"pattern":"WD TS"}},{"Str":{"pattern":"WDCor"}},{"Str":{"pattern":"A2CD"}},{"Str":{"pattern":"A3CD"}},{"Str":{"pattern":"A4CD"}},{"Str":{"pattern":"A5CD"}},{"Str":{"pattern":"A6CD"}},{"Str":{"pattern":"A7CD"}},{"Str":{"pattern":"A8CD"}},{"Str":{"pattern":"A9CD"}},{"Str":{"pattern":"ACDV"}},{"Str":{"pattern":"ADTR"}},{"Str":{"pattern":"ADTS"}},{"Str":{"pattern":"APUB"}},{"Str":{"pattern":"AWIN"}},{"Str":{"pattern":"BPUB"}},{"Str":{"pattern":"CCDV"}},{"Str":{"pattern":"CDAM"}},{"Str":{"pattern":"CDTR"}},{"Str":{"pattern":"CDTS"}},{"Str":{"pattern":"CDVM"}},{"Str":{"pattern":"DCOR"}},{"Str":{"pattern":"DISH"}},{"Str":{"pattern":"DPAS"}},{"Str":{"pattern":"DTRM"}},{"Str":{"pattern":"DTSM"}},{"Str":{"pattern":"FDAM"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"FRAG"}},{"Str":{"pattern":"NCDV"}},{"Str":{"pattern":"NDTR"}},{"Str":{"pattern":"NDTS"}},{"Str":{"pattern":"NWIP"}},{"Str":{"pattern":"PPUB"}},{"Str":{"pattern":"WPUB"}},{"Str":{"pattern":"2CD"}},{"Str":{"pattern":"3CD"}},{"Str":{"pattern":"4CD"}},{"Str":{"pattern":"5CD"}},{"Str":{"pattern":"6CD"}},{"Str":{"pattern":"7CD"}},{"Str":{"pattern":"8CD"}},{"Str":{"pattern":"9CD"}},{"Str":{"pattern":"ACD"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"AMW"}},{"Str":{"pattern":"ANW"}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"BWG"}},{"Str":{"pattern":"CAN"}},{"Str":{"pattern":"CDM"}},{"Str":{"pattern":"CDV"}},{"Str":{"pattern":"COR"}},{"Str":{"pattern":"Cor"}},{"Str":{"pattern":"DAM"}},{"Str":{"pattern":"DTR"}},{"Str":{"pattern":"DTS"}},{"Str":{"pattern":"ISH"}},{"Str":{"pattern":"PAS"}},{"Str":{"pattern":"PNW"}},{"Str":{"pattern":"PRF"}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"SRD"}},{"Str":{"pattern":"TRF"}},{"Str":{"pattern":"CA"}},{"Str":{"pattern":"CD"}},{"Str":{"pattern":"CS"}},{"Str":{"pattern":"NP"}},{"Str":{"pattern":"OD"}},{"Str":{"pattern":"RR"}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Str":{"pattern":"WD"}},{"Alternative":{"atoms":[290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419]}},{"Named":{"name":"type_with_stage","atom":420}},{"Entity":{"atom":28}},{"Named":{"name":"stage_iteration","atom":422}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[423,424]}},{"Repetition":{"atom":425,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[421,426]}},{"Str":{"pattern":""}},{"Named":{"name":"type_with_stage","atom":428}},{"Alternative":{"atoms":[289,429]}},{"Entity":{"atom":6}},{"Repetition":{"atom":431,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Entity":{"atom":440}},{"Str":{"pattern":"CISPR"}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[435,436]}},{"Named":{"name":"trf_org","atom":437}},{"Entity":{"atom":116}},{"Sequence":{"atoms":[438,439]}},{"Entity":{"atom":116}},{"Alternative":{"atoms":[434,441]}},{"Entity":{"atom":447}},{"Entity":{"atom":131}},{"Entity":{"atom":28}},{"Named":{"name":"stage_iteration","atom":445}},{"Sequence":{"atoms":[444,446]}},{"Repetition":{"atom":443,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Repetition":{"atom":449,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":488}},{"Entity":{"atom":453}},{"Str":{"pattern":":"}},{"Entity":{"atom":35}},{"Alternative":{"atoms":[452,454]}},{"Entity":{"atom":487}},{"Entity":{"atom":460}},{"Str":{"pattern":"--"}},{"Str":{"pattern":"—"}},{"Alternative":{"atoms":[458,459]}},{"Named":{"name":"undated_marker","atom":457}},{"Entity":{"atom":486}},{"Entity":{"atom":472}},{"Entity":{"atom":467}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[465,466]}},{"Entity":{"atom":28}},{"Repetition":{"atom":468,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":28}},{"Lookahead":{"atom":470,"positive":false}},{"Sequence":{"atoms":[464,469,471]}},{"Entity":{"atom":35}},{"Entity":{"atom":476}},{"Entity":{"atom":28}},{"Repetition":{"atom":475,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[473,474]}},{"Repetition":{"atom":477,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":35}},{"Entity":{"atom":482}},{"Entity":{"atom":28}},{"Repetition":{"atom":481,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[479,480]}},{"Repetition":{"atom":483,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[463,478,484]}},{"Named":{"name":"date","atom":485}},{"Alternative":{"atoms":[461,462]}},{"Sequence":{"atoms":[455,456]}},{"Sequence":{"atoms":[450,451]}},{"Repetition":{"atom":489,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":508}},{"Entity":{"atom":506}},{"Str":{"pattern":"+"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"COR"}},{"Alternative":{"atoms":[494,495]}},{"Named":{"name":"supplement_type","atom":496}},{"Entity":{"atom":28}},{"Repetition":{"atom":498,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":499}},{"Entity":{"atom":453}},{"Entity":{"atom":472}},{"Named":{"name":"supplement_year","atom":502}},{"Sequence":{"atoms":[501,503]}},{"Repetition":{"atom":504,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[493,497,500,505]}},{"Repetition":{"atom":492,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"consolidated_supplements","atom":507}},{"Repetition":{"atom":491,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":527}},{"Entity":{"atom":6}},{"Entity":{"atom":520}},{"Str":{"pattern":"CSV"}},{"Str":{"pattern":"CMV"}},{"Str":{"pattern":"RLV"}},{"Str":{"pattern":"SER"}},{"Str":{"pattern":"EXV"}},{"Str":{"pattern":"PAC"}},{"Str":{"pattern":"PRV"}},{"Alternative":{"atoms":[513,514,515,516,517,518,519]}},{"Entity":{"atom":35}},{"Entity":{"atom":520}},{"Sequence":{"atoms":[521,522]}},{"Repetition":{"atom":523,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[512,524]}},{"Named":{"name":"vap_suffix","atom":525}},{"Sequence":{"atoms":[511,526]}},{"Entity":{"atom":532}},{"Entity":{"atom":6}},{"Str":{"pattern":"DB"}},{"Named":{"name":"database","atom":530}},{"Sequence":{"atoms":[529,531]}},{"Alternative":{"atoms":[510,528]}},{"Repetition":{"atom":533,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[442,448,490,509,534]}},{"Entity":{"atom":541}},{"Entity":{"atom":6}},{"Repetition":{"atom":537,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":138}},{"Repetition":{"atom":539,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[538,540]}},{"Sequence":{"atoms":[276,284,286,288,430,432,433,536]}},{"Named":{"name":"base","atom":268}},{"Entity":{"atom":552}},{"Entity":{"atom":162}},{"Entity":{"atom":28}},{"Repetition":{"atom":546,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"sheet_number","atom":547}},{"Entity":{"atom":453}},{"Entity":{"atom":472}},{"Named":{"name":"sheet_year","atom":550}},{"Sequence":{"atoms":[545,548,549,551]}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Str":{"pattern":"Technology Report"}},{"Str":{"pattern":"Trend Report"}},{"Str":{"pattern":"White Paper"}},{"Str":{"pattern":"ANW Guide"}},{"Str":{"pattern":"PRF Guide"}},{"Str":{"pattern":"PWI Guide"}},{"Str":{"pattern":"ANW Frag"}},{"Str":{"pattern":"CD Guide"}},{"Str":{"pattern":"NP Guide"}},{"Str":{"pattern":"PRF Frag"}},{"Str":{"pattern":"PWI Frag"}},{"Str":{"pattern":"WD Guide"}},{"Str":{"pattern":"ANW Amd"}},{"Str":{"pattern":"ANW Cor"}},{"Str":{"pattern":"ANW ISH"}},{"Str":{"pattern":"ANW PAS"}},{"Str":{"pattern":"FDGuide"}},{"Str":{"pattern":"NP Frag"}},{"Str":{"pattern":"PRF Amd"}},{"Str":{"pattern":"PRF Cor"}},{"Str":{"pattern":"PWI Amd"}},{"Str":{"pattern":"PWI Cor"}},{"Str":{"pattern":"PWI ISH"}},{"Str":{"pattern":"PWI PAS"}},{"Str":{"pattern":"WD Frag"}},{"Str":{"pattern":"ANW TR"}},{"Str":{"pattern":"ANW TS"}},{"Str":{"pattern":"CDFRAG"}},{"Str":{"pattern":"DELPUB"}},{"Str":{"pattern":"DGuide"}},{"Str":{"pattern":"FDFRAG"}},{"Str":{"pattern":"NP Amd"}},{"Str":{"pattern":"NP Cor"}},{"Str":{"pattern":"NP ISH"}},{"Str":{"pattern":"NP PAS"}},{"Str":{"pattern":"PWI TR"}},{"Str":{"pattern":"PWI TS"}},{"Str":{"pattern":"WD Amd"}},{"Str":{"pattern":"WD ISH"}},{"Str":{"pattern":"WD PAS"}},{"Str":{"pattern":"CD TR"}},{"Str":{"pattern":"CD TS"}},{"Str":{"pattern":"CDCor"}},{"Str":{"pattern":"CDISH"}},{"Str":{"pattern":"CDPAS"}},{"Str":{"pattern":"CFDIS"}},{"Str":{"pattern":"DFRAG"}},{"Str":{"pattern":"FDCOR"}},{"Str":{"pattern":"GUIDE"}},{"Str":{"pattern":"Guide"}},{"Str":{"pattern":"NADIS"}},{"Str":{"pattern":"NFDIS"}},{"Str":{"pattern":"NP TR"}},{"Str":{"pattern":"NP TS"}},{"Str":{"pattern":"RDISH"}},{"Str":{"pattern":"RFDIS"}},{"Str":{"pattern":"WD TR"}},{"Str":{"pattern":"WD TS"}},{"Str":{"pattern":"WDCor"}},{"Str":{"pattern":"A2CD"}},{"Str":{"pattern":"A3CD"}},{"Str":{"pattern":"A4CD"}},{"Str":{"pattern":"A5CD"}},{"Str":{"pattern":"A6CD"}},{"Str":{"pattern":"A7CD"}},{"Str":{"pattern":"A8CD"}},{"Str":{"pattern":"A9CD"}},{"Str":{"pattern":"ACDV"}},{"Str":{"pattern":"ADTR"}},{"Str":{"pattern":"ADTS"}},{"Str":{"pattern":"APUB"}},{"Str":{"pattern":"AWIN"}},{"Str":{"pattern":"BPUB"}},{"Str":{"pattern":"CCDV"}},{"Str":{"pattern":"CDAM"}},{"Str":{"pattern":"CDTR"}},{"Str":{"pattern":"CDTS"}},{"Str":{"pattern":"CDVM"}},{"Str":{"pattern":"DCOR"}},{"Str":{"pattern":"DISH"}},{"Str":{"pattern":"DPAS"}},{"Str":{"pattern":"DTRM"}},{"Str":{"pattern":"DTSM"}},{"Str":{"pattern":"FDAM"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"FRAG"}},{"Str":{"pattern":"NCDV"}},{"Str":{"pattern":"NDTR"}},{"Str":{"pattern":"NDTS"}},{"Str":{"pattern":"NWIP"}},{"Str":{"pattern":"PPUB"}},{"Str":{"pattern":"WPUB"}},{"Str":{"pattern":"2CD"}},{"Str":{"pattern":"3CD"}},{"Str":{"pattern":"4CD"}},{"Str":{"pattern":"5CD"}},{"Str":{"pattern":"6CD"}},{"Str":{"pattern":"7CD"}},{"Str":{"pattern":"8CD"}},{"Str":{"pattern":"9CD"}},{"Str":{"pattern":"ACD"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"AMW"}},{"Str":{"pattern":"ANW"}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"BWG"}},{"Str":{"pattern":"CAN"}},{"Str":{"pattern":"CDM"}},{"Str":{"pattern":"CDV"}},{"Str":{"pattern":"COR"}},{"Str":{"pattern":"Cor"}},{"Str":{"pattern":"DAM"}},{"Str":{"pattern":"DTR"}},{"Str":{"pattern":"DTS"}},{"Str":{"pattern":"ISH"}},{"Str":{"pattern":"PAS"}},{"Str":{"pattern":"PNW"}},{"Str":{"pattern":"PRF"}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"SRD"}},{"Str":{"pattern":"TRF"}},{"Str":{"pattern":"CA"}},{"Str":{"pattern":"CD"}},{"Str":{"pattern":"CS"}},{"Str":{"pattern":"NP"}},{"Str":{"pattern":"OD"}},{"Str":{"pattern":"RR"}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Str":{"pattern":"WD"}},{"Alternative":{"atoms":[555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684]}},{"Str":{"pattern":"FRAGC"}},{"Str":{"pattern":"FRAG"}},{"Alternative":{"atoms":[685,686,687]}},{"Named":{"name":"type_with_stage","atom":688}},{"Entity":{"atom":6}},{"Repetition":{"atom":690,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Entity":{"atom":737}},{"Entity":{"atom":541}},{"Entity":{"atom":721}},{"Str":{"pattern":"("}},{"Entity":{"atom":719}},{"Entity":{"atom":699}},{"Entity":{"atom":21}},{"Repetition":{"atom":698,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[701,702]}},{"Repetition":{"atom":703,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[700,704]}},{"Entity":{"atom":713}},{"Re":{"pattern":"[E]"}},{"Re":{"pattern":"[F]"}},{"Re":{"pattern":"[A]"}},{"Re":{"pattern":"[R]"}},{"Re":{"pattern":"[D]"}},{"Re":{"pattern":"[S]"}},{"Alternative":{"atoms":[707,708,709,710,711,712]}},{"Entity":{"atom":162}},{"Repetition":{"atom":714,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[706,715]}},{"Alternative":{"atoms":[705,716]}},{"Repetition":{"atom":717,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":718}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[696,697,720]}},{"Repetition":{"atom":695,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":732}},{"Entity":{"atom":162}},{"Str":{"pattern":"FRAGC"}},{"Str":{"pattern":"FRAG"}},{"Alternative":{"atoms":[725,726]}},{"Named":{"name":"fragment_type","atom":727}},{"Entity":{"atom":28}},{"Repetition":{"atom":729,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"fragment_number","atom":730}},{"Sequence":{"atoms":[724,728,731]}},{"Repetition":{"atom":723,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":735}},{"Str":{"pattern":"(all parts)"}},{"Repetition":{"atom":734,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[694,722,733,736]}},{"Sequence":{"atoms":[543,544,553,554,691,692,693]}},{"Entity":{"atom":750}},{"Entity":{"atom":542}},{"Named":{"name":"base","atom":740}},{"Entity":{"atom":552}},{"Entity":{"atom":748}},{"Entity":{"atom":162}},{"Entity":{"atom":28}},{"Repetition":{"atom":745,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"sheet_number","atom":746}},{"Sequence":{"atoms":[744,747]}},{"Alternative":{"atoms":[742,743]}},{"Sequence":{"atoms":[741,749]}},{"Entity":{"atom":768}},{"Entity":{"atom":760}},{"Entity":{"atom":542}},{"Named":{"name":"base","atom":753}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Entity":{"atom":6}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Sequence":{"atoms":[754,755,756,758,759]}},{"Named":{"name":"base","atom":752}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Entity":{"atom":6}},{"Repetition":{"atom":764,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[761,762,763,765,766,767]}},{"Entity":{"atom":776}},{"Entity":{"atom":283}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Entity":{"atom":6}},{"Entity":{"atom":535}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[770,771,772,773,774,775]}},{"Entity":{"atom":780}},{"Entity":{"atom":760}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[778,779]}},{"Entity":{"atom":784}},{"Entity":{"atom":542}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[782,783]}},{"Alternative":{"atoms":[0,142,235,267,739,751,769,777,781]}}],"root":785},"bindings":[]}},"preprocess":{},"tables":{"iec_typed_stages":{"file":"iec_typed_stages.yaml","rows":[{"abbr":"TRF"},{"abbr":"PWI Amd"},{"abbr":"NP Amd"},{"abbr":"ANW Amd"},{"abbr":"WD Amd"},{"abbr":"CDAM"},{"abbr":"DAM"},{"abbr":"FDAM"},{"abbr":"PRF Amd"},{"abbr":"Amd"},{"abbr":"AMD"},{"abbr":"PWI Cor"},{"abbr":"NP Cor"},{"abbr":"ANW Cor"},{"abbr":"WDCor"},{"abbr":"CDCor"},{"abbr":"DCOR"},{"abbr":"FDCOR"},{"abbr":"PRF Cor"},{"abbr":"Cor"},{"abbr":"COR"},{"abbr":"CS"},{"abbr":"CA"},{"abbr":"PWI Guide"},{"abbr":"NP Guide"},{"abbr":"ANW Guide"},{"abbr":"WD Guide"},{"abbr":"CD Guide"},{"abbr":"DGuide"},{"abbr":"FDGuide"},{"abbr":"PRF Guide"},{"abbr":"GUIDE"},{"abbr":"Guide"},{"abbr":"PWI"},{"abbr":"NWIP"},{"abbr":"BWG"},{"abbr":"AWIN"},{"abbr":"AMW"},{"abbr":"NP"},{"abbr":"PNW"},{"abbr":"ANW"},{"abbr":"WD"},{"abbr":"CD"},{"abbr":"2CD"},{"abbr":"3CD"},{"abbr":"4CD"},{"abbr":"5CD"},{"abbr":"6CD"},{"abbr":"7CD"},{"abbr":"8CD"},{"abbr":"9CD"},{"abbr":"ACD"},{"abbr":"A2CD"},{"abbr":"A3CD"},{"abbr":"A4CD"},{"abbr":"A5CD"},{"abbr":"A6CD"},{"abbr":"A7CD"},{"abbr":"A8CD"},{"abbr":"A9CD"},{"abbr":"CDM"},{"abbr":"CDV"},{"abbr":"ACDV"},{"abbr":"CCDV"},{"abbr":"CDVM"},{"abbr":"NCDV"},{"abbr":"FDIS"},{"abbr":"PRF"},{"abbr":"NFDIS"},{"abbr":"NADIS"},{"abbr":"RDISH"},{"abbr":"RFDIS"},{"abbr":"CFDIS"},{"abbr":"BPUB"},{"abbr":"PPUB"},{"abbr":"APUB"},{"abbr":"WPUB"},{"abbr":"DELPUB"},{"abbr":"RR"},{"abbr":"CAN"},{"abbr":"PWI ISH"},{"abbr":"NP ISH"},{"abbr":"ANW ISH"},{"abbr":"WD ISH"},{"abbr":"CDISH"},{"abbr":"DISH"},{"abbr":"ISH"},{"abbr":"OD"},{"abbr":"PWI PAS"},{"abbr":"NP PAS"},{"abbr":"ANW PAS"},{"abbr":"WD PAS"},{"abbr":"CDPAS"},{"abbr":"DPAS"},{"abbr":"PAS"},{"abbr":"Trend Report"},{"abbr":"PWI TR"},{"abbr":"NP TR"},{"abbr":"ANW TR"},{"abbr":"WD TR"},{"abbr":"CD TR"},{"abbr":"DTR"},{"abbr":"ADTR"},{"abbr":"CDTR"},{"abbr":"DTRM"},{"abbr":"NDTR"},{"abbr":"DTSM"},{"abbr":"TR"},{"abbr":"SRD"},{"abbr":"Technology Report"},{"abbr":"PWI TS"},{"abbr":"NP TS"},{"abbr":"ANW TS"},{"abbr":"WD TS"},{"abbr":"CD TS"},{"abbr":"DTS"},{"abbr":"ADTS"},{"abbr":"CDTS"},{"abbr":"NDTS"},{"abbr":"TS"},{"abbr":"White Paper"},{"abbr":"PWI Frag"},{"abbr":"NP Frag"},{"abbr":"ANW Frag"},{"abbr":"WD Frag"},{"abbr":"CDFRAG"},{"abbr":"DFRAG"},{"abbr":"FDFRAG"},{"abbr":"PRF Frag"},{"abbr":"FRAG"}]}},"lint":{"order_warnings":["rule dash: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule tc_type: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule tc_body: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule technical_group: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule wp_number: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule vap_code: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule vap_code: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule guide_prefix: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"IEC 60050","expect":{}},{"entry":"identifier","kind":"accept","input":"IEC 8601-1:2019","expect":{}},{"entry":"identifier","kind":"accept","input":"CISPR 16-1-1","expect":{}},{"entry":"identifier","kind":"accept","input":"IECQ OD 1234","expect":{}},{"entry":"identifier","kind":"accept","input":"IEC/TS 80000-1","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{"prefix_sole_publisher":"IEC publishers, longest-first: the qualified forms must precede\nthe bare \"IEC\"."},"source":"# Port of lib/pubid/iec/parser.rb. Deviations:\n# - joint_identifier (IEC x | ISO y) awaits PG cross-file imports; the\n# ISO joint grammar cannot be inlined at reasonable size. Noted here;\n# slots back into the root ahead of identifier_copublishers.\n# - the IEV → \"IEC 60050\" input shorthand is pre-parse normalization and\n# stays binder-side.\n\ngrammar PubidIec version \"0.1.0\" {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n letter = upper / lower\n alnum_char = upper / lower / digit\n word_ext_char = alnum_char / %x5F / %x26 / %x2C\n space = \" \"\n dash = \"-\" / \"‑\" / \"‐\"\n dot = \".\"\n slash = \"/\"\n colon = \":\"\n comma = \",\"\n century = \"19\" / \"20\"\n year_digits = century 2*digit !digit\n month_digits = 2*digit\n day_digits = 2*digit\n digits = 1*digit\n\n ## IEC publishers, longest-first: the qualified forms must precede\n ## the bare \"IEC\".\n # CEI is IEC's French spelling (pubid#488): French-language IEC\n # documents print \"CEI ...\" identifiers; it parses as the IEC publisher.\n prefix_sole_publisher = (\"IECQ OD\" / \"IECQ CS\" / \"IEC CAB\" / \"IEC CA\" / \"IECRE\" / \"CISPR\" / \"IECEE\" / \"IECEx\" / \"IECQ\" / \"IEC\" / \"ISO\" / \"CEI\") as publisher\n organization = \"IEC\" / \"ISO\" / \"IEEE\" / \"CIW\" / \"SAE\" / \"CIE\" / \"ASME\" / \"ASTM\" / \"OECD\" / \"HL7\" / \"CEI\" / \"UNDP\"\n copublishers_item = slash [space] organization as copublisher\n copublishers = (*copublishers_item) as copublishers\n prefix_with_copublishers = prefix_sole_publisher [space] [copublishers]\n\n tc_type = \"JTC\" / \"JPC\" / \"TC\" / \"SC\" / \"PC\"\n tc_body = \"CISPR\" / (\"CIS\" slash upper) / (tc_type space digits [*upper])\n sc_body = \"SC\" space digits [*upper]\n technical_group_with_publisher = (prefix_sole_publisher [copublishers] space tc_body as technical_committee [((slash [space] sc_body) as subcommittee)])\n technical_group_bare = (tc_body as technical_committee [((slash [space] sc_body) as subcommittee)])\n technical_group = technical_group_with_publisher / technical_group_bare\n\n wp_type = ((\"TR\" / \"TS\" / \"SRD\") space) as wp_type\n wp_number = ((1*letter *alnum_char [(dash 1*digit)]) as number_with_part) / number_with_part\n working_programme = ((\"PWI\" / \"PNW\") as wp_stage space [wp_type] wp_number [(space edition)])\n\n working_document = (((\"JTC1-SC\" 1*digit) / (1*upper slash 1*upper) / 1*alnum_char) as technical_committee slash (1*alnum_char) as wd_number [(\"(\" upper as wd_language \")\")] [(slash (1*upper) as wd_stage)])\n\n number = ((\"DIR\" *(space 1*upper_digit)) / \"VIM\" / \"SYMBOL\" / (1*6digit \"v\" 1*digit *letter [(\"_\" 1*letter)]) / (2*4upper [(dash 1*digit)] *upper_digit) / (1*6digit [*1letter [(\"_\" 1*letter)]]))\n upper_digit = upper / digit\n part_and_subpart = (dash / comma) [space] 1*word_ext_char *((dash / comma) 1*word_ext_char)\n number_with_part = (number [part_and_subpart]) as number_with_part\n trf_org_number = (\"CISPR\" space) as trf_org number_with_part\n stage_iteration = dot digit as stage_iteration\n\n undated = \"--\" / \"—\"\n full_date = (year_digits [(dash month_digits)] [(dash day_digits)]) as date\n date_body = undated as undated_marker / full_date\n date = (colon / dash) date_body\n\n vap_code = \"CSV\" / \"CMV\" / \"RLV\" / \"SER\" / \"EXV\" / \"PAC\" / \"PRV\"\n vap_suffix = space (vap_code *(dash vap_code)) as vap_suffix\n database_suffix = space \"DB\" as database\n consolidated_supplement = \"+\" (\"AMD\" / \"COR\") as supplement_type (1*digit) as supplement_number [(colon year_digits as supplement_year)]\n consolidated_supplements = (1*consolidated_supplement) as consolidated_supplements\n second_part = (trf_org_number / number_with_part) [stage_iteration] [[space] date] [consolidated_supplements] [vap_suffix / database_suffix]\n\n edition_str = \"Edition\" / \"Ed.\" / \"ED\" / \"Ed\"\n edition = edition_str [space] (1*digit [(dot 1*digit)]) as edition\n\n one_of_efards = %x45 / %x46 / %x41 / %x52 / %x44 / %x53\n lower_char = lower\n # The house-style separator is \"-\" (pubid#491); \",\" stays accepted.\n languages = (*(1*lower_char [(\",\" / \"-\")] / (one_of_efards [slash]))) as languages\n language = \"(\" languages \")\"\n all_parts = \"(all parts)\"\n fragment_notation = slash (\"FRAGC\" / \"FRAG\") as fragment_type (1*digit) as fragment_number\n third_part_edition = [space] [edition]\n third_part = third_part_edition [language] [fragment_notation] [all_parts]\n\n type_with_stage = alt from_table \"iec_typed_stages\" column \"abbr\" as type_with_stage [digit as stage_iteration space]\n supplement_type_with_stage = (alt from_table \"iec_typed_stages\" column \"abbr\" / \"FRAGC\" / \"FRAG\") as type_with_stage\n\n guide_prefix = \"Guide\" / \"GUIDE\"\n identifier_copublishers_no_third = [guide_prefix as type_with_stage_fr space] [prefix_with_copublishers] [space] [slash] (type_with_stage / \"\" as type_with_stage) [space] second_part third_part_edition\n identifier_copublishers = identifier_copublishers_no_third third_part\n\n sheet_notation = slash (1*digit) as sheet_number colon year_digits as sheet_year\n sheet_notation_no_year = slash (1*digit) as sheet_number\n sheet_identifier = (identifier_copublishers_no_third as base) (sheet_notation / sheet_notation_no_year)\n sheet_supplement_identifier = (identifier_copublishers_no_third as base) sheet_notation slash supplement_type_with_stage [space] second_part third_part\n standalone_supplement = prefix_with_copublishers slash supplement_type_with_stage space second_part third_part\n supplement_identifier_no_third = (identifier_copublishers_no_third as base) slash supplement_type_with_stage [space] second_part\n supplement_identifier = supplement_identifier_no_third third_part\n supplement_supplement_identifier = (supplement_identifier_no_third as base) slash supplement_type_with_stage [space] second_part third_part\n\n identifier = working_programme / technical_group / working_document / sheet_supplement_identifier / sheet_identifier / supplement_supplement_identifier / standalone_supplement / supplement_identifier / identifier_copublishers\n\n entry identifier: identifier\n\n test {\n accept \"IEC 60050\"\n accept \"IEC 8601-1:2019\"\n accept \"CISPR 16-1-1\"\n accept \"IECQ OD 1234\"\n accept \"IEC/TS 80000-1\"\n reject \"nonsense\"\n }\n}\n","checksum":"sha256:63aeaf66d019b06c588544251ea5bdab92bbe8fd82e6814f89eb2d361b2db434"}
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidIec","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":141}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"PNW"}},{"Alternative":{"atoms":[1,2]}},{"Named":{"name":"wp_stage","atom":3}},{"Entity":{"atom":6}},{"Str":{"pattern":" "}},{"Entity":{"atom":14}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Str":{"pattern":"SRD"}},{"Alternative":{"atoms":[8,9,10]}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[11,12]}},{"Named":{"name":"wp_type","atom":13}},{"Repetition":{"atom":7,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":117}},{"Entity":{"atom":22}},{"Entity":{"atom":19}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Entity":{"atom":21}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Alternative":{"atoms":[18,20]}},{"Repetition":{"atom":17,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":29}},{"Entity":{"atom":19}},{"Entity":{"atom":21}},{"Entity":{"atom":28}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[25,26,27]}},{"Repetition":{"atom":24,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":35}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"‑"}},{"Str":{"pattern":"‐"}},{"Alternative":{"atoms":[32,33,34]}},{"Entity":{"atom":28}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[31,37]}},{"Repetition":{"atom":38,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[23,30,39]}},{"Named":{"name":"number_with_part","atom":40}},{"Entity":{"atom":116}},{"Entity":{"atom":91}},{"Str":{"pattern":"DIR"}},{"Entity":{"atom":6}},{"Entity":{"atom":49}},{"Entity":{"atom":19}},{"Entity":{"atom":28}},{"Alternative":{"atoms":[47,48]}},{"Repetition":{"atom":46,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[45,50]}},{"Repetition":{"atom":51,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[44,52]}},{"Str":{"pattern":"VIM"}},{"Str":{"pattern":"SYMBOL"}},{"Entity":{"atom":28}},{"Repetition":{"atom":56,"min":1,"max":6,"tag":"Repetition"}},{"Str":{"pattern":"v"}},{"Entity":{"atom":28}},{"Repetition":{"atom":59,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":22}},{"Repetition":{"atom":61,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"_"}},{"Entity":{"atom":22}},{"Repetition":{"atom":64,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[63,65]}},{"Repetition":{"atom":66,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[57,58,60,62,67]}},{"Entity":{"atom":19}},{"Repetition":{"atom":69,"min":2,"max":4,"tag":"Repetition"}},{"Entity":{"atom":35}},{"Entity":{"atom":28}},{"Repetition":{"atom":72,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[71,73]}},{"Repetition":{"atom":74,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":49}},{"Repetition":{"atom":76,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[70,75,77]}},{"Entity":{"atom":28}},{"Repetition":{"atom":79,"min":1,"max":6,"tag":"Repetition"}},{"Entity":{"atom":22}},{"Repetition":{"atom":81,"min":0,"max":1,"tag":"Repetition"}},{"Str":{"pattern":"_"}},{"Entity":{"atom":22}},{"Repetition":{"atom":84,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[83,85]}},{"Repetition":{"atom":86,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[82,87]}},{"Repetition":{"atom":88,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[80,89]}},{"Alternative":{"atoms":[53,54,55,68,78,90]}},{"Entity":{"atom":113}},{"Entity":{"atom":35}},{"Entity":{"atom":95}},{"Str":{"pattern":","}},{"Alternative":{"atoms":[93,94]}},{"Entity":{"atom":6}},{"Repetition":{"atom":97,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":104}},{"Entity":{"atom":29}},{"Re":{"pattern":"[_]"}},{"Re":{"pattern":"[&]"}},{"Re":{"pattern":"[,]"}},{"Alternative":{"atoms":[100,101,102,103]}},{"Repetition":{"atom":99,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":35}},{"Entity":{"atom":95}},{"Alternative":{"atoms":[106,107]}},{"Entity":{"atom":104}},{"Repetition":{"atom":109,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[108,110]}},{"Repetition":{"atom":111,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[96,98,105,112]}},{"Repetition":{"atom":92,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[43,114]}},{"Named":{"name":"number_with_part","atom":115}},{"Alternative":{"atoms":[41,42]}},{"Entity":{"atom":6}},{"Entity":{"atom":138}},{"Entity":{"atom":125}},{"Str":{"pattern":"Edition"}},{"Str":{"pattern":"Ed."}},{"Str":{"pattern":"ED"}},{"Str":{"pattern":"Ed"}},{"Alternative":{"atoms":[121,122,123,124]}},{"Entity":{"atom":6}},{"Repetition":{"atom":126,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":28}},{"Repetition":{"atom":128,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":131}},{"Str":{"pattern":"."}},{"Entity":{"atom":28}},{"Repetition":{"atom":132,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[130,133]}},{"Repetition":{"atom":134,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[129,135]}},{"Named":{"name":"edition","atom":136}},{"Sequence":{"atoms":[120,127,137]}},{"Sequence":{"atoms":[118,119]}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[4,5,15,16,140]}},{"Entity":{"atom":234}},{"Entity":{"atom":222}},{"Entity":{"atom":158}},{"Str":{"pattern":"IECQ OD"}},{"Str":{"pattern":"IECQ CS"}},{"Str":{"pattern":"IEC CAB"}},{"Str":{"pattern":"IEC CA"}},{"Str":{"pattern":"IECRE"}},{"Str":{"pattern":"CISPR"}},{"Str":{"pattern":"IECEE"}},{"Str":{"pattern":"IECEx"}},{"Str":{"pattern":"IECQ"}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"CEI"}},{"Alternative":{"atoms":[145,146,147,148,149,150,151,152,153,154,155,156]}},{"Named":{"name":"publisher","atom":157}},{"Entity":{"atom":182}},{"Entity":{"atom":180}},{"Entity":{"atom":162}},{"Str":{"pattern":"/"}},{"Entity":{"atom":6}},{"Repetition":{"atom":163,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":178}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"IEEE"}},{"Str":{"pattern":"CIW"}},{"Str":{"pattern":"SAE"}},{"Str":{"pattern":"CIE"}},{"Str":{"pattern":"ASME"}},{"Str":{"pattern":"ASTM"}},{"Str":{"pattern":"OECD"}},{"Str":{"pattern":"HL7"}},{"Str":{"pattern":"CEI"}},{"Str":{"pattern":"UNDP"}},{"Alternative":{"atoms":[166,167,168,169,170,171,172,173,174,175,176,177]}},{"Named":{"name":"copublisher","atom":165}},{"Sequence":{"atoms":[161,164,179]}},{"Repetition":{"atom":160,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":181}},{"Repetition":{"atom":159,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Entity":{"atom":206}},{"Str":{"pattern":"CISPR"}},{"Str":{"pattern":"CIS"}},{"Entity":{"atom":162}},{"Entity":{"atom":19}},{"Sequence":{"atoms":[187,188,189]}},{"Entity":{"atom":197}},{"Str":{"pattern":"JTC"}},{"Str":{"pattern":"JPC"}},{"Str":{"pattern":"TC"}},{"Str":{"pattern":"SC"}},{"Str":{"pattern":"PC"}},{"Alternative":{"atoms":[192,193,194,195,196]}},{"Entity":{"atom":6}},{"Entity":{"atom":201}},{"Entity":{"atom":28}},{"Repetition":{"atom":200,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":19}},{"Repetition":{"atom":202,"min":0,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":203,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[191,198,199,204]}},{"Alternative":{"atoms":[186,190,205]}},{"Named":{"name":"technical_committee","atom":185}},{"Entity":{"atom":162}},{"Entity":{"atom":6}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":218}},{"Str":{"pattern":"SC"}},{"Entity":{"atom":6}},{"Entity":{"atom":201}},{"Entity":{"atom":19}},{"Repetition":{"atom":215,"min":0,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":216,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[212,213,214,217]}},{"Sequence":{"atoms":[208,210,211]}},{"Named":{"name":"subcommittee","atom":219}},{"Repetition":{"atom":220,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[144,183,184,207,221]}},{"Entity":{"atom":233}},{"Entity":{"atom":206}},{"Named":{"name":"technical_committee","atom":224}},{"Entity":{"atom":162}},{"Entity":{"atom":6}},{"Repetition":{"atom":227,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":218}},{"Sequence":{"atoms":[226,228,229]}},{"Named":{"name":"subcommittee","atom":230}},{"Repetition":{"atom":231,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[225,232]}},{"Alternative":{"atoms":[143,223]}},{"Entity":{"atom":266}},{"Str":{"pattern":"JTC1-SC"}},{"Entity":{"atom":28}},{"Repetition":{"atom":237,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[236,238]}},{"Entity":{"atom":19}},{"Repetition":{"atom":240,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":162}},{"Entity":{"atom":19}},{"Repetition":{"atom":243,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[241,242,244]}},{"Entity":{"atom":29}},{"Repetition":{"atom":246,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[239,245,247]}},{"Named":{"name":"technical_committee","atom":248}},{"Entity":{"atom":162}},{"Entity":{"atom":29}},{"Repetition":{"atom":251,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"wd_number","atom":252}},{"Str":{"pattern":"("}},{"Entity":{"atom":19}},{"Named":{"name":"wd_language","atom":255}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[254,256,257]}},{"Repetition":{"atom":258,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":162}},{"Entity":{"atom":19}},{"Repetition":{"atom":261,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"wd_stage","atom":262}},{"Sequence":{"atoms":[260,263]}},{"Repetition":{"atom":264,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[249,250,253,259,265]}},{"Entity":{"atom":738}},{"Entity":{"atom":542}},{"Entity":{"atom":272}},{"Str":{"pattern":"Guide"}},{"Str":{"pattern":"GUIDE"}},{"Alternative":{"atoms":[270,271]}},{"Named":{"name":"type_with_stage_fr","atom":269}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[273,274]}},{"Repetition":{"atom":275,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":283}},{"Entity":{"atom":158}},{"Entity":{"atom":6}},{"Repetition":{"atom":279,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":182}},{"Repetition":{"atom":281,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[278,280,282]}},{"Repetition":{"atom":277,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Repetition":{"atom":285,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":162}},{"Repetition":{"atom":287,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":427}},{"Str":{"pattern":"Technology Report"}},{"Str":{"pattern":"Trend Report"}},{"Str":{"pattern":"White Paper"}},{"Str":{"pattern":"ANW Guide"}},{"Str":{"pattern":"PRF Guide"}},{"Str":{"pattern":"PWI Guide"}},{"Str":{"pattern":"ANW Frag"}},{"Str":{"pattern":"CD Guide"}},{"Str":{"pattern":"NP Guide"}},{"Str":{"pattern":"PRF Frag"}},{"Str":{"pattern":"PWI Frag"}},{"Str":{"pattern":"WD Guide"}},{"Str":{"pattern":"ANW Amd"}},{"Str":{"pattern":"ANW Cor"}},{"Str":{"pattern":"ANW ISH"}},{"Str":{"pattern":"ANW PAS"}},{"Str":{"pattern":"FDGuide"}},{"Str":{"pattern":"NP Frag"}},{"Str":{"pattern":"PRF Amd"}},{"Str":{"pattern":"PRF Cor"}},{"Str":{"pattern":"PWI Amd"}},{"Str":{"pattern":"PWI Cor"}},{"Str":{"pattern":"PWI ISH"}},{"Str":{"pattern":"PWI PAS"}},{"Str":{"pattern":"WD Frag"}},{"Str":{"pattern":"ANW TR"}},{"Str":{"pattern":"ANW TS"}},{"Str":{"pattern":"CDFRAG"}},{"Str":{"pattern":"DELPUB"}},{"Str":{"pattern":"DGuide"}},{"Str":{"pattern":"FDFRAG"}},{"Str":{"pattern":"NP Amd"}},{"Str":{"pattern":"NP Cor"}},{"Str":{"pattern":"NP ISH"}},{"Str":{"pattern":"NP PAS"}},{"Str":{"pattern":"PWI TR"}},{"Str":{"pattern":"PWI TS"}},{"Str":{"pattern":"WD Amd"}},{"Str":{"pattern":"WD ISH"}},{"Str":{"pattern":"WD PAS"}},{"Str":{"pattern":"CD TR"}},{"Str":{"pattern":"CD TS"}},{"Str":{"pattern":"CDCor"}},{"Str":{"pattern":"CDISH"}},{"Str":{"pattern":"CDPAS"}},{"Str":{"pattern":"CFDIS"}},{"Str":{"pattern":"DFRAG"}},{"Str":{"pattern":"FDCOR"}},{"Str":{"pattern":"GUIDE"}},{"Str":{"pattern":"Guide"}},{"Str":{"pattern":"NADIS"}},{"Str":{"pattern":"NFDIS"}},{"Str":{"pattern":"NP TR"}},{"Str":{"pattern":"NP TS"}},{"Str":{"pattern":"RDISH"}},{"Str":{"pattern":"RFDIS"}},{"Str":{"pattern":"WD TR"}},{"Str":{"pattern":"WD TS"}},{"Str":{"pattern":"WDCor"}},{"Str":{"pattern":"A2CD"}},{"Str":{"pattern":"A3CD"}},{"Str":{"pattern":"A4CD"}},{"Str":{"pattern":"A5CD"}},{"Str":{"pattern":"A6CD"}},{"Str":{"pattern":"A7CD"}},{"Str":{"pattern":"A8CD"}},{"Str":{"pattern":"A9CD"}},{"Str":{"pattern":"ACDV"}},{"Str":{"pattern":"ADTR"}},{"Str":{"pattern":"ADTS"}},{"Str":{"pattern":"APUB"}},{"Str":{"pattern":"AWIN"}},{"Str":{"pattern":"BPUB"}},{"Str":{"pattern":"CCDV"}},{"Str":{"pattern":"CDAM"}},{"Str":{"pattern":"CDTR"}},{"Str":{"pattern":"CDTS"}},{"Str":{"pattern":"CDVM"}},{"Str":{"pattern":"DCOR"}},{"Str":{"pattern":"DISH"}},{"Str":{"pattern":"DPAS"}},{"Str":{"pattern":"DTRM"}},{"Str":{"pattern":"DTSM"}},{"Str":{"pattern":"FDAM"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"FRAG"}},{"Str":{"pattern":"NCDV"}},{"Str":{"pattern":"NDTR"}},{"Str":{"pattern":"NDTS"}},{"Str":{"pattern":"NWIP"}},{"Str":{"pattern":"PPUB"}},{"Str":{"pattern":"WPUB"}},{"Str":{"pattern":"2CD"}},{"Str":{"pattern":"3CD"}},{"Str":{"pattern":"4CD"}},{"Str":{"pattern":"5CD"}},{"Str":{"pattern":"6CD"}},{"Str":{"pattern":"7CD"}},{"Str":{"pattern":"8CD"}},{"Str":{"pattern":"9CD"}},{"Str":{"pattern":"ACD"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"AMW"}},{"Str":{"pattern":"ANW"}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"BWG"}},{"Str":{"pattern":"CAN"}},{"Str":{"pattern":"CDM"}},{"Str":{"pattern":"CDV"}},{"Str":{"pattern":"COR"}},{"Str":{"pattern":"Cor"}},{"Str":{"pattern":"DAM"}},{"Str":{"pattern":"DTR"}},{"Str":{"pattern":"DTS"}},{"Str":{"pattern":"ISH"}},{"Str":{"pattern":"PAS"}},{"Str":{"pattern":"PNW"}},{"Str":{"pattern":"PRF"}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"SRD"}},{"Str":{"pattern":"TRF"}},{"Str":{"pattern":"CA"}},{"Str":{"pattern":"CD"}},{"Str":{"pattern":"CS"}},{"Str":{"pattern":"NP"}},{"Str":{"pattern":"OD"}},{"Str":{"pattern":"RR"}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Str":{"pattern":"WD"}},{"Alternative":{"atoms":[290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419]}},{"Named":{"name":"type_with_stage","atom":420}},{"Entity":{"atom":28}},{"Named":{"name":"stage_iteration","atom":422}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[423,424]}},{"Repetition":{"atom":425,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[421,426]}},{"Str":{"pattern":""}},{"Named":{"name":"type_with_stage","atom":428}},{"Alternative":{"atoms":[289,429]}},{"Entity":{"atom":6}},{"Repetition":{"atom":431,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Entity":{"atom":440}},{"Str":{"pattern":"CISPR"}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[435,436]}},{"Named":{"name":"trf_org","atom":437}},{"Entity":{"atom":116}},{"Sequence":{"atoms":[438,439]}},{"Entity":{"atom":116}},{"Alternative":{"atoms":[434,441]}},{"Entity":{"atom":447}},{"Entity":{"atom":131}},{"Entity":{"atom":28}},{"Named":{"name":"stage_iteration","atom":445}},{"Sequence":{"atoms":[444,446]}},{"Repetition":{"atom":443,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Repetition":{"atom":449,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":488}},{"Entity":{"atom":453}},{"Str":{"pattern":":"}},{"Entity":{"atom":35}},{"Alternative":{"atoms":[452,454]}},{"Entity":{"atom":487}},{"Entity":{"atom":460}},{"Str":{"pattern":"--"}},{"Str":{"pattern":"—"}},{"Alternative":{"atoms":[458,459]}},{"Named":{"name":"undated_marker","atom":457}},{"Entity":{"atom":486}},{"Entity":{"atom":472}},{"Entity":{"atom":467}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[465,466]}},{"Entity":{"atom":28}},{"Repetition":{"atom":468,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":28}},{"Lookahead":{"atom":470,"positive":false}},{"Sequence":{"atoms":[464,469,471]}},{"Entity":{"atom":35}},{"Entity":{"atom":476}},{"Entity":{"atom":28}},{"Repetition":{"atom":475,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[473,474]}},{"Repetition":{"atom":477,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":35}},{"Entity":{"atom":482}},{"Entity":{"atom":28}},{"Repetition":{"atom":481,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[479,480]}},{"Repetition":{"atom":483,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[463,478,484]}},{"Named":{"name":"date","atom":485}},{"Alternative":{"atoms":[461,462]}},{"Sequence":{"atoms":[455,456]}},{"Sequence":{"atoms":[450,451]}},{"Repetition":{"atom":489,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":508}},{"Entity":{"atom":506}},{"Str":{"pattern":"+"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"COR"}},{"Alternative":{"atoms":[494,495]}},{"Named":{"name":"supplement_type","atom":496}},{"Entity":{"atom":28}},{"Repetition":{"atom":498,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":499}},{"Entity":{"atom":453}},{"Entity":{"atom":472}},{"Named":{"name":"supplement_year","atom":502}},{"Sequence":{"atoms":[501,503]}},{"Repetition":{"atom":504,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[493,497,500,505]}},{"Repetition":{"atom":492,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"consolidated_supplements","atom":507}},{"Repetition":{"atom":491,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":527}},{"Entity":{"atom":6}},{"Entity":{"atom":520}},{"Str":{"pattern":"CSV"}},{"Str":{"pattern":"CMV"}},{"Str":{"pattern":"RLV"}},{"Str":{"pattern":"SER"}},{"Str":{"pattern":"EXV"}},{"Str":{"pattern":"PAC"}},{"Str":{"pattern":"PRV"}},{"Alternative":{"atoms":[513,514,515,516,517,518,519]}},{"Entity":{"atom":35}},{"Entity":{"atom":520}},{"Sequence":{"atoms":[521,522]}},{"Repetition":{"atom":523,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[512,524]}},{"Named":{"name":"vap_suffix","atom":525}},{"Sequence":{"atoms":[511,526]}},{"Entity":{"atom":532}},{"Entity":{"atom":6}},{"Str":{"pattern":"DB"}},{"Named":{"name":"database","atom":530}},{"Sequence":{"atoms":[529,531]}},{"Alternative":{"atoms":[510,528]}},{"Repetition":{"atom":533,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[442,448,490,509,534]}},{"Entity":{"atom":541}},{"Entity":{"atom":6}},{"Repetition":{"atom":537,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":138}},{"Repetition":{"atom":539,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[538,540]}},{"Sequence":{"atoms":[276,284,286,288,430,432,433,536]}},{"Named":{"name":"base","atom":268}},{"Entity":{"atom":552}},{"Entity":{"atom":162}},{"Entity":{"atom":28}},{"Repetition":{"atom":546,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"sheet_number","atom":547}},{"Entity":{"atom":453}},{"Entity":{"atom":472}},{"Named":{"name":"sheet_year","atom":550}},{"Sequence":{"atoms":[545,548,549,551]}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Str":{"pattern":"Technology Report"}},{"Str":{"pattern":"Trend Report"}},{"Str":{"pattern":"White Paper"}},{"Str":{"pattern":"ANW Guide"}},{"Str":{"pattern":"PRF Guide"}},{"Str":{"pattern":"PWI Guide"}},{"Str":{"pattern":"ANW Frag"}},{"Str":{"pattern":"CD Guide"}},{"Str":{"pattern":"NP Guide"}},{"Str":{"pattern":"PRF Frag"}},{"Str":{"pattern":"PWI Frag"}},{"Str":{"pattern":"WD Guide"}},{"Str":{"pattern":"ANW Amd"}},{"Str":{"pattern":"ANW Cor"}},{"Str":{"pattern":"ANW ISH"}},{"Str":{"pattern":"ANW PAS"}},{"Str":{"pattern":"FDGuide"}},{"Str":{"pattern":"NP Frag"}},{"Str":{"pattern":"PRF Amd"}},{"Str":{"pattern":"PRF Cor"}},{"Str":{"pattern":"PWI Amd"}},{"Str":{"pattern":"PWI Cor"}},{"Str":{"pattern":"PWI ISH"}},{"Str":{"pattern":"PWI PAS"}},{"Str":{"pattern":"WD Frag"}},{"Str":{"pattern":"ANW TR"}},{"Str":{"pattern":"ANW TS"}},{"Str":{"pattern":"CDFRAG"}},{"Str":{"pattern":"DELPUB"}},{"Str":{"pattern":"DGuide"}},{"Str":{"pattern":"FDFRAG"}},{"Str":{"pattern":"NP Amd"}},{"Str":{"pattern":"NP Cor"}},{"Str":{"pattern":"NP ISH"}},{"Str":{"pattern":"NP PAS"}},{"Str":{"pattern":"PWI TR"}},{"Str":{"pattern":"PWI TS"}},{"Str":{"pattern":"WD Amd"}},{"Str":{"pattern":"WD ISH"}},{"Str":{"pattern":"WD PAS"}},{"Str":{"pattern":"CD TR"}},{"Str":{"pattern":"CD TS"}},{"Str":{"pattern":"CDCor"}},{"Str":{"pattern":"CDISH"}},{"Str":{"pattern":"CDPAS"}},{"Str":{"pattern":"CFDIS"}},{"Str":{"pattern":"DFRAG"}},{"Str":{"pattern":"FDCOR"}},{"Str":{"pattern":"GUIDE"}},{"Str":{"pattern":"Guide"}},{"Str":{"pattern":"NADIS"}},{"Str":{"pattern":"NFDIS"}},{"Str":{"pattern":"NP TR"}},{"Str":{"pattern":"NP TS"}},{"Str":{"pattern":"RDISH"}},{"Str":{"pattern":"RFDIS"}},{"Str":{"pattern":"WD TR"}},{"Str":{"pattern":"WD TS"}},{"Str":{"pattern":"WDCor"}},{"Str":{"pattern":"A2CD"}},{"Str":{"pattern":"A3CD"}},{"Str":{"pattern":"A4CD"}},{"Str":{"pattern":"A5CD"}},{"Str":{"pattern":"A6CD"}},{"Str":{"pattern":"A7CD"}},{"Str":{"pattern":"A8CD"}},{"Str":{"pattern":"A9CD"}},{"Str":{"pattern":"ACDV"}},{"Str":{"pattern":"ADTR"}},{"Str":{"pattern":"ADTS"}},{"Str":{"pattern":"APUB"}},{"Str":{"pattern":"AWIN"}},{"Str":{"pattern":"BPUB"}},{"Str":{"pattern":"CCDV"}},{"Str":{"pattern":"CDAM"}},{"Str":{"pattern":"CDTR"}},{"Str":{"pattern":"CDTS"}},{"Str":{"pattern":"CDVM"}},{"Str":{"pattern":"DCOR"}},{"Str":{"pattern":"DISH"}},{"Str":{"pattern":"DPAS"}},{"Str":{"pattern":"DTRM"}},{"Str":{"pattern":"DTSM"}},{"Str":{"pattern":"FDAM"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"FRAG"}},{"Str":{"pattern":"NCDV"}},{"Str":{"pattern":"NDTR"}},{"Str":{"pattern":"NDTS"}},{"Str":{"pattern":"NWIP"}},{"Str":{"pattern":"PPUB"}},{"Str":{"pattern":"WPUB"}},{"Str":{"pattern":"2CD"}},{"Str":{"pattern":"3CD"}},{"Str":{"pattern":"4CD"}},{"Str":{"pattern":"5CD"}},{"Str":{"pattern":"6CD"}},{"Str":{"pattern":"7CD"}},{"Str":{"pattern":"8CD"}},{"Str":{"pattern":"9CD"}},{"Str":{"pattern":"ACD"}},{"Str":{"pattern":"AMD"}},{"Str":{"pattern":"AMW"}},{"Str":{"pattern":"ANW"}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"BWG"}},{"Str":{"pattern":"CAN"}},{"Str":{"pattern":"CDM"}},{"Str":{"pattern":"CDV"}},{"Str":{"pattern":"COR"}},{"Str":{"pattern":"Cor"}},{"Str":{"pattern":"DAM"}},{"Str":{"pattern":"DTR"}},{"Str":{"pattern":"DTS"}},{"Str":{"pattern":"ISH"}},{"Str":{"pattern":"PAS"}},{"Str":{"pattern":"PNW"}},{"Str":{"pattern":"PRF"}},{"Str":{"pattern":"PWI"}},{"Str":{"pattern":"SRD"}},{"Str":{"pattern":"TRF"}},{"Str":{"pattern":"CA"}},{"Str":{"pattern":"CD"}},{"Str":{"pattern":"CS"}},{"Str":{"pattern":"NP"}},{"Str":{"pattern":"OD"}},{"Str":{"pattern":"RR"}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Str":{"pattern":"WD"}},{"Alternative":{"atoms":[555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684]}},{"Str":{"pattern":"FRAGC"}},{"Str":{"pattern":"FRAG"}},{"Alternative":{"atoms":[685,686,687]}},{"Named":{"name":"type_with_stage","atom":688}},{"Entity":{"atom":6}},{"Repetition":{"atom":690,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Entity":{"atom":737}},{"Entity":{"atom":541}},{"Entity":{"atom":721}},{"Str":{"pattern":"("}},{"Entity":{"atom":719}},{"Entity":{"atom":699}},{"Entity":{"atom":21}},{"Repetition":{"atom":698,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[701,702]}},{"Repetition":{"atom":703,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[700,704]}},{"Entity":{"atom":713}},{"Re":{"pattern":"[E]"}},{"Re":{"pattern":"[F]"}},{"Re":{"pattern":"[A]"}},{"Re":{"pattern":"[R]"}},{"Re":{"pattern":"[D]"}},{"Re":{"pattern":"[S]"}},{"Alternative":{"atoms":[707,708,709,710,711,712]}},{"Entity":{"atom":162}},{"Repetition":{"atom":714,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[706,715]}},{"Alternative":{"atoms":[705,716]}},{"Repetition":{"atom":717,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":718}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[696,697,720]}},{"Repetition":{"atom":695,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":732}},{"Entity":{"atom":162}},{"Str":{"pattern":"FRAGC"}},{"Str":{"pattern":"FRAG"}},{"Alternative":{"atoms":[725,726]}},{"Named":{"name":"fragment_type","atom":727}},{"Entity":{"atom":28}},{"Repetition":{"atom":729,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"fragment_number","atom":730}},{"Sequence":{"atoms":[724,728,731]}},{"Repetition":{"atom":723,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":735}},{"Str":{"pattern":"(all parts)"}},{"Repetition":{"atom":734,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[694,722,733,736]}},{"Sequence":{"atoms":[543,544,553,554,691,692,693]}},{"Entity":{"atom":750}},{"Entity":{"atom":542}},{"Named":{"name":"base","atom":740}},{"Entity":{"atom":552}},{"Entity":{"atom":748}},{"Entity":{"atom":162}},{"Entity":{"atom":28}},{"Repetition":{"atom":745,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"sheet_number","atom":746}},{"Sequence":{"atoms":[744,747]}},{"Alternative":{"atoms":[742,743]}},{"Sequence":{"atoms":[741,749]}},{"Entity":{"atom":768}},{"Entity":{"atom":760}},{"Entity":{"atom":542}},{"Named":{"name":"base","atom":753}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Entity":{"atom":6}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Sequence":{"atoms":[754,755,756,758,759]}},{"Named":{"name":"base","atom":752}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Entity":{"atom":6}},{"Repetition":{"atom":764,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":535}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[761,762,763,765,766,767]}},{"Entity":{"atom":776}},{"Entity":{"atom":283}},{"Entity":{"atom":162}},{"Entity":{"atom":689}},{"Entity":{"atom":6}},{"Entity":{"atom":535}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[770,771,772,773,774,775]}},{"Entity":{"atom":780}},{"Entity":{"atom":760}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[778,779]}},{"Entity":{"atom":784}},{"Entity":{"atom":542}},{"Entity":{"atom":737}},{"Sequence":{"atoms":[782,783]}},{"Alternative":{"atoms":[0,142,235,267,739,751,769,777,781]}}],"root":785},"bindings":[]}},"preprocess":{},"tables":{"iec_typed_stages":{"file":"iec_typed_stages.yaml","rows":[{"abbr":"TRF"},{"abbr":"PWI Amd"},{"abbr":"NP Amd"},{"abbr":"ANW Amd"},{"abbr":"WD Amd"},{"abbr":"CDAM"},{"abbr":"DAM"},{"abbr":"FDAM"},{"abbr":"PRF Amd"},{"abbr":"Amd"},{"abbr":"AMD"},{"abbr":"PWI Cor"},{"abbr":"NP Cor"},{"abbr":"ANW Cor"},{"abbr":"WDCor"},{"abbr":"CDCor"},{"abbr":"DCOR"},{"abbr":"FDCOR"},{"abbr":"PRF Cor"},{"abbr":"Cor"},{"abbr":"COR"},{"abbr":"CS"},{"abbr":"CA"},{"abbr":"PWI Guide"},{"abbr":"NP Guide"},{"abbr":"ANW Guide"},{"abbr":"WD Guide"},{"abbr":"CD Guide"},{"abbr":"DGuide"},{"abbr":"FDGuide"},{"abbr":"PRF Guide"},{"abbr":"GUIDE"},{"abbr":"Guide"},{"abbr":"PWI"},{"abbr":"NWIP"},{"abbr":"BWG"},{"abbr":"AWIN"},{"abbr":"AMW"},{"abbr":"NP"},{"abbr":"PNW"},{"abbr":"ANW"},{"abbr":"WD"},{"abbr":"CD"},{"abbr":"2CD"},{"abbr":"3CD"},{"abbr":"4CD"},{"abbr":"5CD"},{"abbr":"6CD"},{"abbr":"7CD"},{"abbr":"8CD"},{"abbr":"9CD"},{"abbr":"ACD"},{"abbr":"A2CD"},{"abbr":"A3CD"},{"abbr":"A4CD"},{"abbr":"A5CD"},{"abbr":"A6CD"},{"abbr":"A7CD"},{"abbr":"A8CD"},{"abbr":"A9CD"},{"abbr":"CDM"},{"abbr":"CDV"},{"abbr":"ACDV"},{"abbr":"CCDV"},{"abbr":"CDVM"},{"abbr":"NCDV"},{"abbr":"FDIS"},{"abbr":"PRF"},{"abbr":"NFDIS"},{"abbr":"NADIS"},{"abbr":"RDISH"},{"abbr":"RFDIS"},{"abbr":"CFDIS"},{"abbr":"BPUB"},{"abbr":"PPUB"},{"abbr":"APUB"},{"abbr":"WPUB"},{"abbr":"DELPUB"},{"abbr":"RR"},{"abbr":"CAN"},{"abbr":"PWI ISH"},{"abbr":"NP ISH"},{"abbr":"ANW ISH"},{"abbr":"WD ISH"},{"abbr":"CDISH"},{"abbr":"DISH"},{"abbr":"ISH"},{"abbr":"OD"},{"abbr":"PWI PAS"},{"abbr":"NP PAS"},{"abbr":"ANW PAS"},{"abbr":"WD PAS"},{"abbr":"CDPAS"},{"abbr":"DPAS"},{"abbr":"PAS"},{"abbr":"Trend Report"},{"abbr":"PWI TR"},{"abbr":"NP TR"},{"abbr":"ANW TR"},{"abbr":"WD TR"},{"abbr":"CD TR"},{"abbr":"DTR"},{"abbr":"ADTR"},{"abbr":"CDTR"},{"abbr":"DTRM"},{"abbr":"NDTR"},{"abbr":"DTSM"},{"abbr":"TR"},{"abbr":"SRD"},{"abbr":"Technology Report"},{"abbr":"PWI TS"},{"abbr":"NP TS"},{"abbr":"ANW TS"},{"abbr":"WD TS"},{"abbr":"CD TS"},{"abbr":"DTS"},{"abbr":"ADTS"},{"abbr":"CDTS"},{"abbr":"NDTS"},{"abbr":"TS"},{"abbr":"White Paper"},{"abbr":"PWI Frag"},{"abbr":"NP Frag"},{"abbr":"ANW Frag"},{"abbr":"WD Frag"},{"abbr":"CDFRAG"},{"abbr":"DFRAG"},{"abbr":"FDFRAG"},{"abbr":"PRF Frag"},{"abbr":"FRAG"}]}},"lint":{"order_warnings":["rule dash: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule tc_type: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule tc_body: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule technical_group: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule wp_number: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule number: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule vap_code: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule vap_code: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule edition_str: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule guide_prefix: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"IEC 60050","expect":{}},{"entry":"identifier","kind":"accept","input":"IEC 8601-1:2019","expect":{}},{"entry":"identifier","kind":"accept","input":"CISPR 16-1-1","expect":{}},{"entry":"identifier","kind":"accept","input":"IECQ OD 1234","expect":{}},{"entry":"identifier","kind":"accept","input":"IEC/TS 80000-1","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{"prefix_sole_publisher":"IEC publishers, longest-first: the qualified forms must precede\nthe bare \"IEC\"."},"source":"# Port of lib/pubid/iec/parser.rb. Deviations:\n# - joint_identifier (IEC x | ISO y) awaits PG cross-file imports; the\n# ISO joint grammar cannot be inlined at reasonable size. Noted here;\n# slots back into the root ahead of identifier_copublishers.\n# - the IEV → \"IEC 60050\" input shorthand is pre-parse normalization and\n# stays binder-side.\n\ngrammar PubidIec version \"0.1.0\" {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n letter = upper / lower\n alnum_char = upper / lower / digit\n word_ext_char = alnum_char / %x5F / %x26 / %x2C\n space = \" \"\n dash = \"-\" / \"‑\" / \"‐\"\n dot = \".\"\n slash = \"/\"\n colon = \":\"\n comma = \",\"\n century = \"19\" / \"20\"\n year_digits = century 2*digit !digit\n month_digits = 2*digit\n day_digits = 2*digit\n digits = 1*digit\n\n ## IEC publishers, longest-first: the qualified forms must precede\n ## the bare \"IEC\".\n # CEI is IEC's French spelling (pubid#488): French-language IEC\n # documents print \"CEI ...\" identifiers; it parses as the IEC publisher.\n prefix_sole_publisher = (\"IECQ OD\" / \"IECQ CS\" / \"IEC CAB\" / \"IEC CA\" / \"IECRE\" / \"CISPR\" / \"IECEE\" / \"IECEx\" / \"IECQ\" / \"IEC\" / \"ISO\" / \"CEI\") as publisher\n organization = \"IEC\" / \"ISO\" / \"IEEE\" / \"CIW\" / \"SAE\" / \"CIE\" / \"ASME\" / \"ASTM\" / \"OECD\" / \"HL7\" / \"CEI\" / \"UNDP\"\n copublishers_item = slash [space] organization as copublisher\n copublishers = (*copublishers_item) as copublishers\n prefix_with_copublishers = prefix_sole_publisher [space] [copublishers]\n\n tc_type = \"JTC\" / \"JPC\" / \"TC\" / \"SC\" / \"PC\"\n tc_body = \"CISPR\" / (\"CIS\" slash upper) / (tc_type space digits [*upper])\n sc_body = \"SC\" space digits [*upper]\n technical_group_with_publisher = (prefix_sole_publisher [copublishers] space tc_body as technical_committee [((slash [space] sc_body) as subcommittee)])\n technical_group_bare = (tc_body as technical_committee [((slash [space] sc_body) as subcommittee)])\n technical_group = technical_group_with_publisher / technical_group_bare\n\n wp_type = ((\"TR\" / \"TS\" / \"SRD\") space) as wp_type\n wp_number = ((1*letter *alnum_char [(dash 1*digit)]) as number_with_part) / number_with_part\n working_programme = ((\"PWI\" / \"PNW\") as wp_stage space [wp_type] wp_number [(space edition)])\n\n working_document = (((\"JTC1-SC\" 1*digit) / (1*upper slash 1*upper) / 1*alnum_char) as technical_committee slash (1*alnum_char) as wd_number [(\"(\" upper as wd_language \")\")] [(slash (1*upper) as wd_stage)])\n\n number = ((\"DIR\" *(space 1*upper_digit)) / \"VIM\" / \"SYMBOL\" / (1*6digit \"v\" 1*digit *letter [(\"_\" 1*letter)]) / (2*4upper [(dash 1*digit)] *upper_digit) / (1*6digit [*1letter [(\"_\" 1*letter)]]))\n upper_digit = upper / digit\n part_and_subpart = (dash / comma) [space] 1*word_ext_char *((dash / comma) 1*word_ext_char)\n number_with_part = (number [part_and_subpart]) as number_with_part\n trf_org_number = (\"CISPR\" space) as trf_org number_with_part\n stage_iteration = dot digit as stage_iteration\n\n undated = \"--\" / \"—\"\n full_date = (year_digits [(dash month_digits)] [(dash day_digits)]) as date\n date_body = undated as undated_marker / full_date\n date = (colon / dash) date_body\n\n vap_code = \"CSV\" / \"CMV\" / \"RLV\" / \"SER\" / \"EXV\" / \"PAC\" / \"PRV\"\n vap_suffix = space (vap_code *(dash vap_code)) as vap_suffix\n database_suffix = space \"DB\" as database\n consolidated_supplement = \"+\" (\"AMD\" / \"COR\") as supplement_type (1*digit) as supplement_number [(colon year_digits as supplement_year)]\n consolidated_supplements = (1*consolidated_supplement) as consolidated_supplements\n second_part = (trf_org_number / number_with_part) [stage_iteration] [[space] date] [consolidated_supplements] [vap_suffix / database_suffix]\n\n edition_str = \"Edition\" / \"Ed.\" / \"ED\" / \"Ed\"\n edition = edition_str [space] (1*digit [(dot 1*digit)]) as edition\n\n one_of_efards = %x45 / %x46 / %x41 / %x52 / %x44 / %x53\n lower_char = lower\n # The house-style separator is \"-\" (pubid#491); \",\" stays accepted.\n languages = (*(1*lower_char [(\",\" / \"-\")] / (one_of_efards [slash]))) as languages\n language = \"(\" languages \")\"\n all_parts = \"(all parts)\"\n fragment_notation = slash (\"FRAGC\" / \"FRAG\") as fragment_type (1*digit) as fragment_number\n third_part_edition = [space] [edition]\n third_part = third_part_edition [language] [fragment_notation] [all_parts]\n\n type_with_stage = alt from_table \"iec_typed_stages\" column \"abbr\" as type_with_stage [digit as stage_iteration space]\n supplement_type_with_stage = (alt from_table \"iec_typed_stages\" column \"abbr\" / \"FRAGC\" / \"FRAG\") as type_with_stage\n\n guide_prefix = \"Guide\" / \"GUIDE\"\n identifier_copublishers_no_third = [guide_prefix as type_with_stage_fr space] [prefix_with_copublishers] [space] [slash] (type_with_stage / \"\" as type_with_stage) [space] second_part third_part_edition\n identifier_copublishers = identifier_copublishers_no_third third_part\n\n sheet_notation = slash (1*digit) as sheet_number colon year_digits as sheet_year\n sheet_notation_no_year = slash (1*digit) as sheet_number\n sheet_identifier = (identifier_copublishers_no_third as base) (sheet_notation / sheet_notation_no_year)\n sheet_supplement_identifier = (identifier_copublishers_no_third as base) sheet_notation slash supplement_type_with_stage [space] second_part third_part\n standalone_supplement = prefix_with_copublishers slash supplement_type_with_stage space second_part third_part\n supplement_identifier_no_third = (identifier_copublishers_no_third as base) slash supplement_type_with_stage [space] second_part\n supplement_identifier = supplement_identifier_no_third third_part\n supplement_supplement_identifier = (supplement_identifier_no_third as base) slash supplement_type_with_stage [space] second_part third_part\n\n identifier = working_programme / technical_group / working_document / sheet_supplement_identifier / sheet_identifier / supplement_supplement_identifier / standalone_supplement / supplement_identifier / identifier_copublishers\n\n entry identifier: identifier\n\n test {\n accept \"IEC 60050\"\n accept \"IEC 8601-1:2019\"\n accept \"CISPR 16-1-1\"\n accept \"IECQ OD 1234\"\n accept \"IEC/TS 80000-1\"\n reject \"nonsense\"\n }\n}\n","source_hash":"bb2256f5b8f08e4e397c783f6f294a3796b723b7a3755132f6200648d8be2379","compiler_version":"1.3.93","checksum":"sha256:92e5063ae6a6c20c6e285bc925cd735cdcb6379dfe0d91228354aa34cd1a9f33"}
|