@pubid/pubid 0.1.58 → 0.1.60
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/README.md +3 -3
- package/artifact/corpus.json.gz +0 -0
- package/dist/flavors/ansi/index.d.ts +1 -22
- package/dist/flavors/ansi/index.js +106 -132
- package/dist/flavors/ansi/model.d.ts +60 -0
- package/dist/flavors/ansi/model.js +107 -0
- package/dist/flavors/eu/index.js +37 -5
- package/dist/flavors/eu/model.d.ts +10 -1
- package/dist/flavors/eu/model.js +8 -4
- package/dist/flavors/index.js +3 -0
- package/dist/flavors/itu/grammar.js +12 -3
- package/dist/flavors/itu/index.js +5 -1
- package/dist/flavors/itu/model.d.ts +6 -0
- package/dist/flavors/itu/model.js +23 -0
- package/dist/flavors/register-types.d.ts +2 -1
- package/dist/flavors/register-types.js +2 -1
- package/dist/flavors/wmo/index.d.ts +3 -0
- package/dist/flavors/wmo/index.js +47 -0
- package/dist/flavors/wmo/model.d.ts +82 -0
- package/dist/flavors/wmo/model.js +135 -0
- package/dist/pubid-urn/schemas/ansi.js +3 -0
- package/dist/pubid-urn/schemas/eu.js +1 -0
- package/dist/pubid-urn/schemas/index.js +2 -0
- package/dist/pubid-urn/schemas/itu.js +1 -0
- package/dist/pubid-urn/schemas/wmo.d.ts +8 -0
- package/dist/pubid-urn/schemas/wmo.js +16 -0
- package/dist/urn/parsers.js +76 -0
- package/package.json +1 -1
- package/vendor/parg/ansi.json +1 -1
- package/vendor/parg/itu.json +1 -1
- package/vendor/parg/wmo.json +1 -0
package/vendor/parg/ansi.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidAnsi","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":85}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":1}},{"Entity":{"atom":18}},{"Entity":{"atom":16}},{"Str":{"pattern":"/"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"IEEE"}},{"Str":{"pattern":"SAE"}},{"Str":{"pattern":"ASME"}},{"Str":{"pattern":"ASTM"}},{"Alternative":{"atoms":[8,9,10,11,12,13]}},{"Named":{"name":"copublisher","atom":14}},{"Sequence":{"atoms":[5,7,15]}},{"Repetition":{"atom":4,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":17}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":20,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":58}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":23,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":25,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":28,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,29]}},{"Repetition":{"atom":30,"min":0,"max":3,"tag":"Repetition"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":32,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":33,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[35,37]}},{"Repetition":{"atom":38,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[24,26,31,34,39]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":41,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":44,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":47,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[43,45,48]}},{"Repetition":{"atom":49,"min":0,"max":2,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":52,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[51,53]}},{"Repetition":{"atom":54,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[42,50,55]}},{"Alternative":{"atoms":[40,56]}},{"Named":{"name":"number_with_part","atom":57}},{"Entity":{"atom":70}},{"Str":{"pattern":":"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[61,62]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":64,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Lookahead":{"atom":66,"positive":false}},{"Sequence":{"atoms":[63,65,67]}},{"Named":{"name":"date","atom":68}},{"Sequence":{"atoms":[60,69]}},{"Repetition":{"atom":59,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":83}},{"Str":{"pattern":"("}},{"Entity":{"atom":81}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":75,"min":2,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":77,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[76,78]}},{"Repetition":{"atom":79,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":80}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[73,74,82]}},{"Repetition":{"atom":72,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[2,3,19,21,22,71,84]}},{"Entity":{"atom":97}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":87}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":90,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":58}},{"Entity":{"atom":70}},{"Repetition":{"atom":93,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":83}},{"Repetition":{"atom":95,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[88,89,91,92,94,96]}},{"Alternative":{"atoms":[0,86]}}],"root":98},"bindings":[{"capture":"publisher","path":"publisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublishers[].copublisher","type":"string","card":null,"preprocess":null},{"capture":"number_with_part","path":"number_with_part","type":"string","card":null,"preprocess":null},{"capture":"date","path":"date","type":"string","card":null,"preprocess":null},{"capture":"languages","path":"languages","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["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 5 and 6 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":[{"entry":"identifier","kind":"accept","input":"ANSI C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/IEEE C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI Std A119.1","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/ansi/parser.rb: ANSI [copublishers] [Std] number\n# [:year][(languages)]. The number alternatives cover letter-prefixed\n# forms (C37.06.1, N323A) and plain dotted forms (802.1b-1995).\n#\n# Edition-2 notes: letter_head_part / plain_part / year_digits bodies are\n# inlined at the capture sites (a capture wrapping a rule ref expands to\n# element hashes, while the inlined body binds as one scalar string).\n# The copublishers wrapper stays a capture so the tree keeps the\n# {copublishers: [...]} shape the builder reads; the repeats collect by\n# occurrence under copublishers[].copublisher.\n\ngrammar PubidAnsi version \"0.1.0\" edition 2 {\n organization = \"ISO\" / \"IEC\" / \"IEEE\" / \"SAE\" / \"ASME\" / \"ASTM\"\n # The copublisher body is inlined to raw terms: bare rule refs next to\n # a capture drop the capture or materialize stray {slash:} nodes.\n copublisher_item = \"/\" [\" \"] ( \"ISO\" / \"IEC\" / \"IEEE\" / \"SAE\" / \"ASME\" / \"ASTM\" ) as copublisher\n copublishers = ( 1*copublisher_item ) as copublishers\n std_keyword = [\"Std \"]\n number_with_part = {\n (\n ( 1*(%x41-5A) 1*(%x30-39) *3(\".\" 1*(%x30-39)) [*1(%x41-5A)] [(\"-\" 1*(%x30-39))] )\n / ( 1*(%x30-39) *2(\".\" 1*(%x30-39) [*1(%x61-7A)]) [(\"-\" 1*(%x30-39))] )\n ) as number_with_part\n }\n date = \":\" ( (\"19\" / \"20\") 2*(%x30-39) !(%x30-39) ) as date\n languages = ( *( 2*(%x61-7A) [\",\"] ) ) as languages\n language = \"(\" languages \")\"\n identifier_with_copublishers = {\n \"ANSI\" as publisher copublishers \" \" [\"Std \"] number_with_part [date] [language]\n }\n identifier_sole = {\n \"ANSI\" as publisher \" \" [\"Std \"] number_with_part [date] [language]\n }\n identifier = identifier_with_copublishers / identifier_sole\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n dot = \".\"\n dash = \"-\"\n colon = \":\"\n slash = \"/\"\n space = \" \"\n entry identifier: identifier\n\n bindings identifier {\n publisher -> publisher (string)\n copublisher -> copublishers[].copublisher (string)\n number_with_part -> number_with_part (string)\n date -> date (string)\n languages -> languages (string)\n }\n\n test {\n accept \"ANSI C63.4\"\n accept \"ANSI/IEEE C63.4\"\n accept \"ANSI Std A119.1\"\n reject \"nonsense\"\n }\n}\n","source_hash":"7af31e7ba304c87eeb0d2ca1b94e534831a333153e1cb8db789e7c55eda6cc07","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:3871a8d8fe4577b6f268aedc1d5c0011206f37aff7b3dc0aeeb3ed146f26acad","checksum":"sha256:a545e04d1dca9458894cf7a5a06fc6b4897772df3ab2d31c2b45114fab0dc3b0","validated":{"lint_errors":0,"lint_warnings":5,"tests_total":4,"tests_failures":0,"self_test":true}}
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidAnsi","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":121}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":1}},{"Entity":{"atom":17}},{"Entity":{"atom":15}},{"Str":{"pattern":"/"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[9,10]}},{"Repetition":{"atom":11,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[8,12]}},{"Named":{"name":"copublisher","atom":13}},{"Sequence":{"atoms":[5,7,14]}},{"Repetition":{"atom":4,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":16}},{"Str":{"pattern":" "}},{"Str":{"pattern":"-"}},{"Named":{"name":"number_separator","atom":19}},{"Alternative":{"atoms":[18,20]}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":22,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":84}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":25,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":27,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":30,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[29,31]}},{"Repetition":{"atom":32,"min":0,"max":3,"tag":"Repetition"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":34,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":35,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":38,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[37,39]}},{"Repetition":{"atom":40,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[43,44]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":46,"min":2,"max":2,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Str":{"pattern":":"}},{"Alternative":{"atoms":[48,49]}},{"Lookahead":{"atom":50,"positive":false}},{"Sequence":{"atoms":[42,45,47,51]}},{"Repetition":{"atom":52,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[26,28,33,36,41,53]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":55,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":58,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":60,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":61,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[57,59,62]}},{"Repetition":{"atom":63,"min":0,"max":2,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":66,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[65,67]}},{"Repetition":{"atom":68,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[71,72]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":74,"min":2,"max":2,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Str":{"pattern":":"}},{"Alternative":{"atoms":[76,77]}},{"Lookahead":{"atom":78,"positive":false}},{"Sequence":{"atoms":[70,73,75,79]}},{"Repetition":{"atom":80,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[56,64,69,81]}},{"Alternative":{"atoms":[54,82]}},{"Named":{"name":"number_with_part","atom":83}},{"Entity":{"atom":93}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"revision","atom":87}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[89,90]}},{"Lookahead":{"atom":91,"positive":false}},{"Sequence":{"atoms":[86,88,92]}},{"Repetition":{"atom":85,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Str":{"pattern":":"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[97,98]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":100,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Lookahead":{"atom":102,"positive":false}},{"Sequence":{"atoms":[99,101,103]}},{"Named":{"name":"date","atom":104}},{"Sequence":{"atoms":[96,105]}},{"Repetition":{"atom":95,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Str":{"pattern":"("}},{"Entity":{"atom":117}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":111,"min":2,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[112,114]}},{"Repetition":{"atom":115,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":116}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[109,110,118]}},{"Repetition":{"atom":108,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[2,3,21,23,24,94,107,120]}},{"Entity":{"atom":135}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":123}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":126,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":84}},{"Entity":{"atom":93}},{"Repetition":{"atom":129,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":131,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Repetition":{"atom":133,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[124,125,127,128,130,132,134]}},{"Alternative":{"atoms":[0,122]}}],"root":136},"bindings":[{"capture":"publisher","path":"publisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublishers[].copublisher","type":"string","card":null,"preprocess":null},{"capture":"number_separator","path":"number_separator","type":"string","card":null,"preprocess":null},{"capture":"number_with_part","path":"number_with_part","type":"string","card":null,"preprocess":null},{"capture":"revision","path":"revision","type":"string","card":null,"preprocess":null},{"capture":"date","path":"date","type":"string","card":null,"preprocess":null},{"capture":"languages","path":"languages","type":"string","card":null,"preprocess":null}]}},"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":"ANSI C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/IEEE C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI Std A119.1","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI X9.62-2005","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/UL 94-2023","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/NISO Z39.88-2004","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ASHRAE/IES 90.1-2019","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/AAMI ST79:2017","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ISA-5.1-2009","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ANS-8.1-2014","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ISA-61511-1-2018","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/TIA-568.2-D","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI X9.8-1-2007","expect":{}},{"entry":"identifier","kind":"reject","input":"ANSI/TIA-568.2-DE","expect":{}},{"entry":"identifier","kind":"reject","input":"ANSI X9.8-1-2007:2009","expect":{}},{"entry":"identifier","kind":"reject","input":"ANSI/ul 94-2023","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/ansi/parser.rb: ANSI [copublishers] [Std] number\n# [:year][(languages)]. The number alternatives cover letter-prefixed\n# forms (C37.06.1, N323A) and plain dotted forms (802.1b-1995).\n#\n# Edition-2 notes: letter_head_part / plain_part / year_digits bodies are\n# inlined at the capture sites (a capture wrapping a rule ref expands to\n# element hashes, while the inlined body binds as one scalar string).\n# The copublishers wrapper stays a capture so the tree keeps the\n# {copublishers: [...]} shape the builder reads; the repeats collect by\n# occurrence under copublishers[].copublisher.\n\ngrammar PubidAnsi version \"0.1.0\" edition 2 {\n # Any uppercase developer acronym co-publishes (relaton#45): ASHRAE,\n # UL, NISO, INCITS, HL7, ASC ... An uppercase letter, then uppercase\n # letters or digits. The copublisher body is inlined to raw terms: bare\n # rule refs next to a capture drop the capture or materialize stray\n # {slash:} nodes.\n copublisher_item = \"/\" [\" \"] ( %x41-5A 1*(%x41-5A / %x30-39) ) as copublisher\n copublishers = ( 1*copublisher_item ) as copublishers\n std_keyword = [\"Std \"]\n number_with_part = {\n (\n ( 1*(%x41-5A) 1*(%x30-39) *3(\".\" 1*(%x30-39)) [*1(%x41-5A)] [(\"-\" 1*(%x30-39))] [(\"-\" (\"19\" / \"20\") 2*2(%x30-39) !(%x30-39 / \":\"))] )\n / ( 1*(%x30-39) *2(\".\" 1*(%x30-39) [*1(%x61-7A)]) [(\"-\" 1*(%x30-39))] [(\"-\" (\"19\" / \"20\") 2*2(%x30-39) !(%x30-39 / \":\"))] )\n ) as number_with_part\n }\n # A revision letter after a dash: \"ANSI/TIA-568.2-D\". One uppercase\n # letter, not the start of a word.\n revision = \"-\" ( %x41-5A ) as revision !(%x41-5A / %x30-39)\n date = \":\" ( (\"19\" / \"20\") 2*(%x30-39) !(%x30-39) ) as date\n languages = ( *( 2*(%x61-7A) [\",\"] ) ) as languages\n language = \"(\" languages \")\"\n identifier_with_copublishers = {\n \"ANSI\" as publisher copublishers ( \" \" / ( \"-\" as number_separator ) ) [\"Std \"] number_with_part [revision] [date] [language]\n }\n identifier_sole = {\n \"ANSI\" as publisher \" \" [\"Std \"] number_with_part [revision] [date] [language]\n }\n identifier = identifier_with_copublishers / identifier_sole\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n dot = \".\"\n dash = \"-\"\n colon = \":\"\n slash = \"/\"\n space = \" \"\n entry identifier: identifier\n\n bindings identifier {\n publisher -> publisher (string)\n copublisher -> copublishers[].copublisher (string)\n number_separator -> number_separator (string)\n number_with_part -> number_with_part (string)\n revision -> revision (string)\n date -> date (string)\n languages -> languages (string)\n }\n\n test {\n accept \"ANSI C63.4\"\n accept \"ANSI/IEEE C63.4\"\n accept \"ANSI Std A119.1\"\n accept \"ANSI X9.62-2005\"\n accept \"ANSI/UL 94-2023\"\n accept \"ANSI/NISO Z39.88-2004\"\n accept \"ANSI/ASHRAE/IES 90.1-2019\"\n accept \"ANSI/AAMI ST79:2017\"\n accept \"ANSI/ISA-5.1-2009\"\n accept \"ANSI/ANS-8.1-2014\"\n accept \"ANSI/ISA-61511-1-2018\"\n accept \"ANSI/TIA-568.2-D\"\n accept \"ANSI X9.8-1-2007\"\n reject \"ANSI/TIA-568.2-DE\"\n reject \"ANSI X9.8-1-2007:2009\"\n reject \"ANSI/ul 94-2023\"\n reject \"nonsense\"\n }\n}\n","source_hash":"7f83a90c91a2f4d44f6f237f6846c459b2f7267bca93dfe4d35d398acc86bac4","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:a06924c35d3c09a9312502da2680f1b4443a6e9ed883b9d65677669c4765f845","checksum":"sha256:4c8463acb6b5bda76db7dc5804dec123b74ca298f3f5ac35aee3b11f07284c57","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":17,"tests_failures":0,"self_test":true}}
|
package/vendor/parg/itu.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidItu","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":800}},{"Entity":{"atom":788}},{"Entity":{"atom":163}},{"Str":{"pattern":"Annex to"}},{"Entity":{"atom":5}},{"Str":{"pattern":" "}},{"Entity":{"atom":161}},{"Entity":{"atom":108}},{"Entity":{"atom":21}},{"Str":{"pattern":"Recommendation "}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Str":{"pattern":"-"}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[11,13]}},{"Sequence":{"atoms":[9,10,14]}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[17,18]}},{"Sequence":{"atoms":[16,19]}},{"Alternative":{"atoms":[15,20]}},{"Entity":{"atom":27}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"T"}},{"Str":{"pattern":"D"}},{"Alternative":{"atoms":[23,24,25]}},{"Named":{"name":"sector","atom":26}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[22,28]}},{"Repetition":{"atom":29,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":33}},{"Str":{"pattern":"OB"}},{"Named":{"name":"series","atom":32}},{"Entity":{"atom":42}},{"Entity":{"atom":36}},{"Str":{"pattern":"."}},{"Entity":{"atom":41}},{"Entity":{"atom":39}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":38,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":40}},{"Sequence":{"atoms":[35,37]}},{"Entity":{"atom":48}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[44,45,46,47]}},{"Entity":{"atom":52}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[50,51]}},{"Alternative":{"atoms":[34,43,49]}},{"Entity":{"atom":94}},{"Entity":{"atom":68}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":58,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"month","atom":59}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[60,61]}},{"Repetition":{"atom":62,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":64,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":65}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[56,57,63,66,67]}},{"Entity":{"atom":93}},{"Str":{"pattern":" - "}},{"Entity":{"atom":39}},{"Repetition":{"atom":71,"min":2,"max":2,"tag":"Repetition"}},{"Named":{"name":"day","atom":72}},{"Entity":{"atom":36}},{"Entity":{"atom":87}},{"Str":{"pattern":"XII"}},{"Str":{"pattern":"XI"}},{"Str":{"pattern":"IX"}},{"Str":{"pattern":"VIII"}},{"Str":{"pattern":"VII"}},{"Str":{"pattern":"VI"}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"IV"}},{"Str":{"pattern":"III"}},{"Str":{"pattern":"II"}},{"Str":{"pattern":"I"}},{"Alternative":{"atoms":[76,77,78,79,80,81,82,83,84,85,86]}},{"Named":{"name":"roman_month","atom":75}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":90,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":91}},{"Sequence":{"atoms":[70,73,74,88,89,92]}},{"Alternative":{"atoms":[55,69]}},{"Repetition":{"atom":54,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Entity":{"atom":12}},{"Str":{"pattern":"E"}},{"Str":{"pattern":"F"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"R"}},{"Alternative":{"atoms":[98,99,100,101,102,103]}},{"Named":{"name":"language","atom":104}},{"Sequence":{"atoms":[97,105]}},{"Repetition":{"atom":96,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[8,30,31,53,95,107]}},{"Entity":{"atom":160}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[111,112]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Operational Bulletin"}},{"Named":{"name":"_op_bull","atom":115}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":156}},{"Entity":{"atom":68}},{"Entity":{"atom":155}},{"Entity":{"atom":143}},{"Entity":{"atom":12}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[126,127]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[128,129,130]}},{"Named":{"name":"year","atom":131}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[133,134]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[136,137]}},{"Alternative":{"atoms":[135,138]}},{"Named":{"name":"month","atom":139}},{"Entity":{"atom":39}},{"Lookahead":{"atom":141,"positive":false}},{"Sequence":{"atoms":[125,132,140,142]}},{"Entity":{"atom":153}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Entity":{"atom":150}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Alternative":{"atoms":[147,148]}},{"Lookahead":{"atom":151,"positive":false}},{"Sequence":{"atoms":[145,146,152]}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[124,154]}},{"Alternative":{"atoms":[122,123]}},{"Repetition":{"atom":121,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":158,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[110,114,116,117,118,119,120,157,159]}},{"Alternative":{"atoms":[7,109]}},{"Named":{"name":"annex_to","atom":6}},{"Sequence":{"atoms":[3,4,162]}},{"Entity":{"atom":161}},{"Entity":{"atom":618}},{"Entity":{"atom":603}},{"Entity":{"atom":567}},{"Entity":{"atom":482}},{"Entity":{"atom":467}},{"Entity":{"atom":341}},{"Entity":{"atom":173}},{"Str":{"pattern":"Report"}},{"Named":{"name":"report_marker","atom":172}},{"Entity":{"atom":5}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[179,180]}},{"Lookahead":{"atom":181,"positive":false}},{"Entity":{"atom":191}},{"Str":{"pattern":"SG"}},{"Entity":{"atom":39}},{"Repetition":{"atom":185,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[184,186]}},{"Entity":{"atom":150}},{"Repetition":{"atom":188,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[187,189]}},{"Named":{"name":"series","atom":190}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[183,192]}},{"Repetition":{"atom":193,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":271}},{"Entity":{"atom":241}},{"Str":{"pattern":"Imp"}},{"Named":{"name":"imp_marker","atom":197}},{"Entity":{"atom":39}},{"Repetition":{"atom":199,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":201,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[200,202]}},{"Named":{"name":"number","atom":203}},{"Entity":{"atom":210}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":207,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subseries","atom":208}},{"Sequence":{"atoms":[206,209]}},{"Repetition":{"atom":205,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":238}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Entity":{"atom":222}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[217,218]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[219,220,221]}},{"Entity":{"atom":230}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[224,225]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[227,228]}},{"Alternative":{"atoms":[226,229]}},{"Entity":{"atom":39}},{"Lookahead":{"atom":231,"positive":false}},{"Sequence":{"atoms":[216,223,232]}},{"Lookahead":{"atom":215,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":235,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":236}},{"Sequence":{"atoms":[214,234,237]}},{"Repetition":{"atom":213,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"parts","atom":239}},{"Sequence":{"atoms":[198,204,211,212]}},{"Entity":{"atom":270}},{"Entity":{"atom":41}},{"Entity":{"atom":251}},{"Entity":{"atom":250}},{"Str":{"pattern":"bis"}},{"Str":{"pattern":"ter"}},{"Str":{"pattern":"quater"}},{"Str":{"pattern":"quarter"}},{"Alternative":{"atoms":[246,247,248,249]}},{"Named":{"name":"series_suffix","atom":245}},{"Repetition":{"atom":244,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":210}},{"Repetition":{"atom":253,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":257}},{"Entity":{"atom":268}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[258,259]}},{"Named":{"name":"qualifier","atom":260}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[262,263,265]}},{"Lookahead":{"atom":266,"positive":false}},{"Sequence":{"atoms":[261,267]}},{"Repetition":{"atom":256,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[243,252,254,255,269]}},{"Alternative":{"atoms":[196,242]}},{"Entity":{"atom":281}},{"Entity":{"atom":12}},{"Entity":{"atom":150}},{"Repetition":{"atom":274,"min":1,"max":3,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":277,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[275,276,278]}},{"Named":{"name":"range_end","atom":279}},{"Sequence":{"atoms":[273,280]}},{"Repetition":{"atom":272,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":289}},{"Entity":{"atom":5}},{"Named":{"name":"series_suffix_spaced","atom":285}},{"Entity":{"atom":250}},{"Named":{"name":"series_suffix","atom":287}},{"Sequence":{"atoms":[286,288]}},{"Repetition":{"atom":284,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":295}},{"Entity":{"atom":5}},{"Named":{"name":"qualifier_spaced","atom":292}},{"Entity":{"atom":268}},{"Sequence":{"atoms":[293,294]}},{"Repetition":{"atom":291,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[290,296]}},{"Entity":{"atom":302}},{"Entity":{"atom":5}},{"Str":{"pattern":"series"}},{"Named":{"name":"series_word","atom":300}},{"Sequence":{"atoms":[299,301]}},{"Repetition":{"atom":298,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Entity":{"atom":5}},{"Str":{"pattern":"attachment"}},{"Named":{"name":"attachment","atom":306}},{"Sequence":{"atoms":[305,307]}},{"Repetition":{"atom":304,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Entity":{"atom":5}},{"Str":{"pattern":"(V"}},{"Entity":{"atom":39}},{"Repetition":{"atom":313,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":314}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[312,315,316]}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"v"}},{"Alternative":{"atoms":[318,319]}},{"Entity":{"atom":36}},{"Repetition":{"atom":321,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":323,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":324}},{"Sequence":{"atoms":[320,322,325]}},{"Alternative":{"atoms":[317,326]}},{"Sequence":{"atoms":[311,327]}},{"Repetition":{"atom":310,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":330,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[182,194,195,282,283,303,309,329,331]}},{"Sequence":{"atoms":[171,174,175,176,177,178]}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":173}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Sequence":{"atoms":[334,335,336,337,338,339]}},{"Alternative":{"atoms":[333,340]}},{"Entity":{"atom":426}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":5}},{"Entity":{"atom":12}},{"Alternative":{"atoms":[348,349]}},{"Sequence":{"atoms":[347,350]}},{"Repetition":{"atom":346,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":356,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Entity":{"atom":414}},{"Str":{"pattern":"/"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":367}},{"Entity":{"atom":39}},{"Repetition":{"atom":365,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_number","atom":366}},{"Entity":{"atom":373}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":370,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_subseries","atom":371}},{"Sequence":{"atoms":[369,372]}},{"Repetition":{"atom":368,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":385}},{"Entity":{"atom":383}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Lookahead":{"atom":378,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":380,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_part","atom":381}},{"Sequence":{"atoms":[377,379,382]}},{"Repetition":{"atom":376,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_parts","atom":384}},{"Entity":{"atom":387}},{"Entity":{"atom":397}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[388,389]}},{"Named":{"name":"d_qualifier","atom":390}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[392,393,394]}},{"Lookahead":{"atom":395,"positive":false}},{"Sequence":{"atoms":[391,396]}},{"Repetition":{"atom":386,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":404}},{"Entity":{"atom":5}},{"Named":{"name":"d_series_suffix_spaced","atom":400}},{"Entity":{"atom":250}},{"Named":{"name":"d_series_suffix","atom":402}},{"Sequence":{"atoms":[401,403]}},{"Repetition":{"atom":399,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":410}},{"Entity":{"atom":5}},{"Named":{"name":"d_qualifier_spaced","atom":407}},{"Entity":{"atom":397}},{"Sequence":{"atoms":[408,409]}},{"Repetition":{"atom":406,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[362,363,364,374,375,398,405,411]}},{"Named":{"name":"designation","atom":412}},{"Sequence":{"atoms":[361,413]}},{"Repetition":{"atom":360,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"combined","atom":415}},{"Repetition":{"atom":359,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":418,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":420,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":422,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":424,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[343,344,345,352,353,354,355,357,358,417,419,421,423,425]}},{"Entity":{"atom":439}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":433,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":435,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":437,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[428,429,430,431,432,434,436,438]}},{"Entity":{"atom":466}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":461}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":12}},{"Sequence":{"atoms":[445,446]}},{"Lookahead":{"atom":447,"positive":false}},{"Entity":{"atom":150}},{"Repetition":{"atom":449,"min":2,"max":null,"tag":"Repetition"}},{"Named":{"name":"series","atom":450}},{"Entity":{"atom":12}},{"Named":{"name":"series_dash","atom":452}},{"Entity":{"atom":39}},{"Repetition":{"atom":454,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":456,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[455,457]}},{"Named":{"name":"number","atom":458}},{"Entity":{"atom":240}},{"Sequence":{"atoms":[448,451,453,459,460]}},{"Entity":{"atom":328}},{"Repetition":{"atom":462,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":464,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[441,442,443,444,463,465]}},{"Alternative":{"atoms":[170,342,427,440]}},{"Named":{"name":"base","atom":169}},{"Entity":{"atom":5}},{"Str":{"pattern":"Annex"}},{"Entity":{"atom":5}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":473,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":474,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"+"}},{"Repetition":{"atom":476,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[472,475,477]}},{"Named":{"name":"annex_number","atom":478}},{"Entity":{"atom":156}},{"Repetition":{"atom":480,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[468,469,470,471,479,481]}},{"Named":{"name":"base","atom":168}},{"Entity":{"atom":507}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":485}},{"Entity":{"atom":5}},{"Str":{"pattern":"App."}},{"Entity":{"atom":5}},{"Repetition":{"atom":489,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[I]"}},{"Re":{"pattern":"[V]"}},{"Re":{"pattern":"[X]"}},{"Alternative":{"atoms":[491,492,493]}},{"Repetition":{"atom":494,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"appendix_number","atom":495}},{"Entity":{"atom":503}},{"Entity":{"atom":5}},{"Str":{"pattern":"test vectors"}},{"Str":{"pattern":"Software"}},{"Alternative":{"atoms":[499,500]}},{"Named":{"name":"appendix_material","atom":501}},{"Sequence":{"atoms":[498,502]}},{"Repetition":{"atom":497,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":505,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[486,487,488,490,496,504,506]}},{"Named":{"name":"base","atom":484}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":509}},{"Alternative":{"atoms":[483,508,510]}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Str":{"pattern":"Suppl."}},{"Str":{"pattern":"Suppl"}},{"Str":{"pattern":"Amd."}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"Add."}},{"Str":{"pattern":"Add"}},{"Str":{"pattern":"Err."}},{"Str":{"pattern":"Err"}},{"Alternative":{"atoms":[514,515,516,517,518,519,520,521]}},{"Named":{"name":"supplement_type","atom":522}},{"Entity":{"atom":528}},{"Str":{"pattern":"Technical"}},{"Named":{"name":"technical","atom":525}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[526,527]}},{"Repetition":{"atom":524,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Cor."}},{"Str":{"pattern":"Cor"}},{"Alternative":{"atoms":[530,531]}},{"Named":{"name":"supplement_type","atom":532}},{"Sequence":{"atoms":[529,533]}},{"Alternative":{"atoms":[523,534]}},{"Entity":{"atom":549}},{"Entity":{"atom":5}},{"Named":{"name":"supplement_space","atom":537}},{"Repetition":{"atom":538,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":540,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":543,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[542,544]}},{"Repetition":{"atom":545,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[541,546]}},{"Named":{"name":"supplement_number","atom":547}},{"Sequence":{"atoms":[539,548]}},{"Entity":{"atom":563}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":553,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_month","atom":554}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[555,556]}},{"Repetition":{"atom":557,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":559,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"supplement_year","atom":560}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[551,552,558,561,562]}},{"Repetition":{"atom":550,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":565,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[511,512,513,536,564,566]}},{"Entity":{"atom":593}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":581}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":574,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":575,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":578,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[573,576,577,579]}},{"Named":{"name":"series","atom":580}},{"Entity":{"atom":191}},{"Alternative":{"atoms":[572,582]}},{"Entity":{"atom":302}},{"Repetition":{"atom":584,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":589,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":591,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[569,570,571,583,585,586,587,588,590,592]}},{"Alternative":{"atoms":[167,568]}},{"Named":{"name":"base","atom":594}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":599,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":601,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[595,596,597,598,600,602]}},{"Entity":{"atom":615}},{"Entity":{"atom":567}},{"Named":{"name":"base","atom":605}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplement_slash","atom":607}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":611,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":613,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[606,608,609,610,612,614]}},{"Entity":{"atom":567}},{"Entity":{"atom":593}},{"Alternative":{"atoms":[166,604,616,617]}},{"Entity":{"atom":623}},{"Entity":{"atom":482}},{"Entity":{"atom":106}},{"Repetition":{"atom":621,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[620,622]}},{"Entity":{"atom":628}},{"Entity":{"atom":507}},{"Entity":{"atom":106}},{"Repetition":{"atom":626,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[625,627]}},{"Entity":{"atom":633}},{"Entity":{"atom":341}},{"Entity":{"atom":106}},{"Repetition":{"atom":631,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[630,632]}},{"Entity":{"atom":644}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":36}},{"Str":{"pattern":"HDB"}},{"Named":{"name":"handbook_marker","atom":640}},{"Entity":{"atom":156}},{"Repetition":{"atom":642,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[635,636,637,638,639,641,643]}},{"Entity":{"atom":659}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":652,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":653}},{"Sequence":{"atoms":[651,654]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":656}},{"Repetition":{"atom":657,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[646,647,648,649,650,655,658]}},{"Entity":{"atom":685}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Str":{"pattern":"["}},{"Named":{"name":"bracketed","atom":666}},{"Entity":{"atom":677}},{"Entity":{"atom":41}},{"Str":{"pattern":"/BL"}},{"Named":{"name":"has_bl","atom":670}},{"Repetition":{"atom":671,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":674,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":675}},{"Sequence":{"atoms":[669,672,673,676]}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[667,668,678]}},{"Entity":{"atom":677}},{"Alternative":{"atoms":[679,680]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":682}},{"Repetition":{"atom":683,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[661,662,663,664,665,681,684]}},{"Entity":{"atom":706}},{"Entity":{"atom":21}},{"Str":{"pattern":"R"}},{"Named":{"name":"sector","atom":688}},{"Entity":{"atom":5}},{"Str":{"pattern":"RR"}},{"Named":{"name":"radio_regulations","atom":691}},{"Entity":{"atom":68}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":695,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":696}},{"Sequence":{"atoms":[694,697]}},{"Alternative":{"atoms":[693,698]}},{"Repetition":{"atom":699,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":701,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":704}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Lookahead":{"atom":703,"positive":false}},{"Sequence":{"atoms":[687,689,690,692,700,702,705]}},{"Entity":{"atom":731}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Repetition":{"atom":711,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":716,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Repetition":{"atom":719,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":721,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":723,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":725,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":727,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":729,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[708,709,710,712,713,714,715,717,718,720,722,724,726,728,730]}},{"Entity":{"atom":743}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Str":{"pattern":"-C"}},{"Named":{"name":"contribution_marker","atom":737}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Entity":{"atom":106}},{"Repetition":{"atom":741,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[733,734,735,736,738,739,740,742]}},{"Entity":{"atom":748}},{"Entity":{"atom":466}},{"Entity":{"atom":106}},{"Repetition":{"atom":746,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[745,747]}},{"Entity":{"atom":763}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":755,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":759,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":761,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[750,751,752,753,754,756,758,760,762]}},{"Entity":{"atom":787}},{"Entity":{"atom":27}},{"Entity":{"atom":12}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":12}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":143}},{"Entity":{"atom":782}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Str":{"pattern":"S"}},{"Alternative":{"atoms":[775,776]}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Alternative":{"atoms":[778,779]}},{"Lookahead":{"atom":780,"positive":false}},{"Sequence":{"atoms":[774,777,781]}},{"Named":{"name":"id_status","atom":773}},{"Repetition":{"atom":783,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":785,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[765,766,767,768,769,770,771,772,784,786]}},{"Alternative":{"atoms":[2,164,165,619,624,629,634,645,660,686,707,732,744,749,764]}},{"Entity":{"atom":799}},{"Entity":{"atom":5}},{"Str":{"pattern":"|"}},{"Entity":{"atom":5}},{"Entity":{"atom":796}},{"Re":{"pattern":"[\\x01-\\x7b]"}},{"Re":{"pattern":"[\\x7d-\\u{10ffff}]"}},{"Alternative":{"atoms":[794,795]}},{"Repetition":{"atom":793,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[790,791,792,797]}},{"Named":{"name":"common_text_twin","atom":798}},{"Sequence":{"atoms":[1,789]}},{"Entity":{"atom":788}},{"Alternative":{"atoms":[0,801]}}],"root":802},"bindings":[{"capture":"sector","path":"sector","type":"string","card":null,"preprocess":null},{"capture":"series","path":"series","type":"string","card":null,"preprocess":null},{"capture":"series_word","path":"series_word","type":"string","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"subseries","path":"subseries","type":"string","card":null,"preprocess":null},{"capture":"series_suffix","path":"series_suffix","type":"string","card":null,"preprocess":null},{"capture":"series_suffix_spaced","path":"series_suffix_spaced","type":"string","card":null,"preprocess":null},{"capture":"qualifier","path":"qualifier","type":"string","card":null,"preprocess":null},{"capture":"qualifier_spaced","path":"qualifier_spaced","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"month","path":"month","type":"string","card":null,"preprocess":null},{"capture":"day","path":"day","type":"string","card":null,"preprocess":null},{"capture":"roman_month","path":"roman_month","type":"string","card":null,"preprocess":null},{"capture":"language","path":"language","type":"string","card":null,"preprocess":null},{"capture":"attachment","path":"attachment","type":"string","card":null,"preprocess":null},{"capture":"range_end","path":"range_end","type":"string","card":null,"preprocess":null},{"capture":"part","path":"parts[].part","type":"string","card":null,"preprocess":null},{"capture":"imp_marker","path":"imp_marker","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null},{"capture":"series_dash","path":"series_dash","type":"string","card":null,"preprocess":null},{"capture":"combined","path":"combined","type":"raw","card":null,"preprocess":null},{"capture":"technical","path":"technical","type":"string","card":null,"preprocess":null},{"capture":"supplement_type","path":"supplement_type","type":"string","card":null,"preprocess":null},{"capture":"supplement_space","path":"supplement_space","type":"string","card":null,"preprocess":null},{"capture":"supplement_number","path":"supplement_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_month","path":"supplement_month","type":"string","card":null,"preprocess":null},{"capture":"supplement_year","path":"supplement_year","type":"string","card":null,"preprocess":null},{"capture":"base","path":"base","type":"raw","card":null,"preprocess":null},{"capture":"annex_number","path":"annex_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_number","path":"appendix_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_material","path":"appendix_material","type":"string","card":null,"preprocess":null},{"capture":"supplement_slash","path":"supplement_slash","type":"string","card":null,"preprocess":null},{"capture":"report_marker","path":"report_marker","type":"string","card":null,"preprocess":null},{"capture":"_op_bull","path":"_op_bull","type":"string","card":null,"preprocess":null},{"capture":"contribution_marker","path":"contribution_marker","type":"string","card":null,"preprocess":null},{"capture":"handbook_marker","path":"handbook_marker","type":"string","card":null,"preprocess":null},{"capture":"study_group","path":"study_group","type":"string","card":null,"preprocess":null},{"capture":"has_bl","path":"has_bl","type":"string","card":null,"preprocess":null},{"capture":"bracketed","path":"bracketed","type":"string","card":null,"preprocess":null},{"capture":"question_colon","path":"question_colon","type":"string","card":null,"preprocess":null},{"capture":"common_text_twin","path":"common_text_twin","type":"string","card":null,"preprocess":null},{"capture":"annex_to","path":"annex_to","type":"raw","card":null,"preprocess":null},{"capture":"radio_regulations","path":"radio_regulations","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule non_pipe: branches 1 and 2 are order-dependent (first set not statically known)","rule series_suffix_word: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base_report: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule ob_date: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule special_publication: 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 itu_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"ITU-R BT.500","expect":{}},{"entry":"identifier","kind":"accept","input":"Recommendation ITU-T G.650.1 (09/2020)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-R SA.3631 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T OB.101 (2016)","expect":{}},{"entry":"identifier","kind":"accept","input":"Annex to ITU-T OB.101","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T E.164/2","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T 55/13:","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.984.2 Amd. 1 (2010)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.650.1B","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/itu/parser.rb — ITU-T/R/D designations: series codes\n# (BT/G/V, SGnn), Imp implementation codes, OB Operational Bulletins,\n# Reports, Study Group questions (numeric and bracketed series form),\n# supplements (Suppl./Amd./Add./Err./Cor. with Technical marker), Annex\n# and App. wraps, combined \"/XX.N\" designations, and the \"| twin\"\n# common-text form. Internal rule `itu_identifier` corresponds to the\n# source's `identifier` (renamed: PG forbids self-reference from the\n# common-text wrapper).\n#\n# Edition-2 conversion. Deviations from the v1 tree:\n# - every leaf capture body is written out at its site so it lowers to\n# one scalar span: edition 2 materializes bare refs to capture-less\n# composite rules as named nodes (the asme/cie/bsi inlining rule), so\n# `digits`, `yyyymm_year`, `yyyymm_month`, `roman`, `annex_label` and\n# `non_pipe` are spelled out at every capture site, and `letter` (a\n# ref to `upper`) is spelled as its class — a ref chain inside a\n# capture breaks the span lowering. Literal alternations\n# (series_suffix_word, the sector/language/roman_month words) and\n# refs to capture-bearing rules (`number`, `series`, `question_tail`)\n# stay refs and bind as spans.\n# - the builder keeps its v1 wrapper walks (`base` recursion for\n# annex/appendix/supplement chains, `combined` ->\n# `designation` elements, `parts` -> `part` hashes), so `base`,\n# `annex_to` and `combined` bind uncast with (raw) and `part` binds\n# through the array (`part -> parts[].part (string)`). The inner\n# `designation` capture is deliberately unbound: it rides inside the\n# raw `combined` array exactly as the v1 tree delivered it.\n# - presence markers keep their captured-token shape (the captured\n# space of `supplement_space`/`qualifier_spaced`, the \"/BL\" of\n# `has_bl`, the \"[\" of `bracketed`), so the builder's nil? checks\n# keep their meaning; every optional capture is spelled\n# `[ (group) as x ]` so non-participation omits the key on every\n# engine.\n\ngrammar PubidItu version \"0.1.0\" edition 2 {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n letter = upper\n digits = 1*digit\n space = \" \"\n dash = \"-\"\n dot = \".\"\n non_pipe = %x01-7B / %x7D-10FFFF\n\n itu_prefix = (\"Recommendation \" \"ITU\" (dash / space)) / (\"ITU\" (dash / space))\n sector = (\"R\" / \"T\" / \"D\") as sector\n series = ((\"SG\" 1*digit) / (1*3upper)) as series\n series_group = (upper [1*digit] dash 1*digit) as series\n series_word = space \"series\" as series_word\n number = (1*digit) as number\n subseries = dot (1*digit) as subseries\n series_suffix_word = \"bis\" / \"ter\" / \"quater\" / \"quarter\"\n series_suffix = (series_suffix_word) as series_suffix\n series_suffix_spaced = (space as series_suffix_spaced) ((series_suffix_word) as series_suffix)\n qualifier_letter = ((%x41-52 / %x61-72) as qualifier !(upper / lower / digit))\n qualifier_glued = qualifier_letter\n qualifier_spaced = (space as qualifier_spaced) qualifier_letter\n yyyymm_year = (\"19\" / \"20\") digit digit\n yyyymm_month = (\"0\" %x31-39) / (\"1\" %x30-32)\n yyyymm_shape = yyyymm_year yyyymm_month !digit\n yyyymm_date = dash ((\"19\" / \"20\") digit digit) as year ((\"0\" %x31-39) / (\"1\" %x30-32)) as month !digit\n id_status = dash (\"I\" / \"S\") !(digit / letter)\n print_id_status = dash \"I\" !(digit / letter)\n id_date = yyyymm_date [print_id_status]\n document_date = (date_part / id_date)\n rec_word = (\"REC\" (space / dash))\n publication_id = sector dash \"REC\" dash series dot code yyyymm_date [id_status] [language]\n code_suffixes = [series_suffix_spaced] [qualifier_spaced]\n attachment = space \"attachment\" as attachment\n range_end = dash ((1*3upper dot 1*digit) as range_end)\n part = dash !yyyymm_shape (1*digit) as part\n parts = (*part) as parts\n code = imp_code / standard_code\n standard_code = number [series_suffix] [subseries] parts [qualifier_glued]\n imp_code = \"Imp\" as imp_marker (((1*digit) / (1*3upper)) as number) [subseries] parts\n date_part = space \"(\" [((1*digit) as month \"/\")] ((4digit) as year) \")\"\n version_part = space (((\"(V\" 1*digit as version \")\") / ((\"V\" / \"v\") [dot] 1*digit as version)))\n language = dash ((\"E\" / \"F\" / \"A\" / \"S\" / \"C\" / \"R\") as language)\n\n # The combined-designation tail repeats the code-suffix shapes under\n # d_* capture names: a capture name occurring at two structural depths\n # pairs into ONE top-level bound key (last occurrence wins; array\n # bindings concatenate), so the shared number/subseries/parts/suffix/\n # qualifier names would corrupt the primary's Code with the\n # designation's tail. series and number stay shared — the primary\n # always carries them first.\n d_number = (1*digit) as d_number\n d_subseries = dot (1*digit) as d_subseries\n d_part = dash !yyyymm_shape (1*digit) as d_part\n d_parts = (*d_part) as d_parts\n d_series_suffix = (series_suffix_word) as d_series_suffix\n d_series_suffix_spaced = (space as d_series_suffix_spaced) ((series_suffix_word) as d_series_suffix)\n d_qualifier_letter = ((%x41-52 / %x61-72) as d_qualifier !(upper / lower / digit))\n d_qualifier_glued = d_qualifier_letter\n d_qualifier_spaced = (space as d_qualifier_spaced) d_qualifier_letter\n\n combined_designation = \"/\" ((series dot d_number [d_subseries] d_parts [d_qualifier_glued] [d_series_suffix_spaced] [d_qualifier_spaced]) as designation)\n combined_suffixes = (1*combined_designation) as combined\n\n technical_marker = \"Technical\" as technical space\n supplement_type = ((\"Suppl.\" / \"Suppl\" / \"Amd.\" / \"Amd\" / \"Add.\" / \"Add\" / \"Err.\" / \"Err\") as supplement_type) / (([technical_marker] (\"Cor.\" / \"Cor\") as supplement_type))\n supplement_number = ([space as supplement_space]) ((1*digit *(dot 1*digit)) as supplement_number)\n supplement_date = space \"(\" [((1*digit) as supplement_month \"/\")] ((4digit) as supplement_year) \")\"\n\n base_with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n }\n series_code_body = {\n !(\"OB\" dash)\n ((2*upper) as series)\n (dash as series_dash)\n (((1*digit) / (1*upper)) as number)\n parts\n }\n contribution = {\n itu_prefix sector space\n series\n (\"-C\" as contribution_marker)\n number\n parts\n [language]\n }\n base_series_code = {\n itu_prefix sector space\n series_code_body\n [version_part]\n [document_date]\n }\n series_code_identifier = base_series_code [language]\n report_word = \"Report\" as report_marker\n report_body = {\n !(\"OB\" dot)\n [(series dot)]\n code\n [range_end]\n code_suffixes\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_report = {\n (report_word space itu_prefix sector space report_body)\n / (itu_prefix sector space report_word space report_body)\n }\n report_identifier = base_report [language]\n base = base_report / base_with_series / base_without_series / base_series_code\n\n annex_label = upper [1*digit] [\"+\"]\n annex_body = {\n (base as base)\n space \"Annex\" space\n ((upper [1*digit] [\"+\"])) as annex_number\n [document_date]\n }\n annex_identifier = annex_body [language]\n roman = 1*(%x49 / %x56 / %x58)\n appendix_material = space ((\"test vectors\" / \"Software\") as appendix_material)\n appendix_body = {\n (base as base)\n space \"App.\" [space]\n (1*(%x49 / %x56 / %x58)) as appendix_number\n [appendix_material]\n [document_date]\n }\n appendix_identifier = appendix_body [language]\n\n supplement_with_base = {\n ((annex_body as base) / (appendix_body as base) / (base as base))\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n chained_supplement = {\n ((supplement_with_base / supplement_series_only) as base)\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_series_only = {\n itu_prefix sector space\n (series_group / series)\n [series_word]\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n slash_chained_supplement = {\n ((supplement_with_base) as base)\n (\"/\" as supplement_slash)\n supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_identifier = chained_supplement / slash_chained_supplement / supplement_with_base / supplement_series_only\n\n with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n\n roman_month = \"XII\" / \"XI\" / \"IX\" / \"VIII\" / \"VII\" / \"VI\" / \"V\" / \"IV\" / \"III\" / \"II\" / \"I\"\n ob_roman_date = \" - \" (2digit) as day dot (roman_month as roman_month) dot (4digit) as year\n ob_date = (date_part / ob_roman_date)\n ob_series = \"OB\" as series\n ob_dot_body = dot number\n ob_no_body = space \"No.\" space number\n ob_bare_body = space number\n ob_with_sector = {\n itu_prefix\n [(sector space)]\n ob_series\n (ob_dot_body / ob_no_body / ob_bare_body)\n [ob_date]\n [language]\n }\n ob_long_form = {\n itu_prefix\n [(sector space)]\n \"Operational Bulletin\" as _op_bull\n space \"No.\" space number\n [document_date]\n [language]\n }\n special_publication = ob_with_sector / ob_long_form\n annex_to_identifier = \"Annex to\" space (special_publication as annex_to)\n handbook = {\n itu_prefix sector space\n number dot \"HDB\" as handbook_marker\n [document_date]\n }\n numeric_question = {\n itu_prefix sector space\n number parts\n ((\"/\" (1*digit) as study_group))\n [(\":\" as question_colon)]\n }\n question_tail = number [(\"/BL\" as has_bl)] \"/\" (1*digit) as study_group\n letter_question = {\n itu_prefix sector space\n series dot\n (((\"[\" as bracketed) question_tail \"]\") / question_tail)\n [(\":\" as question_colon)]\n }\n common_text_twin = (space \"|\" space (1*non_pipe)) as common_text_twin\n\n identifier = common_text_identifier / itu_identifier\n any_char = %x00-10FFFF\n radio_regulations = {\n itu_prefix\n (\"R\") as sector\n space \"RR\" as radio_regulations\n [(date_part / (dash (4digit) as year))]\n [language]\n !any_char\n }\n itu_identifier = {\n annex_to_identifier\n / special_publication\n / supplement_identifier\n / annex_identifier\n / appendix_identifier\n / report_identifier\n / handbook\n / numeric_question\n / letter_question\n / radio_regulations\n / with_series\n / contribution\n / series_code_identifier\n / without_series\n / publication_id\n }\n common_text_identifier = itu_identifier common_text_twin\n\n entry identifier: identifier\n\n bindings identifier {\n sector -> sector (string)\n series -> series (string)\n series_word -> series_word (string)\n number -> number (string)\n subseries -> subseries (string)\n series_suffix -> series_suffix (string)\n series_suffix_spaced -> series_suffix_spaced (string)\n qualifier -> qualifier (string)\n qualifier_spaced -> qualifier_spaced (string)\n year -> year (string)\n month -> month (string)\n day -> day (string)\n roman_month -> roman_month (string)\n language -> language (string)\n attachment -> attachment (string)\n range_end -> range_end (string)\n part -> parts[].part (string)\n imp_marker -> imp_marker (string)\n version -> version (string)\n series_dash -> series_dash (string)\n combined -> combined (raw)\n technical -> technical (string)\n supplement_type -> supplement_type (string)\n supplement_space -> supplement_space (string)\n supplement_number -> supplement_number (string)\n supplement_month -> supplement_month (string)\n supplement_year -> supplement_year (string)\n base -> base (raw)\n annex_number -> annex_number (string)\n appendix_number -> appendix_number (string)\n appendix_material -> appendix_material (string)\n supplement_slash -> supplement_slash (string)\n report_marker -> report_marker (string)\n _op_bull -> _op_bull (string)\n contribution_marker -> contribution_marker (string)\n handbook_marker -> handbook_marker (string)\n study_group -> study_group (string)\n has_bl -> has_bl (string)\n bracketed -> bracketed (string)\n question_colon -> question_colon (string)\n common_text_twin -> common_text_twin (string)\n annex_to -> annex_to (raw)\n radio_regulations -> radio_regulations (string)\n }\n\n test {\n accept \"ITU-R BT.500\"\n accept \"Recommendation ITU-T G.650.1 (09/2020)\"\n accept \"ITU-R SA.3631 Annex A\"\n accept \"ITU-T OB.101 (2016)\"\n accept \"Annex to ITU-T OB.101\"\n accept \"ITU-T E.164/2\"\n accept \"ITU-T 55/13:\"\n accept \"ITU-T G.984.2 Amd. 1 (2010)\"\n accept \"ITU-T G.650.1B\"\n reject \"nonsense\"\n }\n}\n","source_hash":"7535fa1ad43143e2af1aafb0fb65d6a63f48210eb9b7c29c78ff7edec00062ef","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:8bdbd26e76317bdb16eb2652eeb008aa773a2b487aae0b3d2306430bb4fcd314","checksum":"sha256:acd2f27a6bb295d8a236af816fa88647d317844bbf4c38f72c562ef7273cc33d","validated":{"lint_errors":0,"lint_warnings":126,"tests_total":10,"tests_failures":0,"self_test":true}}
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidItu","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":828}},{"Entity":{"atom":816}},{"Entity":{"atom":163}},{"Str":{"pattern":"Annex to"}},{"Entity":{"atom":5}},{"Str":{"pattern":" "}},{"Entity":{"atom":161}},{"Entity":{"atom":108}},{"Entity":{"atom":21}},{"Str":{"pattern":"Recommendation "}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Str":{"pattern":"-"}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[11,13]}},{"Sequence":{"atoms":[9,10,14]}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[17,18]}},{"Sequence":{"atoms":[16,19]}},{"Alternative":{"atoms":[15,20]}},{"Entity":{"atom":27}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"T"}},{"Str":{"pattern":"D"}},{"Alternative":{"atoms":[23,24,25]}},{"Named":{"name":"sector","atom":26}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[22,28]}},{"Repetition":{"atom":29,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":33}},{"Str":{"pattern":"OB"}},{"Named":{"name":"series","atom":32}},{"Entity":{"atom":42}},{"Entity":{"atom":36}},{"Str":{"pattern":"."}},{"Entity":{"atom":41}},{"Entity":{"atom":39}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":38,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":40}},{"Sequence":{"atoms":[35,37]}},{"Entity":{"atom":48}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[44,45,46,47]}},{"Entity":{"atom":52}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[50,51]}},{"Alternative":{"atoms":[34,43,49]}},{"Entity":{"atom":94}},{"Entity":{"atom":68}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":58,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"month","atom":59}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[60,61]}},{"Repetition":{"atom":62,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":64,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":65}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[56,57,63,66,67]}},{"Entity":{"atom":93}},{"Str":{"pattern":" - "}},{"Entity":{"atom":39}},{"Repetition":{"atom":71,"min":2,"max":2,"tag":"Repetition"}},{"Named":{"name":"day","atom":72}},{"Entity":{"atom":36}},{"Entity":{"atom":87}},{"Str":{"pattern":"XII"}},{"Str":{"pattern":"XI"}},{"Str":{"pattern":"IX"}},{"Str":{"pattern":"VIII"}},{"Str":{"pattern":"VII"}},{"Str":{"pattern":"VI"}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"IV"}},{"Str":{"pattern":"III"}},{"Str":{"pattern":"II"}},{"Str":{"pattern":"I"}},{"Alternative":{"atoms":[76,77,78,79,80,81,82,83,84,85,86]}},{"Named":{"name":"roman_month","atom":75}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":90,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":91}},{"Sequence":{"atoms":[70,73,74,88,89,92]}},{"Alternative":{"atoms":[55,69]}},{"Repetition":{"atom":54,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Entity":{"atom":12}},{"Str":{"pattern":"E"}},{"Str":{"pattern":"F"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"R"}},{"Alternative":{"atoms":[98,99,100,101,102,103]}},{"Named":{"name":"language","atom":104}},{"Sequence":{"atoms":[97,105]}},{"Repetition":{"atom":96,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[8,30,31,53,95,107]}},{"Entity":{"atom":160}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[111,112]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Operational Bulletin"}},{"Named":{"name":"_op_bull","atom":115}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":156}},{"Entity":{"atom":68}},{"Entity":{"atom":155}},{"Entity":{"atom":143}},{"Entity":{"atom":12}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[126,127]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[128,129,130]}},{"Named":{"name":"year","atom":131}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[133,134]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[136,137]}},{"Alternative":{"atoms":[135,138]}},{"Named":{"name":"month","atom":139}},{"Entity":{"atom":39}},{"Lookahead":{"atom":141,"positive":false}},{"Sequence":{"atoms":[125,132,140,142]}},{"Entity":{"atom":153}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Entity":{"atom":150}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Alternative":{"atoms":[147,148]}},{"Lookahead":{"atom":151,"positive":false}},{"Sequence":{"atoms":[145,146,152]}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[124,154]}},{"Alternative":{"atoms":[122,123]}},{"Repetition":{"atom":121,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":158,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[110,114,116,117,118,119,120,157,159]}},{"Alternative":{"atoms":[7,109]}},{"Named":{"name":"annex_to","atom":6}},{"Sequence":{"atoms":[3,4,162]}},{"Entity":{"atom":161}},{"Entity":{"atom":618}},{"Entity":{"atom":603}},{"Entity":{"atom":567}},{"Entity":{"atom":482}},{"Entity":{"atom":467}},{"Entity":{"atom":341}},{"Entity":{"atom":173}},{"Str":{"pattern":"Report"}},{"Named":{"name":"report_marker","atom":172}},{"Entity":{"atom":5}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[179,180]}},{"Lookahead":{"atom":181,"positive":false}},{"Entity":{"atom":191}},{"Str":{"pattern":"SG"}},{"Entity":{"atom":39}},{"Repetition":{"atom":185,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[184,186]}},{"Entity":{"atom":150}},{"Repetition":{"atom":188,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[187,189]}},{"Named":{"name":"series","atom":190}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[183,192]}},{"Repetition":{"atom":193,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":271}},{"Entity":{"atom":241}},{"Str":{"pattern":"Imp"}},{"Named":{"name":"imp_marker","atom":197}},{"Entity":{"atom":39}},{"Repetition":{"atom":199,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":201,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[200,202]}},{"Named":{"name":"number","atom":203}},{"Entity":{"atom":210}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":207,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subseries","atom":208}},{"Sequence":{"atoms":[206,209]}},{"Repetition":{"atom":205,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":238}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Entity":{"atom":222}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[217,218]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[219,220,221]}},{"Entity":{"atom":230}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[224,225]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[227,228]}},{"Alternative":{"atoms":[226,229]}},{"Entity":{"atom":39}},{"Lookahead":{"atom":231,"positive":false}},{"Sequence":{"atoms":[216,223,232]}},{"Lookahead":{"atom":215,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":235,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":236}},{"Sequence":{"atoms":[214,234,237]}},{"Repetition":{"atom":213,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"parts","atom":239}},{"Sequence":{"atoms":[198,204,211,212]}},{"Entity":{"atom":270}},{"Entity":{"atom":41}},{"Entity":{"atom":251}},{"Entity":{"atom":250}},{"Str":{"pattern":"bis"}},{"Str":{"pattern":"ter"}},{"Str":{"pattern":"quater"}},{"Str":{"pattern":"quarter"}},{"Alternative":{"atoms":[246,247,248,249]}},{"Named":{"name":"series_suffix","atom":245}},{"Repetition":{"atom":244,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":210}},{"Repetition":{"atom":253,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":257}},{"Entity":{"atom":268}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[258,259]}},{"Named":{"name":"qualifier","atom":260}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[262,263,265]}},{"Lookahead":{"atom":266,"positive":false}},{"Sequence":{"atoms":[261,267]}},{"Repetition":{"atom":256,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[243,252,254,255,269]}},{"Alternative":{"atoms":[196,242]}},{"Entity":{"atom":281}},{"Entity":{"atom":12}},{"Entity":{"atom":150}},{"Repetition":{"atom":274,"min":1,"max":3,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":277,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[275,276,278]}},{"Named":{"name":"range_end","atom":279}},{"Sequence":{"atoms":[273,280]}},{"Repetition":{"atom":272,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":289}},{"Entity":{"atom":5}},{"Named":{"name":"series_suffix_spaced","atom":285}},{"Entity":{"atom":250}},{"Named":{"name":"series_suffix","atom":287}},{"Sequence":{"atoms":[286,288]}},{"Repetition":{"atom":284,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":295}},{"Entity":{"atom":5}},{"Named":{"name":"qualifier_spaced","atom":292}},{"Entity":{"atom":268}},{"Sequence":{"atoms":[293,294]}},{"Repetition":{"atom":291,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[290,296]}},{"Entity":{"atom":302}},{"Entity":{"atom":5}},{"Str":{"pattern":"series"}},{"Named":{"name":"series_word","atom":300}},{"Sequence":{"atoms":[299,301]}},{"Repetition":{"atom":298,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Entity":{"atom":5}},{"Str":{"pattern":"attachment"}},{"Named":{"name":"attachment","atom":306}},{"Sequence":{"atoms":[305,307]}},{"Repetition":{"atom":304,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Entity":{"atom":5}},{"Str":{"pattern":"(V"}},{"Entity":{"atom":39}},{"Repetition":{"atom":313,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":314}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[312,315,316]}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"v"}},{"Alternative":{"atoms":[318,319]}},{"Entity":{"atom":36}},{"Repetition":{"atom":321,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":323,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":324}},{"Sequence":{"atoms":[320,322,325]}},{"Alternative":{"atoms":[317,326]}},{"Sequence":{"atoms":[311,327]}},{"Repetition":{"atom":310,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":330,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[182,194,195,282,283,303,309,329,331]}},{"Sequence":{"atoms":[171,174,175,176,177,178]}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":173}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Sequence":{"atoms":[334,335,336,337,338,339]}},{"Alternative":{"atoms":[333,340]}},{"Entity":{"atom":426}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":5}},{"Entity":{"atom":12}},{"Alternative":{"atoms":[348,349]}},{"Sequence":{"atoms":[347,350]}},{"Repetition":{"atom":346,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":356,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Entity":{"atom":414}},{"Str":{"pattern":"/"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":367}},{"Entity":{"atom":39}},{"Repetition":{"atom":365,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_number","atom":366}},{"Entity":{"atom":373}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":370,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_subseries","atom":371}},{"Sequence":{"atoms":[369,372]}},{"Repetition":{"atom":368,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":385}},{"Entity":{"atom":383}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Lookahead":{"atom":378,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":380,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_part","atom":381}},{"Sequence":{"atoms":[377,379,382]}},{"Repetition":{"atom":376,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_parts","atom":384}},{"Entity":{"atom":387}},{"Entity":{"atom":397}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[388,389]}},{"Named":{"name":"d_qualifier","atom":390}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[392,393,394]}},{"Lookahead":{"atom":395,"positive":false}},{"Sequence":{"atoms":[391,396]}},{"Repetition":{"atom":386,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":404}},{"Entity":{"atom":5}},{"Named":{"name":"d_series_suffix_spaced","atom":400}},{"Entity":{"atom":250}},{"Named":{"name":"d_series_suffix","atom":402}},{"Sequence":{"atoms":[401,403]}},{"Repetition":{"atom":399,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":410}},{"Entity":{"atom":5}},{"Named":{"name":"d_qualifier_spaced","atom":407}},{"Entity":{"atom":397}},{"Sequence":{"atoms":[408,409]}},{"Repetition":{"atom":406,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[362,363,364,374,375,398,405,411]}},{"Named":{"name":"designation","atom":412}},{"Sequence":{"atoms":[361,413]}},{"Repetition":{"atom":360,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"combined","atom":415}},{"Repetition":{"atom":359,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":418,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":420,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":422,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":424,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[343,344,345,352,353,354,355,357,358,417,419,421,423,425]}},{"Entity":{"atom":439}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":433,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":435,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":437,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[428,429,430,431,432,434,436,438]}},{"Entity":{"atom":466}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":461}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":12}},{"Sequence":{"atoms":[445,446]}},{"Lookahead":{"atom":447,"positive":false}},{"Entity":{"atom":150}},{"Repetition":{"atom":449,"min":2,"max":null,"tag":"Repetition"}},{"Named":{"name":"series","atom":450}},{"Entity":{"atom":12}},{"Named":{"name":"series_dash","atom":452}},{"Entity":{"atom":39}},{"Repetition":{"atom":454,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":456,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[455,457]}},{"Named":{"name":"number","atom":458}},{"Entity":{"atom":240}},{"Sequence":{"atoms":[448,451,453,459,460]}},{"Entity":{"atom":328}},{"Repetition":{"atom":462,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":464,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[441,442,443,444,463,465]}},{"Alternative":{"atoms":[170,342,427,440]}},{"Named":{"name":"base","atom":169}},{"Entity":{"atom":5}},{"Str":{"pattern":"Annex"}},{"Entity":{"atom":5}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":473,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":474,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"+"}},{"Repetition":{"atom":476,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[472,475,477]}},{"Named":{"name":"annex_number","atom":478}},{"Entity":{"atom":156}},{"Repetition":{"atom":480,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[468,469,470,471,479,481]}},{"Named":{"name":"base","atom":168}},{"Entity":{"atom":507}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":485}},{"Entity":{"atom":5}},{"Str":{"pattern":"App."}},{"Entity":{"atom":5}},{"Repetition":{"atom":489,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[I]"}},{"Re":{"pattern":"[V]"}},{"Re":{"pattern":"[X]"}},{"Alternative":{"atoms":[491,492,493]}},{"Repetition":{"atom":494,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"appendix_number","atom":495}},{"Entity":{"atom":503}},{"Entity":{"atom":5}},{"Str":{"pattern":"test vectors"}},{"Str":{"pattern":"Software"}},{"Alternative":{"atoms":[499,500]}},{"Named":{"name":"appendix_material","atom":501}},{"Sequence":{"atoms":[498,502]}},{"Repetition":{"atom":497,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":505,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[486,487,488,490,496,504,506]}},{"Named":{"name":"base","atom":484}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":509}},{"Alternative":{"atoms":[483,508,510]}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Str":{"pattern":"Suppl."}},{"Str":{"pattern":"Suppl"}},{"Str":{"pattern":"Amd."}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"Add."}},{"Str":{"pattern":"Add"}},{"Str":{"pattern":"Err."}},{"Str":{"pattern":"Err"}},{"Alternative":{"atoms":[514,515,516,517,518,519,520,521]}},{"Named":{"name":"supplement_type","atom":522}},{"Entity":{"atom":528}},{"Str":{"pattern":"Technical"}},{"Named":{"name":"technical","atom":525}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[526,527]}},{"Repetition":{"atom":524,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Cor."}},{"Str":{"pattern":"Cor"}},{"Alternative":{"atoms":[530,531]}},{"Named":{"name":"supplement_type","atom":532}},{"Sequence":{"atoms":[529,533]}},{"Alternative":{"atoms":[523,534]}},{"Entity":{"atom":549}},{"Entity":{"atom":5}},{"Named":{"name":"supplement_space","atom":537}},{"Repetition":{"atom":538,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":540,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":543,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[542,544]}},{"Repetition":{"atom":545,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[541,546]}},{"Named":{"name":"supplement_number","atom":547}},{"Sequence":{"atoms":[539,548]}},{"Entity":{"atom":563}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":553,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_month","atom":554}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[555,556]}},{"Repetition":{"atom":557,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":559,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"supplement_year","atom":560}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[551,552,558,561,562]}},{"Repetition":{"atom":550,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":565,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[511,512,513,536,564,566]}},{"Entity":{"atom":593}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":581}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":574,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":575,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":578,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[573,576,577,579]}},{"Named":{"name":"series","atom":580}},{"Entity":{"atom":191}},{"Alternative":{"atoms":[572,582]}},{"Entity":{"atom":302}},{"Repetition":{"atom":584,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":589,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":591,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[569,570,571,583,585,586,587,588,590,592]}},{"Alternative":{"atoms":[167,568]}},{"Named":{"name":"base","atom":594}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":599,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":601,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[595,596,597,598,600,602]}},{"Entity":{"atom":615}},{"Entity":{"atom":567}},{"Named":{"name":"base","atom":605}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplement_slash","atom":607}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":611,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":613,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[606,608,609,610,612,614]}},{"Entity":{"atom":567}},{"Entity":{"atom":593}},{"Alternative":{"atoms":[166,604,616,617]}},{"Entity":{"atom":623}},{"Entity":{"atom":482}},{"Entity":{"atom":106}},{"Repetition":{"atom":621,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[620,622]}},{"Entity":{"atom":628}},{"Entity":{"atom":507}},{"Entity":{"atom":106}},{"Repetition":{"atom":626,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[625,627]}},{"Entity":{"atom":633}},{"Entity":{"atom":341}},{"Entity":{"atom":106}},{"Repetition":{"atom":631,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[630,632]}},{"Entity":{"atom":661}},{"Entity":{"atom":658}},{"Entity":{"atom":640}},{"Str":{"pattern":"Resolution"}},{"Str":{"pattern":"Res."}},{"Alternative":{"atoms":[637,638]}},{"Named":{"name":"resolution_marker","atom":639}},{"Entity":{"atom":5}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":649}},{"Entity":{"atom":271}},{"Entity":{"atom":156}},{"Repetition":{"atom":647,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[646,648]}},{"Sequence":{"atoms":[636,641,642,643,644,645]}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":640}},{"Entity":{"atom":5}},{"Entity":{"atom":649}},{"Sequence":{"atoms":[651,652,653,654,655,656]}},{"Alternative":{"atoms":[650,657]}},{"Entity":{"atom":106}},{"Repetition":{"atom":659,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[635,660]}},{"Entity":{"atom":672}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":36}},{"Str":{"pattern":"HDB"}},{"Named":{"name":"handbook_marker","atom":668}},{"Entity":{"atom":156}},{"Repetition":{"atom":670,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[663,664,665,666,667,669,671]}},{"Entity":{"atom":687}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":680,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":681}},{"Sequence":{"atoms":[679,682]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":684}},{"Repetition":{"atom":685,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[674,675,676,677,678,683,686]}},{"Entity":{"atom":713}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Str":{"pattern":"["}},{"Named":{"name":"bracketed","atom":694}},{"Entity":{"atom":705}},{"Entity":{"atom":41}},{"Str":{"pattern":"/BL"}},{"Named":{"name":"has_bl","atom":698}},{"Repetition":{"atom":699,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":702,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":703}},{"Sequence":{"atoms":[697,700,701,704]}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[695,696,706]}},{"Entity":{"atom":705}},{"Alternative":{"atoms":[707,708]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":710}},{"Repetition":{"atom":711,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[689,690,691,692,693,709,712]}},{"Entity":{"atom":734}},{"Entity":{"atom":21}},{"Str":{"pattern":"R"}},{"Named":{"name":"sector","atom":716}},{"Entity":{"atom":5}},{"Str":{"pattern":"RR"}},{"Named":{"name":"radio_regulations","atom":719}},{"Entity":{"atom":68}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":723,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":724}},{"Sequence":{"atoms":[722,725]}},{"Alternative":{"atoms":[721,726]}},{"Repetition":{"atom":727,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":729,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":732}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Lookahead":{"atom":731,"positive":false}},{"Sequence":{"atoms":[715,717,718,720,728,730,733]}},{"Entity":{"atom":759}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Repetition":{"atom":739,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":744,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Repetition":{"atom":747,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":749,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":751,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":753,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":755,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[736,737,738,740,741,742,743,745,746,748,750,752,754,756,758]}},{"Entity":{"atom":771}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Str":{"pattern":"-C"}},{"Named":{"name":"contribution_marker","atom":765}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Entity":{"atom":106}},{"Repetition":{"atom":769,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[761,762,763,764,766,767,768,770]}},{"Entity":{"atom":776}},{"Entity":{"atom":466}},{"Entity":{"atom":106}},{"Repetition":{"atom":774,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[773,775]}},{"Entity":{"atom":791}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":783,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":785,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":787,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":789,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[778,779,780,781,782,784,786,788,790]}},{"Entity":{"atom":815}},{"Entity":{"atom":27}},{"Entity":{"atom":12}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":12}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":143}},{"Entity":{"atom":810}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Str":{"pattern":"S"}},{"Alternative":{"atoms":[803,804]}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Alternative":{"atoms":[806,807]}},{"Lookahead":{"atom":808,"positive":false}},{"Sequence":{"atoms":[802,805,809]}},{"Named":{"name":"id_status","atom":801}},{"Repetition":{"atom":811,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":813,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[793,794,795,796,797,798,799,800,812,814]}},{"Alternative":{"atoms":[2,164,165,619,624,629,634,662,673,688,714,735,760,772,777,792]}},{"Entity":{"atom":827}},{"Entity":{"atom":5}},{"Str":{"pattern":"|"}},{"Entity":{"atom":5}},{"Entity":{"atom":824}},{"Re":{"pattern":"[\\x01-\\x7b]"}},{"Re":{"pattern":"[\\x7d-\\u{10ffff}]"}},{"Alternative":{"atoms":[822,823]}},{"Repetition":{"atom":821,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[818,819,820,825]}},{"Named":{"name":"common_text_twin","atom":826}},{"Sequence":{"atoms":[1,817]}},{"Entity":{"atom":816}},{"Alternative":{"atoms":[0,829]}}],"root":830},"bindings":[{"capture":"sector","path":"sector","type":"string","card":null,"preprocess":null},{"capture":"series","path":"series","type":"string","card":null,"preprocess":null},{"capture":"series_word","path":"series_word","type":"string","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"subseries","path":"subseries","type":"string","card":null,"preprocess":null},{"capture":"series_suffix","path":"series_suffix","type":"string","card":null,"preprocess":null},{"capture":"series_suffix_spaced","path":"series_suffix_spaced","type":"string","card":null,"preprocess":null},{"capture":"qualifier","path":"qualifier","type":"string","card":null,"preprocess":null},{"capture":"qualifier_spaced","path":"qualifier_spaced","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"month","path":"month","type":"string","card":null,"preprocess":null},{"capture":"day","path":"day","type":"string","card":null,"preprocess":null},{"capture":"roman_month","path":"roman_month","type":"string","card":null,"preprocess":null},{"capture":"language","path":"language","type":"string","card":null,"preprocess":null},{"capture":"attachment","path":"attachment","type":"string","card":null,"preprocess":null},{"capture":"range_end","path":"range_end","type":"string","card":null,"preprocess":null},{"capture":"part","path":"parts[].part","type":"string","card":null,"preprocess":null},{"capture":"imp_marker","path":"imp_marker","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null},{"capture":"series_dash","path":"series_dash","type":"string","card":null,"preprocess":null},{"capture":"combined","path":"combined","type":"raw","card":null,"preprocess":null},{"capture":"technical","path":"technical","type":"string","card":null,"preprocess":null},{"capture":"supplement_type","path":"supplement_type","type":"string","card":null,"preprocess":null},{"capture":"supplement_space","path":"supplement_space","type":"string","card":null,"preprocess":null},{"capture":"supplement_number","path":"supplement_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_month","path":"supplement_month","type":"string","card":null,"preprocess":null},{"capture":"supplement_year","path":"supplement_year","type":"string","card":null,"preprocess":null},{"capture":"base","path":"base","type":"raw","card":null,"preprocess":null},{"capture":"annex_number","path":"annex_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_number","path":"appendix_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_material","path":"appendix_material","type":"string","card":null,"preprocess":null},{"capture":"supplement_slash","path":"supplement_slash","type":"string","card":null,"preprocess":null},{"capture":"report_marker","path":"report_marker","type":"string","card":null,"preprocess":null},{"capture":"resolution_marker","path":"resolution_marker","type":"string","card":null,"preprocess":null},{"capture":"_op_bull","path":"_op_bull","type":"string","card":null,"preprocess":null},{"capture":"contribution_marker","path":"contribution_marker","type":"string","card":null,"preprocess":null},{"capture":"handbook_marker","path":"handbook_marker","type":"string","card":null,"preprocess":null},{"capture":"study_group","path":"study_group","type":"string","card":null,"preprocess":null},{"capture":"has_bl","path":"has_bl","type":"string","card":null,"preprocess":null},{"capture":"bracketed","path":"bracketed","type":"string","card":null,"preprocess":null},{"capture":"question_colon","path":"question_colon","type":"string","card":null,"preprocess":null},{"capture":"common_text_twin","path":"common_text_twin","type":"string","card":null,"preprocess":null},{"capture":"annex_to","path":"annex_to","type":"raw","card":null,"preprocess":null},{"capture":"radio_regulations","path":"radio_regulations","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule non_pipe: branches 1 and 2 are order-dependent (first set not statically known)","rule series_suffix_word: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base_report: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base_resolution: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule ob_date: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule special_publication: 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 itu_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 14 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 15 and 16 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"ITU-R BT.500","expect":{}},{"entry":"identifier","kind":"accept","input":"Recommendation ITU-T G.650.1 (09/2020)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-R SA.3631 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T OB.101 (2016)","expect":{}},{"entry":"identifier","kind":"accept","input":"Annex to ITU-T OB.101","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T E.164/2","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T 55/13:","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.984.2 Amd. 1 (2010)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.650.1B","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/itu/parser.rb — ITU-T/R/D designations: series codes\n# (BT/G/V, SGnn), Imp implementation codes, OB Operational Bulletins,\n# Reports, Study Group questions (numeric and bracketed series form),\n# supplements (Suppl./Amd./Add./Err./Cor. with Technical marker), Annex\n# and App. wraps, combined \"/XX.N\" designations, and the \"| twin\"\n# common-text form. Internal rule `itu_identifier` corresponds to the\n# source's `identifier` (renamed: PG forbids self-reference from the\n# common-text wrapper).\n#\n# Edition-2 conversion. Deviations from the v1 tree:\n# - every leaf capture body is written out at its site so it lowers to\n# one scalar span: edition 2 materializes bare refs to capture-less\n# composite rules as named nodes (the asme/cie/bsi inlining rule), so\n# `digits`, `yyyymm_year`, `yyyymm_month`, `roman`, `annex_label` and\n# `non_pipe` are spelled out at every capture site, and `letter` (a\n# ref to `upper`) is spelled as its class — a ref chain inside a\n# capture breaks the span lowering. Literal alternations\n# (series_suffix_word, the sector/language/roman_month words) and\n# refs to capture-bearing rules (`number`, `series`, `question_tail`)\n# stay refs and bind as spans.\n# - the builder keeps its v1 wrapper walks (`base` recursion for\n# annex/appendix/supplement chains, `combined` ->\n# `designation` elements, `parts` -> `part` hashes), so `base`,\n# `annex_to` and `combined` bind uncast with (raw) and `part` binds\n# through the array (`part -> parts[].part (string)`). The inner\n# `designation` capture is deliberately unbound: it rides inside the\n# raw `combined` array exactly as the v1 tree delivered it.\n# - presence markers keep their captured-token shape (the captured\n# space of `supplement_space`/`qualifier_spaced`, the \"/BL\" of\n# `has_bl`, the \"[\" of `bracketed`), so the builder's nil? checks\n# keep their meaning; every optional capture is spelled\n# `[ (group) as x ]` so non-participation omits the key on every\n# engine.\n\ngrammar PubidItu version \"0.1.0\" edition 2 {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n letter = upper\n digits = 1*digit\n space = \" \"\n dash = \"-\"\n dot = \".\"\n non_pipe = %x01-7B / %x7D-10FFFF\n\n itu_prefix = (\"Recommendation \" \"ITU\" (dash / space)) / (\"ITU\" (dash / space))\n sector = (\"R\" / \"T\" / \"D\") as sector\n series = ((\"SG\" 1*digit) / (1*3upper)) as series\n series_group = (upper [1*digit] dash 1*digit) as series\n series_word = space \"series\" as series_word\n number = (1*digit) as number\n subseries = dot (1*digit) as subseries\n series_suffix_word = \"bis\" / \"ter\" / \"quater\" / \"quarter\"\n series_suffix = (series_suffix_word) as series_suffix\n series_suffix_spaced = (space as series_suffix_spaced) ((series_suffix_word) as series_suffix)\n qualifier_letter = ((%x41-52 / %x61-72) as qualifier !(upper / lower / digit))\n qualifier_glued = qualifier_letter\n qualifier_spaced = (space as qualifier_spaced) qualifier_letter\n yyyymm_year = (\"19\" / \"20\") digit digit\n yyyymm_month = (\"0\" %x31-39) / (\"1\" %x30-32)\n yyyymm_shape = yyyymm_year yyyymm_month !digit\n yyyymm_date = dash ((\"19\" / \"20\") digit digit) as year ((\"0\" %x31-39) / (\"1\" %x30-32)) as month !digit\n id_status = dash (\"I\" / \"S\") !(digit / letter)\n print_id_status = dash \"I\" !(digit / letter)\n id_date = yyyymm_date [print_id_status]\n document_date = (date_part / id_date)\n rec_word = (\"REC\" (space / dash))\n publication_id = sector dash \"REC\" dash series dot code yyyymm_date [id_status] [language]\n code_suffixes = [series_suffix_spaced] [qualifier_spaced]\n attachment = space \"attachment\" as attachment\n range_end = dash ((1*3upper dot 1*digit) as range_end)\n part = dash !yyyymm_shape (1*digit) as part\n parts = (*part) as parts\n code = imp_code / standard_code\n standard_code = number [series_suffix] [subseries] parts [qualifier_glued]\n imp_code = \"Imp\" as imp_marker (((1*digit) / (1*3upper)) as number) [subseries] parts\n date_part = space \"(\" [((1*digit) as month \"/\")] ((4digit) as year) \")\"\n version_part = space (((\"(V\" 1*digit as version \")\") / ((\"V\" / \"v\") [dot] 1*digit as version)))\n language = dash ((\"E\" / \"F\" / \"A\" / \"S\" / \"C\" / \"R\") as language)\n\n # The combined-designation tail repeats the code-suffix shapes under\n # d_* capture names: a capture name occurring at two structural depths\n # pairs into ONE top-level bound key (last occurrence wins; array\n # bindings concatenate), so the shared number/subseries/parts/suffix/\n # qualifier names would corrupt the primary's Code with the\n # designation's tail. series and number stay shared — the primary\n # always carries them first.\n d_number = (1*digit) as d_number\n d_subseries = dot (1*digit) as d_subseries\n d_part = dash !yyyymm_shape (1*digit) as d_part\n d_parts = (*d_part) as d_parts\n d_series_suffix = (series_suffix_word) as d_series_suffix\n d_series_suffix_spaced = (space as d_series_suffix_spaced) ((series_suffix_word) as d_series_suffix)\n d_qualifier_letter = ((%x41-52 / %x61-72) as d_qualifier !(upper / lower / digit))\n d_qualifier_glued = d_qualifier_letter\n d_qualifier_spaced = (space as d_qualifier_spaced) d_qualifier_letter\n\n combined_designation = \"/\" ((series dot d_number [d_subseries] d_parts [d_qualifier_glued] [d_series_suffix_spaced] [d_qualifier_spaced]) as designation)\n combined_suffixes = (1*combined_designation) as combined\n\n technical_marker = \"Technical\" as technical space\n supplement_type = ((\"Suppl.\" / \"Suppl\" / \"Amd.\" / \"Amd\" / \"Add.\" / \"Add\" / \"Err.\" / \"Err\") as supplement_type) / (([technical_marker] (\"Cor.\" / \"Cor\") as supplement_type))\n supplement_number = ([space as supplement_space]) ((1*digit *(dot 1*digit)) as supplement_number)\n supplement_date = space \"(\" [((1*digit) as supplement_month \"/\")] ((4digit) as supplement_year) \")\"\n\n base_with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n }\n series_code_body = {\n !(\"OB\" dash)\n ((2*upper) as series)\n (dash as series_dash)\n (((1*digit) / (1*upper)) as number)\n parts\n }\n contribution = {\n itu_prefix sector space\n series\n (\"-C\" as contribution_marker)\n number\n parts\n [language]\n }\n base_series_code = {\n itu_prefix sector space\n series_code_body\n [version_part]\n [document_date]\n }\n series_code_identifier = base_series_code [language]\n report_word = \"Report\" as report_marker\n report_body = {\n !(\"OB\" dot)\n [(series dot)]\n code\n [range_end]\n code_suffixes\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_report = {\n (report_word space itu_prefix sector space report_body)\n / (itu_prefix sector space report_word space report_body)\n }\n report_identifier = base_report [language]\n # ITU-R Resolution (\"Resolution ITU-R 1-9 (2023)\"): a number and its\n # revision, never a series. Like the Report marker, the word is captured,\n # and both the leading and the infix spelling are accepted.\n resolution_word = (\"Resolution\" / \"Res.\") as resolution_marker\n resolution_body = {\n code\n [document_date]\n }\n base_resolution = {\n (resolution_word space itu_prefix sector space resolution_body)\n / (itu_prefix sector space resolution_word space resolution_body)\n }\n resolution_identifier = base_resolution [language]\n base = base_report / base_with_series / base_without_series / base_series_code\n\n annex_label = upper [1*digit] [\"+\"]\n annex_body = {\n (base as base)\n space \"Annex\" space\n ((upper [1*digit] [\"+\"])) as annex_number\n [document_date]\n }\n annex_identifier = annex_body [language]\n roman = 1*(%x49 / %x56 / %x58)\n appendix_material = space ((\"test vectors\" / \"Software\") as appendix_material)\n appendix_body = {\n (base as base)\n space \"App.\" [space]\n (1*(%x49 / %x56 / %x58)) as appendix_number\n [appendix_material]\n [document_date]\n }\n appendix_identifier = appendix_body [language]\n\n supplement_with_base = {\n ((annex_body as base) / (appendix_body as base) / (base as base))\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n chained_supplement = {\n ((supplement_with_base / supplement_series_only) as base)\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_series_only = {\n itu_prefix sector space\n (series_group / series)\n [series_word]\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n slash_chained_supplement = {\n ((supplement_with_base) as base)\n (\"/\" as supplement_slash)\n supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_identifier = chained_supplement / slash_chained_supplement / supplement_with_base / supplement_series_only\n\n with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n\n roman_month = \"XII\" / \"XI\" / \"IX\" / \"VIII\" / \"VII\" / \"VI\" / \"V\" / \"IV\" / \"III\" / \"II\" / \"I\"\n ob_roman_date = \" - \" (2digit) as day dot (roman_month as roman_month) dot (4digit) as year\n ob_date = (date_part / ob_roman_date)\n ob_series = \"OB\" as series\n ob_dot_body = dot number\n ob_no_body = space \"No.\" space number\n ob_bare_body = space number\n ob_with_sector = {\n itu_prefix\n [(sector space)]\n ob_series\n (ob_dot_body / ob_no_body / ob_bare_body)\n [ob_date]\n [language]\n }\n ob_long_form = {\n itu_prefix\n [(sector space)]\n \"Operational Bulletin\" as _op_bull\n space \"No.\" space number\n [document_date]\n [language]\n }\n special_publication = ob_with_sector / ob_long_form\n annex_to_identifier = \"Annex to\" space (special_publication as annex_to)\n handbook = {\n itu_prefix sector space\n number dot \"HDB\" as handbook_marker\n [document_date]\n }\n numeric_question = {\n itu_prefix sector space\n number parts\n ((\"/\" (1*digit) as study_group))\n [(\":\" as question_colon)]\n }\n question_tail = number [(\"/BL\" as has_bl)] \"/\" (1*digit) as study_group\n letter_question = {\n itu_prefix sector space\n series dot\n (((\"[\" as bracketed) question_tail \"]\") / question_tail)\n [(\":\" as question_colon)]\n }\n common_text_twin = (space \"|\" space (1*non_pipe)) as common_text_twin\n\n identifier = common_text_identifier / itu_identifier\n any_char = %x00-10FFFF\n radio_regulations = {\n itu_prefix\n (\"R\") as sector\n space \"RR\" as radio_regulations\n [(date_part / (dash (4digit) as year))]\n [language]\n !any_char\n }\n itu_identifier = {\n annex_to_identifier\n / special_publication\n / supplement_identifier\n / annex_identifier\n / appendix_identifier\n / report_identifier\n / resolution_identifier\n / handbook\n / numeric_question\n / letter_question\n / radio_regulations\n / with_series\n / contribution\n / series_code_identifier\n / without_series\n / publication_id\n }\n common_text_identifier = itu_identifier common_text_twin\n\n entry identifier: identifier\n\n bindings identifier {\n sector -> sector (string)\n series -> series (string)\n series_word -> series_word (string)\n number -> number (string)\n subseries -> subseries (string)\n series_suffix -> series_suffix (string)\n series_suffix_spaced -> series_suffix_spaced (string)\n qualifier -> qualifier (string)\n qualifier_spaced -> qualifier_spaced (string)\n year -> year (string)\n month -> month (string)\n day -> day (string)\n roman_month -> roman_month (string)\n language -> language (string)\n attachment -> attachment (string)\n range_end -> range_end (string)\n part -> parts[].part (string)\n imp_marker -> imp_marker (string)\n version -> version (string)\n series_dash -> series_dash (string)\n combined -> combined (raw)\n technical -> technical (string)\n supplement_type -> supplement_type (string)\n supplement_space -> supplement_space (string)\n supplement_number -> supplement_number (string)\n supplement_month -> supplement_month (string)\n supplement_year -> supplement_year (string)\n base -> base (raw)\n annex_number -> annex_number (string)\n appendix_number -> appendix_number (string)\n appendix_material -> appendix_material (string)\n supplement_slash -> supplement_slash (string)\n report_marker -> report_marker (string)\n resolution_marker -> resolution_marker (string)\n _op_bull -> _op_bull (string)\n contribution_marker -> contribution_marker (string)\n handbook_marker -> handbook_marker (string)\n study_group -> study_group (string)\n has_bl -> has_bl (string)\n bracketed -> bracketed (string)\n question_colon -> question_colon (string)\n common_text_twin -> common_text_twin (string)\n annex_to -> annex_to (raw)\n radio_regulations -> radio_regulations (string)\n }\n\n test {\n accept \"ITU-R BT.500\"\n accept \"Recommendation ITU-T G.650.1 (09/2020)\"\n accept \"ITU-R SA.3631 Annex A\"\n accept \"ITU-T OB.101 (2016)\"\n accept \"Annex to ITU-T OB.101\"\n accept \"ITU-T E.164/2\"\n accept \"ITU-T 55/13:\"\n accept \"ITU-T G.984.2 Amd. 1 (2010)\"\n accept \"ITU-T G.650.1B\"\n reject \"nonsense\"\n }\n}\n","source_hash":"cfea5bc964d9f577ca5904520085a0d4fabbe2ad571abf049c6848511a78e695","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:0bc8fc15fca0a1874b93cd0afbf9362563933f595bcd0e1bdc36d9d76eb0e126","checksum":"sha256:4f7aade653aaf683a241b15bb51812cff3517e55b90436446e42c88ff7bf4748","validated":{"lint_errors":0,"lint_warnings":141,"tests_total":10,"tests_failures":0,"self_test":true}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidWmo","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":47}},{"Entity":{"atom":7}},{"Str":{"pattern":"S-"}},{"Entity":{"atom":4}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":3,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":5}},{"Sequence":{"atoms":[2,6]}},{"Entity":{"atom":9}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Annex"}},{"Str":{"pattern":"ANNEX"}},{"Alternative":{"atoms":[10,11]}},{"Named":{"name":"annex_marker","atom":12}},{"Entity":{"atom":9}},{"Entity":{"atom":16}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"annex_letter","atom":15}},{"Entity":{"atom":19}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Lookahead":{"atom":18,"positive":false}},{"Sequence":{"atoms":[14,17,20]}},{"Repetition":{"atom":21,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Entity":{"atom":9}},{"Entity":{"atom":35}},{"Entity":{"atom":4}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":29}},{"Str":{"pattern":"."}},{"Entity":{"atom":4}},{"Repetition":{"atom":30,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[28,31]}},{"Repetition":{"atom":32,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,33]}},{"Named":{"name":"edition_value","atom":34}},{"Sequence":{"atoms":[24,25]}},{"Named":{"name":"edition","atom":36}},{"Entity":{"atom":44}},{"Entity":{"atom":40}},{"Str":{"pattern":":"}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":35}},{"Sequence":{"atoms":[39,41,42]}},{"Named":{"name":"edition","atom":43}},{"Alternative":{"atoms":[23,38]}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,8,13,22,46]}},{"Entity":{"atom":77}},{"Entity":{"atom":51}},{"Str":{"pattern":"WMO-No."}},{"Named":{"name":"wmomarker","atom":50}},{"Entity":{"atom":9}},{"Entity":{"atom":56}},{"Entity":{"atom":4}},{"Repetition":{"atom":54,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":55}},{"Entity":{"atom":68}},{"Entity":{"atom":59}},{"Str":{"pattern":","}},{"Repetition":{"atom":58,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Entity":{"atom":65}},{"Entity":{"atom":4}},{"Repetition":{"atom":63,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"edition_value","atom":64}},{"Str":{"pattern":" edition"}},{"Sequence":{"atoms":[60,61,62,66]}},{"Named":{"name":"edition","atom":67}},{"Entity":{"atom":74}},{"Entity":{"atom":40}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":65}},{"Sequence":{"atoms":[70,71,72]}},{"Named":{"name":"edition","atom":73}},{"Alternative":{"atoms":[57,69]}},{"Repetition":{"atom":75,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[49,52,53,76]}},{"Entity":{"atom":84}},{"Entity":{"atom":7}},{"Entity":{"atom":37}},{"Entity":{"atom":44}},{"Alternative":{"atoms":[80,81]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[79,83]}},{"Alternative":{"atoms":[0,48,78]}}],"root":85},"bindings":[{"capture":"wmomarker","path":"wmomarker","type":"string","card":null,"preprocess":null},{"capture":"doc_number","path":"doc_number","type":"string","card":null,"preprocess":null},{"capture":"edition_value","path":"edition_value","type":"string","card":null,"preprocess":null},{"capture":"annex_marker","path":"annex_marker","type":"string","card":null,"preprocess":null},{"capture":"annex_letter","path":"annex_letter","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"WMO-No. 1364","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364, 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364:ed2025","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411:ed1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 ANNEX A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A 1.2.0","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO-No. edition","expect":{}},{"entry":"identifier","kind":"reject","input":"S-411 1234","expect":{}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364","expect":{"wmomarker":"WMO-No.","doc_number":"1364"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2025 edition","expect":{"wmomarker":"WMO-No.","doc_number":"1364","edition_value":"2025"}},{"entry":"identifier","kind":"example","input":"S-411 1.2.1","expect":{"doc_number":"411","edition_value":"1.2.1"}},{"entry":"identifier","kind":"example","input":"S-411 Annex A 1.2.0","expect":{"doc_number":"411","annex_marker":"Annex","annex_letter":"A","edition_value":"1.2.0"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364:ed2025","expect":{"wmomarker":"WMO-No.","doc_number":"1364","edition_value":"2025"}}],"docs":{},"source":"# WMO document identifiers (pubid#763): the WMO-No. publication series\n# and the WMO-published S-100 product specifications.\n#\n# WMO-No. 1364 publication, bare\n# WMO-No. 1364, 2025 edition publication, year edition (citation comma)\n# WMO-No. 1364 2025 edition publication, year edition (cover stack)\n# WMO-No. 1364:ed2025 publication, compact year edition (alias)\n# S-411 S-100 product specification, bare\n# S-411 1.2.1 dotted edition (the S-411 repo form)\n# S-411:ed1.2.1 compact dotted edition (alias)\n# S-411 Annex A annex wrapper (the DCEG docidentifier)\n# S-411 Annex A 1.2.0 annex wrapper carrying its edition\n#\n# Editions are a type-driven face: the WMO-No. series carries calendar-year\n# editions (\"2025 edition\", MRN `ed2025`); the S-100 shapes carry the IHO\n# dotted x.y.z (MRN `ed1.2.1`). Both bind the one `edition_value` capture;\n# the builder keys the face off the resolved type.\n#\n# Type assignment (the #763 ruling): the S-lexical form is a WMO type,\n# publisher-parameterised per IALA's S-201 — the lexical shape is the IHO\n# S-100 form, but the flavor owns the WMO-published documents\n# (metanorma/S-411-Product-Specification, mn-document-class wmo).\n#\n# Edition-2 conversion with typed model bindings, mirroring the iala\n# grammar: each alternative path carries exactly one occurrence of every\n# capture name, so the harvest delivers one flat bound map; the annex base\n# composite stays unbound (its `doc_number` hoists to the top level) and\n# the builder dispatches on `wmomarker` / `annex_marker`. The annex letter\n# guard (!lower) keeps a following edition segment from mis-capturing.\n\ngrammar PubidWmo version \"0.1.0\" edition 2 {\n wmomarker = \"WMO-No.\" as wmomarker\n doc_number = (1*digit) as doc_number\n s_code = \"S-\" (1*digit) as doc_number\n year_value = (4digit) as edition_value\n dotted_value = (1*digit 1*(dot 1*digit)) as edition_value\n edition_year_human = ([comma] space year_value \" edition\") as edition\n edition_year_compact = (colon \"ed\" year_value) as edition\n edition_dotted_human = (space dotted_value) as edition\n edition_dotted_compact = (colon \"ed\" dotted_value) as edition\n annex_identifier = {\n s_code\n space\n (\"Annex\" / \"ANNEX\") as annex_marker\n [ (space upper as annex_letter !lower) ]\n [edition_dotted_human / edition_dotted_compact]\n }\n publication_identifier = {\n wmomarker space doc_number\n [edition_year_human / edition_year_compact]\n }\n standard_identifier = {\n s_code\n [edition_dotted_human / edition_dotted_compact]\n }\n identifier = annex_identifier / publication_identifier / standard_identifier\n entry identifier: identifier\n\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n comma = \",\"\n colon = \":\"\n dot = \".\"\n space = \" \"\n\n bindings identifier {\n wmomarker -> wmomarker (string)\n doc_number -> doc_number (string)\n edition_value -> edition_value (string)\n annex_marker -> annex_marker (string)\n annex_letter -> annex_letter (string)\n }\n\n test {\n accept \"WMO-No. 1364\"\n accept \"WMO-No. 1364, 2025 edition\"\n accept \"WMO-No. 1364 2025 edition\"\n accept \"WMO-No. 1364:ed2025\"\n accept \"S-411\"\n accept \"S-411 1.2.1\"\n accept \"S-411:ed1.2.1\"\n accept \"S-411 Annex A\"\n accept \"S-411 ANNEX A\"\n accept \"S-411 Annex A 1.2.0\"\n reject \"nonsense\"\n reject \"WMO-No. edition\"\n reject \"S-411 1234\"\n example \"WMO-No. 1364\" { wmomarker: \"WMO-No.\", doc_number: \"1364\" }\n example \"WMO-No. 1364, 2025 edition\" {\n wmomarker: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n example \"S-411 1.2.1\" { doc_number: \"411\", edition_value: \"1.2.1\" }\n example \"S-411 Annex A 1.2.0\" {\n doc_number: \"411\",\n annex_marker: \"Annex\",\n annex_letter: \"A\",\n edition_value: \"1.2.0\",\n }\n example \"WMO-No. 1364:ed2025\" {\n wmomarker: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n }\n}\n","source_hash":"c1154f8f4d15e8e1bb6cf9e72f81ff364f38a4fcdb6a51306ad9168b309e593f","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:b48a1a5ec6cdc049a19e4a5c0384c10c9bf00160cc30924a21606ac45f558819","checksum":"sha256:671bca49cef897f9c5554c6073cf7b9a2319240ecc2a82a36d559af0d44e5d09","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":18,"tests_failures":0,"self_test":true}}
|