pubid 2.0.45 → 2.0.47
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.
- checksums.yaml +4 -4
- data/conformance/pending.yaml +173 -0
- data/data/parg/ansi.json +1 -1
- data/data/parg/itu.json +1 -1
- data/lib/pubid/ansi/CLAUDE.md +59 -0
- data/lib/pubid/ansi/builder.rb +14 -0
- data/lib/pubid/ansi/identifier.rb +16 -0
- data/lib/pubid/ansi/identifiers/american_national_standard.rb +2 -1
- data/lib/pubid/ansi/pubid_urn_schema.rb +4 -3
- data/lib/pubid/ansi/renderer.rb +9 -1
- data/lib/pubid/ansi.rb +8 -2
- data/lib/pubid/eu/CLAUDE.md +33 -0
- data/lib/pubid/eu/builder.rb +22 -8
- data/lib/pubid/eu/identifier.rb +75 -4
- data/lib/pubid/eu/pubid_urn_schema.rb +3 -1
- data/lib/pubid/itu/CLAUDE.md +29 -1
- data/lib/pubid/itu/builder.rb +6 -1
- data/lib/pubid/itu/identifiers/resolution.rb +38 -0
- data/lib/pubid/itu/identifiers.rb +1 -0
- data/lib/pubid/itu/pubid_urn_schema.rb +1 -0
- data/lib/pubid/itu/urn_generator.rb +3 -0
- data/lib/pubid/itu/urn_parser.rb +10 -11
- data/lib/pubid/prefixes_support.rb +11 -0
- data/lib/pubid/version.rb +1 -1
- data/lib/pubid.rb +18 -1
- metadata +3 -1
data/data/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.10)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:0bc8fc15fca0a1874b93cd0afbf9362563933f595bcd0e1bdc36d9d76eb0e126","checksum":"sha256:b5de8fc025d436ad66ec9e9424853648d1781abe8374f388b4edcd8e7a34483a","validated":{"lint_errors":0,"lint_warnings":141,"tests_total":10,"tests_failures":0,"self_test":true},"byte_checksum":"sha256:c012bfd9181c3599d60ac11d735f25accfb8fbc23eec2d83cc50526f56cba9d9"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ANSI flavor notes
|
|
2
|
+
|
|
3
|
+
## The trailing year and the open co-publisher list (relaton#45)
|
|
4
|
+
|
|
5
|
+
relaton routes `ANSI …` through `Pubid::Ansi`: it takes the year for the cache
|
|
6
|
+
key and sends `ANSI/<co-publisher> …` to that co-publisher's flavor
|
|
7
|
+
(hand-off `pubid__pubid__ansi-year-and-copublishers`).
|
|
8
|
+
|
|
9
|
+
- **A trailing `-YYYY` (19xx/20xx) is the year, not a part.** The grammar's
|
|
10
|
+
`number_with_part` still captures `X9.62-2005` whole; `Builder#read_dash_year`
|
|
11
|
+
moves a 4-digit 19xx/20xx dash group into `date` and sets
|
|
12
|
+
`date_separator: "-"`, but only when no `:YYYY` follows, so the part of
|
|
13
|
+
`ANSI X9.8-1:2007` stays a part. Before this, all 175 corpus ids stored the
|
|
14
|
+
year in `part` and had no `year`. A real 4-digit part in 19xx/20xx is now
|
|
15
|
+
read as a year; no corpus id has one.
|
|
16
|
+
- **`date_separator` is spelling, not identity.** It is `equality_ignored`, so
|
|
17
|
+
`ANSI X9.62-2005 == ANSI X9.62:2005`. nil means the colon, which keeps the
|
|
18
|
+
hash of `ANSI/ISO 9899:1990` unchanged. It is the pubid-URN facet `datesep`.
|
|
19
|
+
`#exclude(:year)` / `#exclude(:date)` also nils it (the sibling-cluster rule
|
|
20
|
+
in the root `CLAUDE.md`), so a year-less copy carries no orphan flag.
|
|
21
|
+
- **Any uppercase acronym co-publishes**: `copublisher_item` is
|
|
22
|
+
`"/" [" "] %x41-5A 1*(%x41-5A / %x30-39)` (UL, NISO, INCITS, ASHRAE, HL7,
|
|
23
|
+
ASC, …), in `data/parg/ansi.json`. **The grammar was baked here ahead of
|
|
24
|
+
pubid-grammar** (hand-off `pubid__pubid-grammar__ansi-open-copublishers`):
|
|
25
|
+
the `source` of `data/parg/ansi.json` is the only copy until pubid-grammar
|
|
26
|
+
adopts it. To rebake: `jq -j .source data/parg/ansi.json > ansi.parg`, edit,
|
|
27
|
+
`parsanol _1.5.1.0_ parg compile ansi.parg -o data/parg/ansi.json`,
|
|
28
|
+
`parsanol _1.5.1.0_ parg test data/parg/ansi.json`.
|
|
29
|
+
- **Not supported yet: the dash after the acronym** — `ANSI/ISA-5.1-2009`,
|
|
30
|
+
`ANSI/ANS-8.1-2014`, `ANSI/ISA-61511-1-2018`, `ANSI/TIA-568.2-D`. They need a
|
|
31
|
+
`-` separator after the co-publisher (an equality-ignored spelling flag), a
|
|
32
|
+
second dash group for part + year, and letter revisions for TIA.
|
|
33
|
+
- **Routing umbrella.** With the open list, ANSI parses `ANSI/AMCA 210-16`
|
|
34
|
+
exactly while AMCA normalizes it (`ANSI/AMCA Standard 210-16`), so plain
|
|
35
|
+
routing would have handed it to ANSI. `Pubid::Ansi.routing_umbrella?` is
|
|
36
|
+
true: `Pubid.parse` tries ANSI last among the prefix owners and returns an
|
|
37
|
+
earlier owner's parse. **The short-cut fires only when ANSI is a prefix
|
|
38
|
+
owner of the string.** A first version fired in the exhaustive pass too,
|
|
39
|
+
where ANSI is 4th in registry order, and it moved 24 unrelated routes
|
|
40
|
+
(`EP 207` went from GB to BSI `BS 207`); `spec/pubid/ansi/
|
|
41
|
+
year_and_copublishers_spec.rb` pins two of them. Measured over every
|
|
42
|
+
ansi/amca/ashrae/ieee fixture id and over a 8,428-id sample of every
|
|
43
|
+
flavor's pass fixtures: no route moved except new parses and
|
|
44
|
+
`ANSI/ASHRAE 90.1-2019`, which went to IEEE before (a non-owner's exact
|
|
45
|
+
parse) and now goes to ASHRAE (rendered `ASHRAE Standard 90.1-2019`).
|
|
46
|
+
`Pubid::Ansi.parse` itself still reads it as ANSI with co-publisher ASHRAE.
|
|
47
|
+
- **Type keys are unique**: `AmericanNationalStandard` (never built by the
|
|
48
|
+
builder) has key `:american_national_standard`; `Standard` keeps `:ans`.
|
|
49
|
+
|
|
50
|
+
**What moved** (replay of all 11,656 ansi/ieee/amca/ashrae fixture ids against
|
|
51
|
+
`main`): `to_s` byte-identical for every id that parsed before. `to_hash` and
|
|
52
|
+
the pubid URN moved for 174 earlier ANSI ids and 33 IEEE adoptions that nest an ANSI
|
|
53
|
+
id (`IEEE 167-1966 (ANSI C16.37-1971)`): `part` became `year` +
|
|
54
|
+
`date_separator`. `to_urn` moved for the same 174 ANSI ids (`urn:ansi:802.3:-2012` →
|
|
55
|
+
`urn:ansi:802.3:2012`, which `UrnParser` now reads back). An old hash still
|
|
56
|
+
deserializes, but it does not `==` a fresh parse, so the relaton-data-ieee rows
|
|
57
|
+
that nest an ANSI id need a re-crawl. The 170 moved `tests/ansi/` cases are in
|
|
58
|
+
`conformance/pending.yaml` until the pubid-testsuite round (hand-off
|
|
59
|
+
`pubid__pubid-testsuite__ansi-year-and-corpus`).
|
data/lib/pubid/ansi/builder.rb
CHANGED
|
@@ -7,11 +7,25 @@ module Pubid
|
|
|
7
7
|
data = flatten_array(data) if data.is_a?(Array)
|
|
8
8
|
identifier = default_identifier_class.new
|
|
9
9
|
assign_attributes(identifier, data)
|
|
10
|
+
read_dash_year(identifier)
|
|
10
11
|
identifier
|
|
11
12
|
end
|
|
12
13
|
|
|
14
|
+
# A trailing "-" + 4 digits (19xx/20xx) is the publication year, not a
|
|
15
|
+
# part: "ANSI X9.62-2005" (relaton#45). Only when no ":YYYY" follows,
|
|
16
|
+
# so the part of "ANSI X9.8-1:2007" stays a part.
|
|
17
|
+
DASH_YEAR = /\A(?:19|20)\d{2}\z/
|
|
18
|
+
|
|
13
19
|
private
|
|
14
20
|
|
|
21
|
+
def read_dash_year(identifier)
|
|
22
|
+
return if identifier.date || !DASH_YEAR.match?(identifier.part.to_s)
|
|
23
|
+
|
|
24
|
+
identifier.date = Components::Date.new(year: identifier.part)
|
|
25
|
+
identifier.date_separator = "-"
|
|
26
|
+
identifier.part = nil
|
|
27
|
+
end
|
|
28
|
+
|
|
15
29
|
def default_identifier_class
|
|
16
30
|
Identifiers::Standard
|
|
17
31
|
end
|
|
@@ -13,6 +13,12 @@ module Pubid
|
|
|
13
13
|
attribute :part, :string
|
|
14
14
|
attribute :subpart, :string
|
|
15
15
|
|
|
16
|
+
# How the input joined the year to the number: "-" for the
|
|
17
|
+
# "ANSI X9.62-2005" spelling, nil for the colon of "ANSI/ISO 9899:1990".
|
|
18
|
+
# Spelling only, so `==`, `hash` and `===` skip it (relaton#45).
|
|
19
|
+
attribute :date_separator, :string
|
|
20
|
+
equality_ignored :date_separator
|
|
21
|
+
|
|
16
22
|
def self.parse(string)
|
|
17
23
|
unless string.is_a?(String)
|
|
18
24
|
raise Pubid::Errors::InvalidInputError,
|
|
@@ -28,6 +34,16 @@ module Pubid
|
|
|
28
34
|
parsed = Pubid::Parg::Model.bound(:ansi, string)
|
|
29
35
|
Pubid::Ansi::Builder.new.build(parsed)
|
|
30
36
|
end
|
|
37
|
+
|
|
38
|
+
# The separator belongs to the year: drop it with the year, so a
|
|
39
|
+
# year-less copy carries no orphan spelling flag in its hash.
|
|
40
|
+
def exclude(*args)
|
|
41
|
+
result = super
|
|
42
|
+
if args.include?(:year) || args.include?(:date)
|
|
43
|
+
result.date_separator = nil
|
|
44
|
+
end
|
|
45
|
+
result
|
|
46
|
+
end
|
|
31
47
|
end
|
|
32
48
|
end
|
|
33
49
|
end
|
|
@@ -4,7 +4,8 @@ module Pubid
|
|
|
4
4
|
# American National Standard identifier
|
|
5
5
|
class AmericanNationalStandard < SingleIdentifier
|
|
6
6
|
def self.type
|
|
7
|
-
{ key: :
|
|
7
|
+
{ key: :american_national_standard,
|
|
8
|
+
web: :american_national_standard,
|
|
8
9
|
title: "American National Standard", short: "ANS" }
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,11 +5,11 @@ module Pubid
|
|
|
5
5
|
# The pubid-scheme URN of ANSI (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
6
|
#
|
|
7
7
|
# ANSI 802.3-2012
|
|
8
|
-
# urn:pubid:ansi:std:802.3:pub-ANSI:
|
|
8
|
+
# urn:pubid:ansi:std:802.3:pub-ANSI:year-2012:f:0.datesep--
|
|
9
9
|
#
|
|
10
10
|
# Landed with the IEEE wave, which nests ANSI ids ("IEEE Std 144-1971
|
|
11
|
-
# (ANSI C37.24-1971)").
|
|
12
|
-
#
|
|
11
|
+
# (ANSI C37.24-1971)"). The trailing "-2012" is the year (relaton#45);
|
|
12
|
+
# its dash is the spelling facet +datesep+.
|
|
13
13
|
#
|
|
14
14
|
# A component attribute maps through its identifying field only
|
|
15
15
|
# (+type.abbr+, +stage.abbr+, +edition.number+ …). The registry fields of
|
|
@@ -35,6 +35,7 @@ module Pubid
|
|
|
35
35
|
|
|
36
36
|
facet "languages.*.original_code", "langsrc"
|
|
37
37
|
facet "edition.original_text", "edsrc"
|
|
38
|
+
facet "date_separator", "datesep"
|
|
38
39
|
|
|
39
40
|
type "pubid:ansi:standard", "std"
|
|
40
41
|
type "pubid:ansi:american-national-standard", "ans"
|
data/lib/pubid/ansi/renderer.rb
CHANGED
|
@@ -8,6 +8,7 @@ module Pubid
|
|
|
8
8
|
# "ANSI X3.4"
|
|
9
9
|
# "ANSI/ISO 9899"
|
|
10
10
|
# "ANSI X9.8-1:2007"
|
|
11
|
+
# "ANSI X9.62-2005" (date_separator "-")
|
|
11
12
|
#
|
|
12
13
|
# The renderer is registered as the `:human` format in the ANSI format
|
|
13
14
|
# registry and invoked via `render(format: :human)`.
|
|
@@ -39,10 +40,17 @@ module Pubid
|
|
|
39
40
|
[
|
|
40
41
|
id.number,
|
|
41
42
|
(id.part ? "-#{id.part}" : ""),
|
|
42
|
-
(id
|
|
43
|
+
date_portion(id, context),
|
|
43
44
|
].join
|
|
44
45
|
end
|
|
45
46
|
|
|
47
|
+
# "ANSI X9.62-2005" keeps its dash; the colon is the default.
|
|
48
|
+
def date_portion(id, context)
|
|
49
|
+
return "" unless id.date
|
|
50
|
+
|
|
51
|
+
"#{id.date_separator || ':'}#{id.date.render(context:)}"
|
|
52
|
+
end
|
|
53
|
+
|
|
46
54
|
def language_portion(id)
|
|
47
55
|
return "" unless id.languages&.any?
|
|
48
56
|
|