pubid 2.0.62 → 2.0.63
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/data/parg/cie.json +1 -1
- data/lib/pubid/ccsds/CLAUDE.md +13 -0
- data/lib/pubid/ccsds/identifier.rb +2 -3
- data/lib/pubid/ccsds/parser.rb +12 -0
- data/lib/pubid/cie/CLAUDE.md +15 -0
- data/lib/pubid/cie/identifiers/corrigendum.rb +15 -5
- data/lib/pubid/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc2e9628f671954f19d081ccafac56e88ea8383e3dff233b310d2d3d116bf189
|
|
4
|
+
data.tar.gz: 0a820126ff62322e342036ac40dc6dae22c37c1fd236a9f69d1e09504d41abe8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95a040b0987061b779f4f2b4f8ae7c33a1dd2432adf9a30b4081db1737bd83fc7ddad896c8f87cfdf7d08049d2c282603e8a1197f0dd59ffa66b856e3d4bf7f1
|
|
7
|
+
data.tar.gz: 1fde1b77be28eed8729e2955b5c5ce91deefc903b19512aa497d95883f33e92fd57c607834333201af21eff78f3bf301f91cd40805a789cfb41e7118b0d6da12
|
data/data/parg/cie.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"bindings":null,"version":"0.1.0","grammar":"PubidCie","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":8}},{"Str":{"pattern":"CIE Tutorials Bundle"}},{"Entity":{"atom":3}},{"Str":{"pattern":" "}},{"Entity":{"atom":5}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":4,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"bundle_number","atom":6}},{"Sequence":{"atoms":[1,2,7]}},{"Entity":{"atom":57}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":12,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"first_number","atom":13}},{"Entity":{"atom":16}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":18,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":21}},{"Str":{"pattern":"."}},{"Entity":{"atom":5}},{"Repetition":{"atom":22,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":25}},{"Str":{"pattern":":"}},{"Entity":{"atom":29}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[27,28]}},{"Entity":{"atom":5}},{"Repetition":{"atom":30,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":32,"positive":false}},{"Sequence":{"atoms":[26,31,33]}},{"Str":{"pattern":","}},{"Entity":{"atom":5}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"next_number","atom":37}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":41,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":44,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":48,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":50,"positive":false}},{"Sequence":{"atoms":[47,49,51]}},{"Sequence":{"atoms":[38,39,40,42,43,45,46,52]}},{"Sequence":{"atoms":[35,53]}},{"Repetition":{"atom":54,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"bundle_items","atom":55}},{"Sequence":{"atoms":[10,11,14,15,17,19,20,23,24,34,56]}},{"Entity":{"atom":127}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"ISO/CIE"}},{"Named":{"name":"copublisher","atom":61}},{"Entity":{"atom":3}},{"Entity":{"atom":67}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Alternative":{"atoms":[65,66]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[64,68]}},{"Named":{"name":"doc_type","atom":69}},{"Repetition":{"atom":70,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":72,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":73}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":77,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":79,"positive":false}},{"Sequence":{"atoms":[76,78,80]}},{"Named":{"name":"year","atom":81}},{"Sequence":{"atoms":[75,82]}},{"Repetition":{"atom":83,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":125}},{"Entity":{"atom":106}},{"Entity":{"atom":3}},{"Repetition":{"atom":87,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":90}},{"Str":{"pattern":"("}},{"Entity":{"atom":92}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":91,"min":2,"max":null,"tag":"Repetition"}},{"Named":{"name":"lang_code","atom":93}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":97,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":99,"positive":false}},{"Sequence":{"atoms":[96,98,100]}},{"Named":{"name":"trans_year","atom":101}},{"Entity":{"atom":104}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[88,89,94,95,102,103]}},{"Named":{"name":"language_paren_year","atom":105}},{"Entity":{"atom":117}},{"Entity":{"atom":90}},{"Entity":{"atom":92}},{"Entity":{"atom":111}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Alternative":{"atoms":[109,110]}},{"Repetition":{"atom":112,"min":1,"max":3,"tag":"Repetition"}},{"Named":{"name":"lang_code","atom":113}},{"Entity":{"atom":104}},{"Sequence":{"atoms":[108,114,115]}},{"Named":{"name":"language_paren","atom":116}},{"Entity":{"atom":124}},{"Entity":{"atom":120}},{"Str":{"pattern":"/"}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":121}},{"Sequence":{"atoms":[119,122]}},{"Named":{"name":"language_slash","atom":123}},{"Alternative":{"atoms":[86,107,118]}},{"Repetition":{"atom":85,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[59,60,62,63,71,74,84,126]}},{"Entity":{"atom":180}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"ISO"}},{"Named":{"name":"copublisher","atom":131}},{"Entity":{"atom":120}},{"Lookahead":{"atom":133,"positive":false}},{"Entity":{"atom":3}},{"Entity":{"atom":67}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[136,137]}},{"Named":{"name":"doc_type","atom":138}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[141,142,143]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[144,145]}},{"Named":{"name":"stage","atom":146}},{"Repetition":{"atom":147,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":149,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":150}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":153,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":154}},{"Sequence":{"atoms":[152,155]}},{"Repetition":{"atom":156,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":160,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":162,"positive":false}},{"Sequence":{"atoms":[159,161,163]}},{"Named":{"name":"year","atom":164}},{"Sequence":{"atoms":[158,165]}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":169,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":171,"positive":false}},{"Sequence":{"atoms":[168,170,172]}},{"Named":{"name":"year","atom":173}},{"Sequence":{"atoms":[167,174]}},{"Alternative":{"atoms":[166,175]}},{"Repetition":{"atom":176,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":125}},{"Repetition":{"atom":178,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[129,130,132,134,135,140,148,151,157,177,179]}},{"Entity":{"atom":202}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"IEC"}},{"Named":{"name":"copublisher","atom":184}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":187,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":188}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":191,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":192}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":196,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":198,"positive":false}},{"Sequence":{"atoms":[195,197,199]}},{"Named":{"name":"year","atom":200}},{"Sequence":{"atoms":[182,183,185,186,189,190,193,194,201]}},{"Entity":{"atom":279}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[206,207]}},{"Named":{"name":"s_prefix","atom":208}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":211,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":212}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":215,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":216}},{"Sequence":{"atoms":[214,217]}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":220,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":221}},{"Sequence":{"atoms":[219,222]}},{"Alternative":{"atoms":[218,223]}},{"Repetition":{"atom":224,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":120}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":227}},{"Entity":{"atom":25}},{"Named":{"name":"lang_colon","atom":229}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":232,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":234,"positive":false}},{"Sequence":{"atoms":[231,233,235]}},{"Named":{"name":"year","atom":236}},{"Sequence":{"atoms":[228,230,237]}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":239}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":242,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":244,"positive":false}},{"Sequence":{"atoms":[241,243,245]}},{"Named":{"name":"year","atom":246}},{"Sequence":{"atoms":[240,247]}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":250,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":252,"positive":false}},{"Sequence":{"atoms":[249,251,253]}},{"Named":{"name":"slash_year","atom":254}},{"Alternative":{"atoms":[238,248,255]}},{"Sequence":{"atoms":[226,256]}},{"Repetition":{"atom":257,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":3}},{"Str":{"pattern":"(ISO"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Entity":{"atom":92}},{"Entity":{"atom":25}},{"Entity":{"atom":120}},{"Entity":{"atom":21}},{"Entity":{"atom":16}},{"Alternative":{"atoms":[262,263,264,265,266,267]}},{"Repetition":{"atom":268,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":90}},{"Entity":{"atom":92}},{"Repetition":{"atom":271,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":104}},{"Sequence":{"atoms":[270,272,273]}},{"Repetition":{"atom":274,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[269,275]}},{"Named":{"name":"iso_reference","atom":276}},{"Entity":{"atom":104}},{"Sequence":{"atoms":[204,205,210,213,225,258,259,260,261,277,278]}},{"Entity":{"atom":321}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[283,284,285]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[286,287]}},{"Named":{"name":"stage","atom":288}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[290,291]}},{"Named":{"name":"s_prefix","atom":292}},{"Repetition":{"atom":293,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":295,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_number","atom":296}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":300,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":301}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":304,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_part","atom":305}},{"Sequence":{"atoms":[303,306]}},{"Repetition":{"atom":307,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":120}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":310}},{"Entity":{"atom":25}},{"Named":{"name":"lang_colon","atom":312}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":315,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":317,"positive":false}},{"Sequence":{"atoms":[314,316,318]}},{"Named":{"name":"year","atom":319}},{"Sequence":{"atoms":[281,282,289,294,297,298,299,302,308,309,311,313,320]}},{"Entity":{"atom":351}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[325,326]}},{"Named":{"name":"s_prefix","atom":327}},{"Repetition":{"atom":328,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":330,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":331}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":335,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":337,"positive":false}},{"Sequence":{"atoms":[334,336,338]}},{"Named":{"name":"year","atom":339}},{"Entity":{"atom":120}},{"Str":{"pattern":"IEC"}},{"Entity":{"atom":3}},{"Entity":{"atom":348}},{"Re":{"pattern":"[\\x01-\\x09]"}},{"Re":{"pattern":"[\\x0b-\\x28]"}},{"Re":{"pattern":"[\\x2a-\\u{10ffff}]"}},{"Alternative":{"atoms":[345,346,347]}},{"Repetition":{"atom":344,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iec_identifier","atom":349}},{"Sequence":{"atoms":[323,324,329,332,333,340,341,342,343,350]}},{"Entity":{"atom":392}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":355,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_number","atom":356}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":360,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_supplement","atom":361}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":364,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_supplement_part","atom":365}},{"Sequence":{"atoms":[363,366]}},{"Repetition":{"atom":367,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[358,359,362,368]}},{"Repetition":{"atom":369,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":373,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":375,"positive":false}},{"Sequence":{"atoms":[372,374,376]}},{"Named":{"name":"base_year","atom":377}},{"Entity":{"atom":120}},{"Str":{"pattern":"Cor"}},{"Entity":{"atom":5}},{"Repetition":{"atom":381,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"cor_number","atom":382}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":386,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":388,"positive":false}},{"Sequence":{"atoms":[385,387,389]}},{"Named":{"name":"cor_year","atom":390}},{"Sequence":{"atoms":[353,354,357,370,371,378,379,380,383,384,391]}},{"Entity":{"atom":425}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":396,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_number","atom":397}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":401,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":402}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":405,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_part","atom":406}},{"Sequence":{"atoms":[404,407]}},{"Repetition":{"atom":408,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":412,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":414,"positive":false}},{"Sequence":{"atoms":[411,413,415]}},{"Named":{"name":"year","atom":416}},{"Sequence":{"atoms":[410,417]}},{"Repetition":{"atom":418,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":423}},{"Entity":{"atom":117}},{"Entity":{"atom":124}},{"Alternative":{"atoms":[421,422]}},{"Repetition":{"atom":420,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[394,395,398,399,400,403,409,419,424]}},{"Entity":{"atom":528}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[429,430,431]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[432,433]}},{"Named":{"name":"stage","atom":434}},{"Repetition":{"atom":435,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[437,438]}},{"Named":{"name":"s_prefix","atom":439}},{"Repetition":{"atom":440,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":515}},{"Entity":{"atom":455}},{"Entity":{"atom":5}},{"Repetition":{"atom":444,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":445}},{"Entity":{"atom":120}},{"Entity":{"atom":5}},{"Repetition":{"atom":448,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":449}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":452,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":453}},{"Sequence":{"atoms":[446,447,450,451,454]}},{"Entity":{"atom":471}},{"Entity":{"atom":5}},{"Repetition":{"atom":457,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":458}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":461,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":462}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":465,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":466}},{"Sequence":{"atoms":[459,460,463,464,467]}},{"Entity":{"atom":16}},{"Lookahead":{"atom":469,"positive":false}},{"Sequence":{"atoms":[468,470]}},{"Entity":{"atom":480}},{"Entity":{"atom":5}},{"Repetition":{"atom":473,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":474}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":477,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":478}},{"Sequence":{"atoms":[475,476,479]}},{"Entity":{"atom":493}},{"Entity":{"atom":5}},{"Repetition":{"atom":482,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":483}},{"Entity":{"atom":120}},{"Named":{"name":"slash_sep","atom":485}},{"Entity":{"atom":5}},{"Repetition":{"atom":487,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":488}},{"Sequence":{"atoms":[484,486,489]}},{"Entity":{"atom":21}},{"Lookahead":{"atom":491,"positive":false}},{"Sequence":{"atoms":[490,492]}},{"Entity":{"atom":510}},{"Entity":{"atom":5}},{"Repetition":{"atom":495,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":496}},{"Entity":{"atom":16}},{"Named":{"name":"dash_sep","atom":498}},{"Entity":{"atom":5}},{"Repetition":{"atom":500,"min":1,"max":3,"tag":"Repetition"}},{"Named":{"name":"part","atom":501}},{"Sequence":{"atoms":[497,499,502]}},{"Entity":{"atom":29}},{"Lookahead":{"atom":504,"positive":false}},{"Entity":{"atom":21}},{"Entity":{"atom":16}},{"Alternative":{"atoms":[506,507]}},{"Lookahead":{"atom":508,"positive":false}},{"Sequence":{"atoms":[503,505,509]}},{"Entity":{"atom":514}},{"Entity":{"atom":5}},{"Repetition":{"atom":512,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":513}},{"Alternative":{"atoms":[443,456,472,481,494,511]}},{"Entity":{"atom":120}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":517}},{"Entity":{"atom":25}},{"Named":{"name":"lang_colon","atom":519}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":522,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":524,"positive":false}},{"Sequence":{"atoms":[521,523,525]}},{"Named":{"name":"year","atom":526}},{"Sequence":{"atoms":[427,428,436,441,442,516,518,520,527]}},{"Entity":{"atom":562}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[532,533,534]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[535,536]}},{"Named":{"name":"stage","atom":537}},{"Repetition":{"atom":538,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[540,541]}},{"Named":{"name":"s_prefix","atom":542}},{"Repetition":{"atom":543,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":545,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":546}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":549,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":550}},{"Sequence":{"atoms":[548,551]}},{"Repetition":{"atom":552,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":120}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":556,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":558,"positive":false}},{"Sequence":{"atoms":[555,557,559]}},{"Named":{"name":"slash_year","atom":560}},{"Sequence":{"atoms":[530,531,539,544,547,553,554,561]}},{"Entity":{"atom":595}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"D"}},{"Named":{"name":"d_prefix","atom":566}},{"Entity":{"atom":5}},{"Repetition":{"atom":568,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":569}},{"Entity":{"atom":594}},{"Entity":{"atom":582}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":575,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":577,"positive":false}},{"Sequence":{"atoms":[574,576,578]}},{"Named":{"name":"year","atom":579}},{"Sequence":{"atoms":[573,580]}},{"Named":{"name":"current_date","atom":581}},{"Entity":{"atom":593}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":586,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":588,"positive":false}},{"Sequence":{"atoms":[585,587,589]}},{"Named":{"name":"year","atom":590}},{"Sequence":{"atoms":[584,591]}},{"Named":{"name":"legacy_date","atom":592}},{"Alternative":{"atoms":[572,583]}},{"Sequence":{"atoms":[564,565,567,570,571]}},{"Entity":{"atom":611}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"x"}},{"Entity":{"atom":5}},{"Repetition":{"atom":600,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"conf_number","atom":601}},{"Entity":{"atom":16}},{"Entity":{"atom":607}},{"Entity":{"atom":92}},{"Repetition":{"atom":605,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"paper_code","atom":606}},{"Entity":{"atom":5}},{"Repetition":{"atom":608,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"paper_number","atom":609}},{"Sequence":{"atoms":[597,598,599,602,603,604,610]}},{"Entity":{"atom":627}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":607}},{"Entity":{"atom":5}},{"Repetition":{"atom":616,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"paper_number","atom":617}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":620,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":623,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[621,622,624]}},{"Named":{"name":"page_range","atom":625}},{"Sequence":{"atoms":[613,614,615,618,619,626]}},{"Entity":{"atom":645}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":631,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":632}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":636,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":638,"positive":false}},{"Sequence":{"atoms":[635,637,639]}},{"Named":{"name":"year","atom":640}},{"Entity":{"atom":106}},{"Repetition":{"atom":642,"min":0,"max":1,"tag":"Maybe"}},{"Named":{"name":"trailing_lang","atom":643}},{"Sequence":{"atoms":[629,630,633,634,641,644]}},{"Entity":{"atom":673}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":650}},{"Str":{"pattern":"x"}},{"Named":{"name":"conference","atom":649}},{"Entity":{"atom":5}},{"Repetition":{"atom":652,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"conf_number","atom":653}},{"Entity":{"atom":594}},{"Entity":{"atom":3}},{"Str":{"pattern":"Amendment"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":659,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"amd_number","atom":660}},{"Sequence":{"atoms":[656,657,658,661]}},{"Repetition":{"atom":662,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":671}},{"Entity":{"atom":120}},{"Entity":{"atom":5}},{"Entity":{"atom":111}},{"Alternative":{"atoms":[666,667]}},{"Repetition":{"atom":668,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"variant","atom":669}},{"Sequence":{"atoms":[665,670]}},{"Repetition":{"atom":664,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[647,648,651,654,655,663,672]}},{"Entity":{"atom":751}},{"Entity":{"atom":713}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":92}},{"Named":{"name":"type","atom":678}},{"Entity":{"atom":3}},{"Entity":{"atom":690}},{"Entity":{"atom":5}},{"Repetition":{"atom":682,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":685,"min":1,"max":3,"tag":"Repetition"}},{"Named":{"name":"part","atom":686}},{"Sequence":{"atoms":[684,687]}},{"Repetition":{"atom":688,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[683,689]}},{"Entity":{"atom":594}},{"Repetition":{"atom":691,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":711}},{"Entity":{"atom":3}},{"Entity":{"atom":705}},{"Entity":{"atom":5}},{"Repetition":{"atom":696,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":699,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[697,698,700]}},{"Entity":{"atom":5}},{"Repetition":{"atom":702,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[701,703]}},{"Named":{"name":"iteration","atom":704}},{"Repetition":{"atom":695,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"WD"}},{"Str":{"pattern":"CD"}},{"Alternative":{"atoms":[707,708]}},{"Named":{"name":"stage","atom":709}},{"Sequence":{"atoms":[694,706,710]}},{"Repetition":{"atom":693,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[676,677,679,680,681,692,712]}},{"Entity":{"atom":3}},{"Str":{"pattern":"Annex"}},{"Entity":{"atom":3}},{"Entity":{"atom":92}},{"Entity":{"atom":16}},{"Entity":{"atom":92}},{"Sequence":{"atoms":[718,719]}},{"Repetition":{"atom":720,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[717,721]}},{"Named":{"name":"annex_letter","atom":722}},{"Entity":{"atom":3}},{"Entity":{"atom":728}},{"Str":{"pattern":"Edition"}},{"Str":{"pattern":"edition"}},{"Alternative":{"atoms":[726,727]}},{"Entity":{"atom":3}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":731,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":733,"positive":false}},{"Sequence":{"atoms":[730,732,734]}},{"Named":{"name":"year","atom":735}},{"Sequence":{"atoms":[724,725,729,736]}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":740,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":742,"positive":false}},{"Sequence":{"atoms":[739,741,743]}},{"Named":{"name":"year","atom":744}},{"Sequence":{"atoms":[738,745]}},{"Alternative":{"atoms":[737,746]}},{"Repetition":{"atom":747,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":423}},{"Repetition":{"atom":749,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[675,714,715,716,723,748,750]}},{"Entity":{"atom":782}},{"Entity":{"atom":713}},{"Entity":{"atom":3}},{"Str":{"pattern":"Annexes"}},{"Named":{"name":"annex_marker","atom":755}},{"Entity":{"atom":3}},{"Entity":{"atom":728}},{"Named":{"name":"edition_format","atom":758}},{"Entity":{"atom":3}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":762,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":764,"positive":false}},{"Sequence":{"atoms":[761,763,765]}},{"Named":{"name":"year","atom":766}},{"Sequence":{"atoms":[757,759,760,767]}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":771,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":773,"positive":false}},{"Sequence":{"atoms":[770,772,774]}},{"Named":{"name":"year","atom":775}},{"Sequence":{"atoms":[769,776]}},{"Alternative":{"atoms":[768,777]}},{"Repetition":{"atom":778,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":423}},{"Repetition":{"atom":780,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[753,754,756,779,781]}},{"Entity":{"atom":812}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[786,787,788]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[789,790]}},{"Named":{"name":"stage","atom":791}},{"Repetition":{"atom":792,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[794,795]}},{"Named":{"name":"s_prefix","atom":796}},{"Repetition":{"atom":797,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":515}},{"Entity":{"atom":125}},{"Entity":{"atom":594}},{"Sequence":{"atoms":[800,801]}},{"Named":{"name":"lang_before","atom":802}},{"Entity":{"atom":594}},{"Entity":{"atom":125}},{"Repetition":{"atom":805,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[804,806]}},{"Named":{"name":"date_then_lang","atom":807}},{"Entity":{"atom":594}},{"Alternative":{"atoms":[803,808,809]}},{"Repetition":{"atom":810,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[784,785,793,798,799,811]}},{"Alternative":{"atoms":[0,9,58,128,181,203,280,322,352,393,426,529,563,596,612,628,646,674,752,783]}}],"root":813},"bindings":[{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"iteration","path":"iteration","type":"string","card":null,"preprocess":null},{"capture":"part","path":"part","type":"string","card":null,"preprocess":null},{"capture":"dash_sep","path":"dash_sep","type":"string","card":null,"preprocess":null},{"capture":"slash_sep","path":"slash_sep","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"current_date","path":"current_date","type":"raw","card":null,"preprocess":null},{"capture":"legacy_date","path":"legacy_date","type":"raw","card":null,"preprocess":null},{"capture":"language_slash","path":"language_slash","type":"raw","card":null,"preprocess":null},{"capture":"language_paren","path":"language_paren","type":"raw","card":null,"preprocess":null},{"capture":"language_paren_year","path":"language_paren_year","type":"raw","card":null,"preprocess":null},{"capture":"lang_before","path":"lang_before","type":"raw","card":null,"preprocess":null},{"capture":"date_then_lang","path":"date_then_lang","type":"raw","card":null,"preprocess":null},{"capture":"trailing_lang","path":"trailing_lang","type":"raw","card":null,"preprocess":null},{"capture":"trans_year","path":"trans_year","type":"string","card":null,"preprocess":null},{"capture":"lang_code","path":"lang_code","type":"string","card":null,"preprocess":null},{"capture":"lang_colon","path":"lang_colon","type":"string","card":null,"preprocess":null},{"capture":"slash_year","path":"slash_year","type":"string","card":null,"preprocess":null},{"capture":"stage","path":"stage","type":"string","card":null,"preprocess":null},{"capture":"s_prefix","path":"s_prefix","type":"string","card":null,"preprocess":null},{"capture":"doc_type","path":"doc_type","type":"string","card":null,"preprocess":null},{"capture":"paper_code","path":"paper_code","type":"string","card":null,"preprocess":null},{"capture":"paper_number","path":"paper_number","type":"string","card":null,"preprocess":null},{"capture":"page_range","path":"page_range","type":"string","card":null,"preprocess":null},{"capture":"conf_number","path":"conf_number","type":"string","card":null,"preprocess":null},{"capture":"conference","path":"conference","type":"string","card":null,"preprocess":null},{"capture":"variant","path":"variant","type":"string","card":null,"preprocess":null},{"capture":"d_prefix","path":"d_prefix","type":"string","card":null,"preprocess":null},{"capture":"base_number","path":"base_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_number","path":"supplement_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_part","path":"supplement_part","type":"string","card":null,"preprocess":null},{"capture":"base_supplement","path":"base_supplement","type":"string","card":null,"preprocess":null},{"capture":"base_supplement_part","path":"base_supplement_part","type":"string","card":null,"preprocess":null},{"capture":"base_year","path":"base_year","type":"string","card":null,"preprocess":null},{"capture":"cor_number","path":"cor_number","type":"string","card":null,"preprocess":null},{"capture":"cor_year","path":"cor_year","type":"string","card":null,"preprocess":null},{"capture":"amd_number","path":"amd_number","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublisher","type":"string","card":null,"preprocess":null},{"capture":"iso_reference","path":"iso_reference","type":"string","card":null,"preprocess":null},{"capture":"iec_identifier","path":"iec_identifier","type":"string","card":null,"preprocess":null},{"capture":"first_number","path":"first_number","type":"string","card":null,"preprocess":null},{"capture":"bundle_number","path":"bundle_number","type":"string","card":null,"preprocess":null},{"capture":"annex_marker","path":"annex_marker","type":"string","card":null,"preprocess":null},{"capture":"edition_format","path":"edition_format","type":"string","card":null,"preprocess":null},{"capture":"annex_letter","path":"annex_letter","type":"string","card":null,"preprocess":null},{"capture":"type","path":"type","type":"string","card":null,"preprocess":null},{"capture":"next_number","path":"bundle_items[].next_number","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule code: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule language: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule doc_type: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 17 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 17 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 17 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 18 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 18 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 19 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule nonrparen: branches 1 and 2 are order-dependent (first set not statically known)","rule nonrparen_nl: branches 1 and 3 are order-dependent (first set not statically known)","rule nonrparen_nl: branches 2 and 3 are order-dependent (first set not statically known)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"CIE S 008/E:2001","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 15:2018","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE x045-2019","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE S 006.1/1998 (ISO 16508:1999)","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE D001:2017","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE ISO 10916:2024","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 121-SP1:2009","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 198-SP1.1:2011,198-SP1.2:2011","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/cie/parser.rb — CIE identifiers: standards with\n# iteration/part/separator variants and legacy or current dates,\n# language forms (slash, paren, paren-year), DIS+SP supplements,\n# conference proceedings (xNNN papers), D-series, joint forms with\n# ISO/ISO-CIE/IEC, the identical-(ISO ...) form, and the IEC dual.\n#\n# Edition-2 conversion. Deviations from the v1 tree:\n# - the zero-width markers (\"\" as dash_sep) and (\"\" as slash_sep) are\n# re-spelled as real-token captures of the separator they marked:\n# `dash as dash_sep` and `slash as slash_sep`. The keys stay present\n# exactly when the dash/slash part form matched, so the builder's\n# truthiness checks keep their meaning (the bound values are \"-\" and\n# \"/\" instead of \"\").\n# - the builder dispatches the date style, the language format and the\n# standard_identifier word order on the wrapper keys (current_date,\n# legacy_date, language_slash, language_paren, language_paren_year,\n# lang_before, date_then_lang, trailing_lang), so all eight keep\n# their v1 nested shapes and bind uncast with (raw).\n# - year_digits is inlined (century 2*digit !digit) at every capture\n# site: a capture over a ref to a composite rule leaks the rule's\n# self-wrapped named nodes and would bind an array.\n# - the composite s_prefix/stage_code rules are inlined at capture\n# sites for the same reason; the unused full_number wrapper capture\n# is dropped (the builder never read it).\n# - pure-raw rule bodies (digits, letters) are inlined so every capture\n# binds one scalar span.\n\ngrammar PubidCie version \"0.1.0\" edition 2 {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n space = \" \"\n dash = \"-\"\n colon = \":\"\n dot = \".\"\n slash = \"/\"\n lparen = \"(\"\n rparen = \")\"\n century = \"19\" / \"20\"\n year_digits = century 2*digit !digit\n\n legacy_date = (dash (century 2*digit !digit) as year) as legacy_date\n current_date = (colon (century 2*digit !digit) as year) as current_date\n date = current_date / legacy_date\n\n code_with_iteration = ((1*digit)) as number dot ((1*digit)) as iteration\n code_with_part_and_iteration_slash = {\n ((1*digit)) as number\n slash\n ((1*digit)) as part\n dot\n ((1*digit)) as iteration\n }\n code_with_part_and_iteration_dash = {\n ( ((1*digit)) as number dash ((1*digit)) as part dot ((1*digit)) as iteration )\n !dash\n }\n code_with_part_dash = {\n ( ((1*digit)) as number dash as dash_sep ((1*3digit)) as part )\n (!(century))\n (!(dot / dash))\n }\n code_with_part_slash = {\n ( ((1*digit)) as number slash as slash_sep ((1*digit)) as part )\n !dot\n }\n code_simple = ((1*digit)) as number\n code = {\n code_with_part_and_iteration_slash\n / code_with_part_and_iteration_dash\n / code_with_iteration\n / code_with_part_slash\n / code_with_part_dash\n / code_simple\n }\n\n language_slash = ((slash (upper) as lang_code)) as language_slash\n language_paren = ((lparen ((1*3(upper / lower))) as lang_code rparen)) as language_paren\n language_paren_year = {\n (\n ( ([space]) lparen ((2*upper)) as lang_code dash (century 2*digit !digit) as trans_year rparen )\n ) as language_paren_year\n }\n language = language_paren_year / language_paren / language_slash\n\n x_prefix = \"x\"\n doc_type = \"TR\" / \"TS\"\n paper_code = ((1*upper)) as paper_code\n variant_slug = slash ((1*(digit / lower))) as variant\n\n conf_proceedings = \"CIE\" space \"x\" ((1*digit)) as conf_number dash paper_code ((1*digit)) as paper_number\n standalone_proceedings = \"CIE\" space paper_code ((1*digit)) as paper_number space (((1*digit) dash (1*digit))) as page_range\n d_series_identifier = \"CIE\" space \"D\" as d_prefix ((1*digit)) as number date\n standard_with_slash_year = {\n \"CIE\" space\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as number\n [ (dot ((1*digit)) as iteration) ]\n slash\n ((century 2*digit !digit)) as slash_year\n }\n dis_with_supplement = {\n \"CIE\" space\n ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as base_number\n dash \"SP\"\n ((1*digit)) as supplement_number\n [ (dot ((1*digit)) as supplement_part) ]\n slash\n (upper) as lang_code\n (colon) as lang_colon\n (century 2*digit !digit) as year\n }\n standard_identifier = {\n \"CIE\" space\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n [ (\"S\" space) as s_prefix ]\n code\n [\n ( ((language date)) as lang_before\n / ((date [language])) as date_then_lang\n / date\n )\n ]\n }\n standard_with_language_year = {\n \"CIE\" space\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n [ (\"S\" space) as s_prefix ]\n code\n slash\n (upper) as lang_code\n (colon) as lang_colon\n (century 2*digit !digit) as year\n }\n conference_identifier = \"CIE\" space x_prefix as conference ((1*digit)) as conf_number date [(space \"Amendment\" space ((1*digit)) as amd_number)] [variant_slug]\n joint_with_iso = {\n (\n \"CIE\" space\n \"ISO\" as copublisher\n !slash space\n [ ((doc_type) space) as doc_type ]\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n ((1*digit)) as number\n [ (dash ((1*digit)) as part) ]\n [\n ( (colon (century 2*digit !digit) as year)\n / (dash (century 2*digit !digit) as year)\n )\n ]\n [language]\n )\n }\n joint_with_iso_cie = {\n (\n \"CIE\" space\n \"ISO/CIE\" as copublisher\n space\n [ ((doc_type) space) as doc_type ]\n ((1*digit)) as number\n [ (colon (century 2*digit !digit) as year) ]\n [language]\n )\n }\n joint_with_iec = {\n (\n \"CIE\" space\n \"IEC\" as copublisher\n space\n ((1*digit)) as number\n dot\n ((1*digit)) as part\n dash\n (century 2*digit !digit) as year\n )\n }\n identical_with_iso = {\n (\n \"CIE\" space\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as number\n [\n ( (dot ((1*digit)) as iteration)\n / (dash ((1*digit)) as part)\n )\n ]\n [\n (\n slash\n (\n (((upper)) as lang_code (colon) as lang_colon (century 2*digit !digit) as year)\n / (((upper)) as lang_code (century 2*digit !digit) as year)\n / (((century 2*digit !digit)) as slash_year)\n )\n )\n ]\n space \"(ISO\" space\n (\n (\n ((1*(digit / upper / colon / slash / dot / dash)))\n [ (lparen 1*upper rparen) ]\n )\n ) as iso_reference\n rparen\n )\n }\n dual_with_iec = {\n (\n \"CIE\" space\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as number\n colon\n (century 2*digit !digit) as year\n slash \"IEC\" space\n ((1*nonrparen_nl)) as iec_identifier\n )\n }\n supplement_identifier = {\n (\n \"CIE\" space\n ((1*digit)) as base_number\n dash \"SP\"\n ((1*digit)) as supplement_number\n [ (dot ((1*digit)) as supplement_part) ]\n [ (colon (century 2*digit !digit) as year) ]\n [language_portion]\n )\n }\n corrigendum_identifier = {\n (\n \"CIE\" space\n ((1*digit)) as base_number\n [\n (\n dash \"SP\" ((1*digit)) as base_supplement\n [ (dot ((1*digit)) as base_supplement_part) ]\n )\n ]\n colon\n (century 2*digit !digit) as base_year\n slash \"Cor\"\n ((1*digit)) as cor_number\n colon\n (century 2*digit !digit) as cor_year\n )\n }\n bundle_identifier = {\n (\n \"CIE\" space\n ((1*digit)) as first_number\n dash \"SP\" ((1*digit)) dot ((1*digit))\n colon\n (century 2*digit !digit)\n (\n 1*(\n \",\"\n (\n ((1*digit)) as next_number\n dash \"SP\" ((1*digit)) dot ((1*digit))\n colon\n (century 2*digit !digit)\n )\n )\n ) as bundle_items\n )\n }\n tutorial_bundle = \"CIE Tutorials Bundle\" space ((1*digit)) as bundle_number\n identifier = {\n tutorial_bundle\n / bundle_identifier\n / joint_with_iso_cie\n / joint_with_iso\n / joint_with_iec\n / identical_with_iso\n / dis_with_supplement\n / dual_with_iec\n / corrigendum_identifier\n / supplement_identifier\n / standard_with_language_year\n / standard_with_slash_year\n / d_series_identifier\n / conf_proceedings\n / standalone_proceedings\n / legacy_code_with_year\n / conference_identifier\n / annex_letter_identifier\n / annex_identifier\n / standard_identifier\n }\n legacy_code_with_year = {\n \"CIE\" space\n ((1*digit)) as number\n dash\n (century 2*digit !digit) as year\n [ ((language_paren_year)) ] as trailing_lang\n }\n\n # Annex forms (rule bodies per source)\n annex_identifier = {\n (base_without_language)\n space \"Annexes\" as annex_marker\n [\n (\n ( (space (edition_text) as edition_format space (century 2*digit !digit) as year)\n / (colon (century 2*digit !digit) as year)\n )\n )\n ]\n [language_portion]\n }\n annex_letter_identifier = {\n (base_without_language)\n space \"Annex\" space\n ( (upper) [ (dash upper) ] ) as annex_letter\n [\n (\n ( (space edition_text space (century 2*digit !digit) as year)\n / (colon (century 2*digit !digit) as year)\n )\n )\n ]\n [language_portion]\n }\n base_without_language = \"CIE\" space ((upper)) as type space full_number_cie [date] [draft_stage_cie]\n draft_stage_cie = space [stage_iteration_cie] (\"WD\" / \"CD\") as stage\n stage_iteration_cie = ((((1*digit) dot (1*digit))) / (1*digit)) as iteration\n full_number_cie = ((1*digit)) [(dash ((1*3digit)) as part)]\n language_portion = language_paren / language_slash\n edition_text = \"Edition\" / \"edition\"\n\n nonrparen = %x01-28 / %x29-10FFFF\n nonrparen_nl = %x01-09 / %x0B-28 / %x2A-10FFFF\n\n entry identifier: identifier\n\n bindings identifier {\n number -> number (string)\n iteration -> iteration (string)\n part -> part (string)\n dash_sep -> dash_sep (string)\n slash_sep -> slash_sep (string)\n year -> year (string)\n current_date -> current_date (raw)\n legacy_date -> legacy_date (raw)\n language_slash -> language_slash (raw)\n language_paren -> language_paren (raw)\n language_paren_year -> language_paren_year (raw)\n lang_before -> lang_before (raw)\n date_then_lang -> date_then_lang (raw)\n trailing_lang -> trailing_lang (raw)\n trans_year -> trans_year (string)\n lang_code -> lang_code (string)\n lang_colon -> lang_colon (string)\n slash_year -> slash_year (string)\n stage -> stage (string)\n s_prefix -> s_prefix (string)\n doc_type -> doc_type (string)\n paper_code -> paper_code (string)\n paper_number -> paper_number (string)\n page_range -> page_range (string)\n conf_number -> conf_number (string)\n conference -> conference (string)\n variant -> variant (string)\n d_prefix -> d_prefix (string)\n base_number -> base_number (string)\n supplement_number -> supplement_number (string)\n supplement_part -> supplement_part (string)\n base_supplement -> base_supplement (string)\n base_supplement_part -> base_supplement_part (string)\n base_year -> base_year (string)\n cor_number -> cor_number (string)\n cor_year -> cor_year (string)\n amd_number -> amd_number (string)\n copublisher -> copublisher (string)\n iso_reference -> iso_reference (string)\n iec_identifier -> iec_identifier (string)\n first_number -> first_number (string)\n bundle_number -> bundle_number (string)\n annex_marker -> annex_marker (string)\n edition_format -> edition_format (string)\n annex_letter -> annex_letter (string)\n type -> type (string)\n next_number -> bundle_items[].next_number (string)\n }\n\n test {\n accept \"CIE S 008/E:2001\"\n accept \"CIE 15:2018\"\n accept \"CIE x045-2019\"\n accept \"CIE S 006.1/1998 (ISO 16508:1999)\"\n accept \"CIE D001:2017\"\n accept \"CIE ISO 10916:2024\"\n accept \"CIE 121-SP1:2009\"\n accept \"CIE 198-SP1.1:2011,198-SP1.2:2011\"\n reject \"nonsense\"\n }\n}\n","source_hash":"255fa7cb113d22ab979038b08fcf1223c60466849812db1c932e168382d18dc8","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:b9abf6811df6b8820548a6cb807ace9268ce5f0b5243b1b2af79d35ddc5c7094","checksum":"sha256:e0d3dc71024d2d4a4a5d67b42682a4a7e3668335de728c27dfec54465218a7aa","validated":{"lint_errors":0,"lint_warnings":210,"tests_total":9,"tests_failures":0,"self_test":true}}
|
|
1
|
+
{"bindings":null,"version":"0.1.0","grammar":"PubidCie","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":8}},{"Str":{"pattern":"CIE Tutorials Bundle"}},{"Entity":{"atom":3}},{"Str":{"pattern":" "}},{"Entity":{"atom":5}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":4,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"bundle_number","atom":6}},{"Sequence":{"atoms":[1,2,7]}},{"Entity":{"atom":57}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":12,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"first_number","atom":13}},{"Entity":{"atom":16}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":18,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":21}},{"Str":{"pattern":"."}},{"Entity":{"atom":5}},{"Repetition":{"atom":22,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":25}},{"Str":{"pattern":":"}},{"Entity":{"atom":29}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[27,28]}},{"Entity":{"atom":5}},{"Repetition":{"atom":30,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":32,"positive":false}},{"Sequence":{"atoms":[26,31,33]}},{"Str":{"pattern":","}},{"Entity":{"atom":5}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"next_number","atom":37}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":41,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":44,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":48,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":50,"positive":false}},{"Sequence":{"atoms":[47,49,51]}},{"Sequence":{"atoms":[38,39,40,42,43,45,46,52]}},{"Sequence":{"atoms":[35,53]}},{"Repetition":{"atom":54,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"bundle_items","atom":55}},{"Sequence":{"atoms":[10,11,14,15,17,19,20,23,24,34,56]}},{"Entity":{"atom":127}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"ISO/CIE"}},{"Named":{"name":"copublisher","atom":61}},{"Entity":{"atom":3}},{"Entity":{"atom":67}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Alternative":{"atoms":[65,66]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[64,68]}},{"Named":{"name":"doc_type","atom":69}},{"Repetition":{"atom":70,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":72,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":73}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":77,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":79,"positive":false}},{"Sequence":{"atoms":[76,78,80]}},{"Named":{"name":"year","atom":81}},{"Sequence":{"atoms":[75,82]}},{"Repetition":{"atom":83,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":125}},{"Entity":{"atom":106}},{"Entity":{"atom":3}},{"Repetition":{"atom":87,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":90}},{"Str":{"pattern":"("}},{"Entity":{"atom":92}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":91,"min":2,"max":null,"tag":"Repetition"}},{"Named":{"name":"lang_code","atom":93}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":97,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":99,"positive":false}},{"Sequence":{"atoms":[96,98,100]}},{"Named":{"name":"trans_year","atom":101}},{"Entity":{"atom":104}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[88,89,94,95,102,103]}},{"Named":{"name":"language_paren_year","atom":105}},{"Entity":{"atom":117}},{"Entity":{"atom":90}},{"Entity":{"atom":92}},{"Entity":{"atom":111}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Alternative":{"atoms":[109,110]}},{"Repetition":{"atom":112,"min":1,"max":3,"tag":"Repetition"}},{"Named":{"name":"lang_code","atom":113}},{"Entity":{"atom":104}},{"Sequence":{"atoms":[108,114,115]}},{"Named":{"name":"language_paren","atom":116}},{"Entity":{"atom":124}},{"Entity":{"atom":120}},{"Str":{"pattern":"/"}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":121}},{"Sequence":{"atoms":[119,122]}},{"Named":{"name":"language_slash","atom":123}},{"Alternative":{"atoms":[86,107,118]}},{"Repetition":{"atom":85,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[59,60,62,63,71,74,84,126]}},{"Entity":{"atom":180}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"ISO"}},{"Named":{"name":"copublisher","atom":131}},{"Entity":{"atom":120}},{"Lookahead":{"atom":133,"positive":false}},{"Entity":{"atom":3}},{"Entity":{"atom":67}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[136,137]}},{"Named":{"name":"doc_type","atom":138}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[141,142,143]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[144,145]}},{"Named":{"name":"stage","atom":146}},{"Repetition":{"atom":147,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":149,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":150}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":153,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":154}},{"Sequence":{"atoms":[152,155]}},{"Repetition":{"atom":156,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":160,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":162,"positive":false}},{"Sequence":{"atoms":[159,161,163]}},{"Named":{"name":"year","atom":164}},{"Sequence":{"atoms":[158,165]}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":169,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":171,"positive":false}},{"Sequence":{"atoms":[168,170,172]}},{"Named":{"name":"year","atom":173}},{"Sequence":{"atoms":[167,174]}},{"Alternative":{"atoms":[166,175]}},{"Repetition":{"atom":176,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":125}},{"Repetition":{"atom":178,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[129,130,132,134,135,140,148,151,157,177,179]}},{"Entity":{"atom":202}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"IEC"}},{"Named":{"name":"copublisher","atom":184}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":187,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":188}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":191,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":192}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":196,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":198,"positive":false}},{"Sequence":{"atoms":[195,197,199]}},{"Named":{"name":"year","atom":200}},{"Sequence":{"atoms":[182,183,185,186,189,190,193,194,201]}},{"Entity":{"atom":279}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[206,207]}},{"Named":{"name":"s_prefix","atom":208}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":211,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":212}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":215,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":216}},{"Sequence":{"atoms":[214,217]}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":220,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":221}},{"Sequence":{"atoms":[219,222]}},{"Alternative":{"atoms":[218,223]}},{"Repetition":{"atom":224,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":120}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":227}},{"Entity":{"atom":25}},{"Named":{"name":"lang_colon","atom":229}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":232,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":234,"positive":false}},{"Sequence":{"atoms":[231,233,235]}},{"Named":{"name":"year","atom":236}},{"Sequence":{"atoms":[228,230,237]}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":239}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":242,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":244,"positive":false}},{"Sequence":{"atoms":[241,243,245]}},{"Named":{"name":"year","atom":246}},{"Sequence":{"atoms":[240,247]}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":250,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":252,"positive":false}},{"Sequence":{"atoms":[249,251,253]}},{"Named":{"name":"slash_year","atom":254}},{"Alternative":{"atoms":[238,248,255]}},{"Sequence":{"atoms":[226,256]}},{"Repetition":{"atom":257,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":3}},{"Str":{"pattern":"(ISO"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Entity":{"atom":92}},{"Entity":{"atom":25}},{"Entity":{"atom":120}},{"Entity":{"atom":21}},{"Entity":{"atom":16}},{"Alternative":{"atoms":[262,263,264,265,266,267]}},{"Repetition":{"atom":268,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":90}},{"Entity":{"atom":92}},{"Repetition":{"atom":271,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":104}},{"Sequence":{"atoms":[270,272,273]}},{"Repetition":{"atom":274,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[269,275]}},{"Named":{"name":"iso_reference","atom":276}},{"Entity":{"atom":104}},{"Sequence":{"atoms":[204,205,210,213,225,258,259,260,261,277,278]}},{"Entity":{"atom":321}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[283,284,285]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[286,287]}},{"Named":{"name":"stage","atom":288}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[290,291]}},{"Named":{"name":"s_prefix","atom":292}},{"Repetition":{"atom":293,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":295,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_number","atom":296}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":300,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":301}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":304,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_part","atom":305}},{"Sequence":{"atoms":[303,306]}},{"Repetition":{"atom":307,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":120}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":310}},{"Entity":{"atom":25}},{"Named":{"name":"lang_colon","atom":312}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":315,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":317,"positive":false}},{"Sequence":{"atoms":[314,316,318]}},{"Named":{"name":"year","atom":319}},{"Sequence":{"atoms":[281,282,289,294,297,298,299,302,308,309,311,313,320]}},{"Entity":{"atom":351}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[325,326]}},{"Named":{"name":"s_prefix","atom":327}},{"Repetition":{"atom":328,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":330,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":331}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":335,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":337,"positive":false}},{"Sequence":{"atoms":[334,336,338]}},{"Named":{"name":"year","atom":339}},{"Entity":{"atom":120}},{"Str":{"pattern":"IEC"}},{"Entity":{"atom":3}},{"Entity":{"atom":348}},{"Re":{"pattern":"[\\x01-\\x09]"}},{"Re":{"pattern":"[\\x0b-\\x28]"}},{"Re":{"pattern":"[\\x2a-\\u{10ffff}]"}},{"Alternative":{"atoms":[345,346,347]}},{"Repetition":{"atom":344,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iec_identifier","atom":349}},{"Sequence":{"atoms":[323,324,329,332,333,340,341,342,343,350]}},{"Entity":{"atom":400}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":355,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_number","atom":356}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":360,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_supplement","atom":361}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":364,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_supplement_part","atom":365}},{"Sequence":{"atoms":[363,366]}},{"Repetition":{"atom":367,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[358,359,362,368]}},{"Repetition":{"atom":369,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":373,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":375,"positive":false}},{"Sequence":{"atoms":[372,374,376]}},{"Named":{"name":"base_year","atom":377}},{"Entity":{"atom":120}},{"Str":{"pattern":"Cor"}},{"Entity":{"atom":5}},{"Repetition":{"atom":381,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"cor_number","atom":382}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":386,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":388,"positive":false}},{"Sequence":{"atoms":[385,387,389]}},{"Named":{"name":"cor_year","atom":390}},{"Sequence":{"atoms":[379,380,383,384,391]}},{"Entity":{"atom":16}},{"Str":{"pattern":"Cor"}},{"Entity":{"atom":5}},{"Repetition":{"atom":395,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"cor_number","atom":396}},{"Sequence":{"atoms":[393,394,397]}},{"Alternative":{"atoms":[392,398]}},{"Sequence":{"atoms":[353,354,357,370,371,378,399]}},{"Entity":{"atom":433}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":404,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"base_number","atom":405}},{"Entity":{"atom":16}},{"Str":{"pattern":"SP"}},{"Entity":{"atom":5}},{"Repetition":{"atom":409,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":410}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":413,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_part","atom":414}},{"Sequence":{"atoms":[412,415]}},{"Repetition":{"atom":416,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":420,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":422,"positive":false}},{"Sequence":{"atoms":[419,421,423]}},{"Named":{"name":"year","atom":424}},{"Sequence":{"atoms":[418,425]}},{"Repetition":{"atom":426,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":431}},{"Entity":{"atom":117}},{"Entity":{"atom":124}},{"Alternative":{"atoms":[429,430]}},{"Repetition":{"atom":428,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[402,403,406,407,408,411,417,427,432]}},{"Entity":{"atom":536}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[437,438,439]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[440,441]}},{"Named":{"name":"stage","atom":442}},{"Repetition":{"atom":443,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[445,446]}},{"Named":{"name":"s_prefix","atom":447}},{"Repetition":{"atom":448,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":523}},{"Entity":{"atom":463}},{"Entity":{"atom":5}},{"Repetition":{"atom":452,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":453}},{"Entity":{"atom":120}},{"Entity":{"atom":5}},{"Repetition":{"atom":456,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":457}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":460,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":461}},{"Sequence":{"atoms":[454,455,458,459,462]}},{"Entity":{"atom":479}},{"Entity":{"atom":5}},{"Repetition":{"atom":465,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":466}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":469,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":470}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":473,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":474}},{"Sequence":{"atoms":[467,468,471,472,475]}},{"Entity":{"atom":16}},{"Lookahead":{"atom":477,"positive":false}},{"Sequence":{"atoms":[476,478]}},{"Entity":{"atom":488}},{"Entity":{"atom":5}},{"Repetition":{"atom":481,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":482}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":485,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":486}},{"Sequence":{"atoms":[483,484,487]}},{"Entity":{"atom":501}},{"Entity":{"atom":5}},{"Repetition":{"atom":490,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":491}},{"Entity":{"atom":120}},{"Named":{"name":"slash_sep","atom":493}},{"Entity":{"atom":5}},{"Repetition":{"atom":495,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":496}},{"Sequence":{"atoms":[492,494,497]}},{"Entity":{"atom":21}},{"Lookahead":{"atom":499,"positive":false}},{"Sequence":{"atoms":[498,500]}},{"Entity":{"atom":518}},{"Entity":{"atom":5}},{"Repetition":{"atom":503,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":504}},{"Entity":{"atom":16}},{"Named":{"name":"dash_sep","atom":506}},{"Entity":{"atom":5}},{"Repetition":{"atom":508,"min":1,"max":3,"tag":"Repetition"}},{"Named":{"name":"part","atom":509}},{"Sequence":{"atoms":[505,507,510]}},{"Entity":{"atom":29}},{"Lookahead":{"atom":512,"positive":false}},{"Entity":{"atom":21}},{"Entity":{"atom":16}},{"Alternative":{"atoms":[514,515]}},{"Lookahead":{"atom":516,"positive":false}},{"Sequence":{"atoms":[511,513,517]}},{"Entity":{"atom":522}},{"Entity":{"atom":5}},{"Repetition":{"atom":520,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":521}},{"Alternative":{"atoms":[451,464,480,489,502,519]}},{"Entity":{"atom":120}},{"Entity":{"atom":92}},{"Named":{"name":"lang_code","atom":525}},{"Entity":{"atom":25}},{"Named":{"name":"lang_colon","atom":527}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":530,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":532,"positive":false}},{"Sequence":{"atoms":[529,531,533]}},{"Named":{"name":"year","atom":534}},{"Sequence":{"atoms":[435,436,444,449,450,524,526,528,535]}},{"Entity":{"atom":570}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[540,541,542]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[543,544]}},{"Named":{"name":"stage","atom":545}},{"Repetition":{"atom":546,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[548,549]}},{"Named":{"name":"s_prefix","atom":550}},{"Repetition":{"atom":551,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Repetition":{"atom":553,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":554}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":557,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"iteration","atom":558}},{"Sequence":{"atoms":[556,559]}},{"Repetition":{"atom":560,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":120}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":564,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":566,"positive":false}},{"Sequence":{"atoms":[563,565,567]}},{"Named":{"name":"slash_year","atom":568}},{"Sequence":{"atoms":[538,539,547,552,555,561,562,569]}},{"Entity":{"atom":603}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"D"}},{"Named":{"name":"d_prefix","atom":574}},{"Entity":{"atom":5}},{"Repetition":{"atom":576,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":577}},{"Entity":{"atom":602}},{"Entity":{"atom":590}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":583,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":585,"positive":false}},{"Sequence":{"atoms":[582,584,586]}},{"Named":{"name":"year","atom":587}},{"Sequence":{"atoms":[581,588]}},{"Named":{"name":"current_date","atom":589}},{"Entity":{"atom":601}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":594,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":596,"positive":false}},{"Sequence":{"atoms":[593,595,597]}},{"Named":{"name":"year","atom":598}},{"Sequence":{"atoms":[592,599]}},{"Named":{"name":"legacy_date","atom":600}},{"Alternative":{"atoms":[580,591]}},{"Sequence":{"atoms":[572,573,575,578,579]}},{"Entity":{"atom":619}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"x"}},{"Entity":{"atom":5}},{"Repetition":{"atom":608,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"conf_number","atom":609}},{"Entity":{"atom":16}},{"Entity":{"atom":615}},{"Entity":{"atom":92}},{"Repetition":{"atom":613,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"paper_code","atom":614}},{"Entity":{"atom":5}},{"Repetition":{"atom":616,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"paper_number","atom":617}},{"Sequence":{"atoms":[605,606,607,610,611,612,618]}},{"Entity":{"atom":635}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":615}},{"Entity":{"atom":5}},{"Repetition":{"atom":624,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"paper_number","atom":625}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":628,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":631,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[629,630,632]}},{"Named":{"name":"page_range","atom":633}},{"Sequence":{"atoms":[621,622,623,626,627,634]}},{"Entity":{"atom":653}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":639,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":640}},{"Entity":{"atom":16}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":644,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":646,"positive":false}},{"Sequence":{"atoms":[643,645,647]}},{"Named":{"name":"year","atom":648}},{"Entity":{"atom":106}},{"Repetition":{"atom":650,"min":0,"max":1,"tag":"Maybe"}},{"Named":{"name":"trailing_lang","atom":651}},{"Sequence":{"atoms":[637,638,641,642,649,652]}},{"Entity":{"atom":681}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":658}},{"Str":{"pattern":"x"}},{"Named":{"name":"conference","atom":657}},{"Entity":{"atom":5}},{"Repetition":{"atom":660,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"conf_number","atom":661}},{"Entity":{"atom":602}},{"Entity":{"atom":3}},{"Str":{"pattern":"Amendment"}},{"Entity":{"atom":3}},{"Entity":{"atom":5}},{"Repetition":{"atom":667,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"amd_number","atom":668}},{"Sequence":{"atoms":[664,665,666,669]}},{"Repetition":{"atom":670,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":679}},{"Entity":{"atom":120}},{"Entity":{"atom":5}},{"Entity":{"atom":111}},{"Alternative":{"atoms":[674,675]}},{"Repetition":{"atom":676,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"variant","atom":677}},{"Sequence":{"atoms":[673,678]}},{"Repetition":{"atom":672,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[655,656,659,662,663,671,680]}},{"Entity":{"atom":759}},{"Entity":{"atom":721}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Entity":{"atom":92}},{"Named":{"name":"type","atom":686}},{"Entity":{"atom":3}},{"Entity":{"atom":698}},{"Entity":{"atom":5}},{"Repetition":{"atom":690,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":16}},{"Entity":{"atom":5}},{"Repetition":{"atom":693,"min":1,"max":3,"tag":"Repetition"}},{"Named":{"name":"part","atom":694}},{"Sequence":{"atoms":[692,695]}},{"Repetition":{"atom":696,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[691,697]}},{"Entity":{"atom":602}},{"Repetition":{"atom":699,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":719}},{"Entity":{"atom":3}},{"Entity":{"atom":713}},{"Entity":{"atom":5}},{"Repetition":{"atom":704,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":21}},{"Entity":{"atom":5}},{"Repetition":{"atom":707,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[705,706,708]}},{"Entity":{"atom":5}},{"Repetition":{"atom":710,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[709,711]}},{"Named":{"name":"iteration","atom":712}},{"Repetition":{"atom":703,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"WD"}},{"Str":{"pattern":"CD"}},{"Alternative":{"atoms":[715,716]}},{"Named":{"name":"stage","atom":717}},{"Sequence":{"atoms":[702,714,718]}},{"Repetition":{"atom":701,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[684,685,687,688,689,700,720]}},{"Entity":{"atom":3}},{"Str":{"pattern":"Annex"}},{"Entity":{"atom":3}},{"Entity":{"atom":92}},{"Entity":{"atom":16}},{"Entity":{"atom":92}},{"Sequence":{"atoms":[726,727]}},{"Repetition":{"atom":728,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[725,729]}},{"Named":{"name":"annex_letter","atom":730}},{"Entity":{"atom":3}},{"Entity":{"atom":736}},{"Str":{"pattern":"Edition"}},{"Str":{"pattern":"edition"}},{"Alternative":{"atoms":[734,735]}},{"Entity":{"atom":3}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":739,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":741,"positive":false}},{"Sequence":{"atoms":[738,740,742]}},{"Named":{"name":"year","atom":743}},{"Sequence":{"atoms":[732,733,737,744]}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":748,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":750,"positive":false}},{"Sequence":{"atoms":[747,749,751]}},{"Named":{"name":"year","atom":752}},{"Sequence":{"atoms":[746,753]}},{"Alternative":{"atoms":[745,754]}},{"Repetition":{"atom":755,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":431}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[683,722,723,724,731,756,758]}},{"Entity":{"atom":790}},{"Entity":{"atom":721}},{"Entity":{"atom":3}},{"Str":{"pattern":"Annexes"}},{"Named":{"name":"annex_marker","atom":763}},{"Entity":{"atom":3}},{"Entity":{"atom":736}},{"Named":{"name":"edition_format","atom":766}},{"Entity":{"atom":3}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":770,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":772,"positive":false}},{"Sequence":{"atoms":[769,771,773]}},{"Named":{"name":"year","atom":774}},{"Sequence":{"atoms":[765,767,768,775]}},{"Entity":{"atom":25}},{"Entity":{"atom":29}},{"Entity":{"atom":5}},{"Repetition":{"atom":779,"min":2,"max":null,"tag":"Repetition"}},{"Entity":{"atom":5}},{"Lookahead":{"atom":781,"positive":false}},{"Sequence":{"atoms":[778,780,782]}},{"Named":{"name":"year","atom":783}},{"Sequence":{"atoms":[777,784]}},{"Alternative":{"atoms":[776,785]}},{"Repetition":{"atom":786,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":431}},{"Repetition":{"atom":788,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[761,762,764,787,789]}},{"Entity":{"atom":820}},{"Str":{"pattern":"CIE"}},{"Entity":{"atom":3}},{"Str":{"pattern":"FDIS"}},{"Str":{"pattern":"DIS"}},{"Str":{"pattern":"DS"}},{"Alternative":{"atoms":[794,795,796]}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[797,798]}},{"Named":{"name":"stage","atom":799}},{"Repetition":{"atom":800,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"S"}},{"Entity":{"atom":3}},{"Sequence":{"atoms":[802,803]}},{"Named":{"name":"s_prefix","atom":804}},{"Repetition":{"atom":805,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":523}},{"Entity":{"atom":125}},{"Entity":{"atom":602}},{"Sequence":{"atoms":[808,809]}},{"Named":{"name":"lang_before","atom":810}},{"Entity":{"atom":602}},{"Entity":{"atom":125}},{"Repetition":{"atom":813,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[812,814]}},{"Named":{"name":"date_then_lang","atom":815}},{"Entity":{"atom":602}},{"Alternative":{"atoms":[811,816,817]}},{"Repetition":{"atom":818,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[792,793,801,806,807,819]}},{"Alternative":{"atoms":[0,9,58,128,181,203,280,322,352,401,434,537,571,604,620,636,654,682,760,791]}}],"root":821},"bindings":[{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"iteration","path":"iteration","type":"string","card":null,"preprocess":null},{"capture":"part","path":"part","type":"string","card":null,"preprocess":null},{"capture":"dash_sep","path":"dash_sep","type":"string","card":null,"preprocess":null},{"capture":"slash_sep","path":"slash_sep","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"current_date","path":"current_date","type":"raw","card":null,"preprocess":null},{"capture":"legacy_date","path":"legacy_date","type":"raw","card":null,"preprocess":null},{"capture":"language_slash","path":"language_slash","type":"raw","card":null,"preprocess":null},{"capture":"language_paren","path":"language_paren","type":"raw","card":null,"preprocess":null},{"capture":"language_paren_year","path":"language_paren_year","type":"raw","card":null,"preprocess":null},{"capture":"lang_before","path":"lang_before","type":"raw","card":null,"preprocess":null},{"capture":"date_then_lang","path":"date_then_lang","type":"raw","card":null,"preprocess":null},{"capture":"trailing_lang","path":"trailing_lang","type":"raw","card":null,"preprocess":null},{"capture":"trans_year","path":"trans_year","type":"string","card":null,"preprocess":null},{"capture":"lang_code","path":"lang_code","type":"string","card":null,"preprocess":null},{"capture":"lang_colon","path":"lang_colon","type":"string","card":null,"preprocess":null},{"capture":"slash_year","path":"slash_year","type":"string","card":null,"preprocess":null},{"capture":"stage","path":"stage","type":"string","card":null,"preprocess":null},{"capture":"s_prefix","path":"s_prefix","type":"string","card":null,"preprocess":null},{"capture":"doc_type","path":"doc_type","type":"string","card":null,"preprocess":null},{"capture":"paper_code","path":"paper_code","type":"string","card":null,"preprocess":null},{"capture":"paper_number","path":"paper_number","type":"string","card":null,"preprocess":null},{"capture":"page_range","path":"page_range","type":"string","card":null,"preprocess":null},{"capture":"conf_number","path":"conf_number","type":"string","card":null,"preprocess":null},{"capture":"conference","path":"conference","type":"string","card":null,"preprocess":null},{"capture":"variant","path":"variant","type":"string","card":null,"preprocess":null},{"capture":"d_prefix","path":"d_prefix","type":"string","card":null,"preprocess":null},{"capture":"base_number","path":"base_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_number","path":"supplement_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_part","path":"supplement_part","type":"string","card":null,"preprocess":null},{"capture":"base_supplement","path":"base_supplement","type":"string","card":null,"preprocess":null},{"capture":"base_supplement_part","path":"base_supplement_part","type":"string","card":null,"preprocess":null},{"capture":"base_year","path":"base_year","type":"string","card":null,"preprocess":null},{"capture":"cor_number","path":"cor_number","type":"string","card":null,"preprocess":null},{"capture":"cor_year","path":"cor_year","type":"string","card":null,"preprocess":null},{"capture":"amd_number","path":"amd_number","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublisher","type":"string","card":null,"preprocess":null},{"capture":"iso_reference","path":"iso_reference","type":"string","card":null,"preprocess":null},{"capture":"iec_identifier","path":"iec_identifier","type":"string","card":null,"preprocess":null},{"capture":"first_number","path":"first_number","type":"string","card":null,"preprocess":null},{"capture":"bundle_number","path":"bundle_number","type":"string","card":null,"preprocess":null},{"capture":"annex_marker","path":"annex_marker","type":"string","card":null,"preprocess":null},{"capture":"edition_format","path":"edition_format","type":"string","card":null,"preprocess":null},{"capture":"annex_letter","path":"annex_letter","type":"string","card":null,"preprocess":null},{"capture":"type","path":"type","type":"string","card":null,"preprocess":null},{"capture":"next_number","path":"bundle_items[].next_number","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule code: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 1 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule code: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule language: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule doc_type: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 2 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 3 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 4 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 5 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 6 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 7 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 8 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 9 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 10 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 11 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 12 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 13 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 14 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 15 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 16 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 17 and 18 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 17 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 17 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 18 and 19 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 18 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 19 and 20 are order-dependent (shared first bytes; ordered choice is decisive)","rule nonrparen: branches 1 and 2 are order-dependent (first set not statically known)","rule nonrparen_nl: branches 1 and 3 are order-dependent (first set not statically known)","rule nonrparen_nl: branches 2 and 3 are order-dependent (first set not statically known)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"CIE S 008/E:2001","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 15:2018","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE x045-2019","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE S 006.1/1998 (ISO 16508:1999)","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE D001:2017","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE ISO 10916:2024","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 121-SP1:2009","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 198-SP1.1:2011,198-SP1.2:2011","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 232:2019/Cor1:2020","expect":{}},{"entry":"identifier","kind":"accept","input":"CIE 249:2022-Cor1","expect":{}},{"entry":"identifier","kind":"example","input":"CIE 249:2022-Cor1","expect":{"base_number":"249","base_year":"2022","cor_number":"1"}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/cie/parser.rb — CIE identifiers: standards with\n# iteration/part/separator variants and legacy or current dates,\n# language forms (slash, paren, paren-year), DIS+SP supplements,\n# conference proceedings (xNNN papers), D-series, joint forms with\n# ISO/ISO-CIE/IEC, the identical-(ISO ...) form, and the IEC dual.\n#\n# Edition-2 conversion. Deviations from the v1 tree:\n# - the zero-width markers (\"\" as dash_sep) and (\"\" as slash_sep) are\n# re-spelled as real-token captures of the separator they marked:\n# `dash as dash_sep` and `slash as slash_sep`. The keys stay present\n# exactly when the dash/slash part form matched, so the builder's\n# truthiness checks keep their meaning (the bound values are \"-\" and\n# \"/\" instead of \"\").\n# - the builder dispatches the date style, the language format and the\n# standard_identifier word order on the wrapper keys (current_date,\n# legacy_date, language_slash, language_paren, language_paren_year,\n# lang_before, date_then_lang, trailing_lang), so all eight keep\n# their v1 nested shapes and bind uncast with (raw).\n# - year_digits is inlined (century 2*digit !digit) at every capture\n# site: a capture over a ref to a composite rule leaks the rule's\n# self-wrapped named nodes and would bind an array.\n# - the composite s_prefix/stage_code rules are inlined at capture\n# sites for the same reason; the unused full_number wrapper capture\n# is dropped (the builder never read it).\n# - pure-raw rule bodies (digits, letters) are inlined so every capture\n# binds one scalar span.\n\ngrammar PubidCie version \"0.1.0\" edition 2 {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n space = \" \"\n dash = \"-\"\n colon = \":\"\n dot = \".\"\n slash = \"/\"\n lparen = \"(\"\n rparen = \")\"\n century = \"19\" / \"20\"\n year_digits = century 2*digit !digit\n\n legacy_date = (dash (century 2*digit !digit) as year) as legacy_date\n current_date = (colon (century 2*digit !digit) as year) as current_date\n date = current_date / legacy_date\n\n code_with_iteration = ((1*digit)) as number dot ((1*digit)) as iteration\n code_with_part_and_iteration_slash = {\n ((1*digit)) as number\n slash\n ((1*digit)) as part\n dot\n ((1*digit)) as iteration\n }\n code_with_part_and_iteration_dash = {\n ( ((1*digit)) as number dash ((1*digit)) as part dot ((1*digit)) as iteration )\n !dash\n }\n code_with_part_dash = {\n ( ((1*digit)) as number dash as dash_sep ((1*3digit)) as part )\n (!(century))\n (!(dot / dash))\n }\n code_with_part_slash = {\n ( ((1*digit)) as number slash as slash_sep ((1*digit)) as part )\n !dot\n }\n code_simple = ((1*digit)) as number\n code = {\n code_with_part_and_iteration_slash\n / code_with_part_and_iteration_dash\n / code_with_iteration\n / code_with_part_slash\n / code_with_part_dash\n / code_simple\n }\n\n language_slash = ((slash (upper) as lang_code)) as language_slash\n language_paren = ((lparen ((1*3(upper / lower))) as lang_code rparen)) as language_paren\n language_paren_year = {\n (\n ( ([space]) lparen ((2*upper)) as lang_code dash (century 2*digit !digit) as trans_year rparen )\n ) as language_paren_year\n }\n language = language_paren_year / language_paren / language_slash\n\n x_prefix = \"x\"\n doc_type = \"TR\" / \"TS\"\n paper_code = ((1*upper)) as paper_code\n variant_slug = slash ((1*(digit / lower))) as variant\n\n conf_proceedings = \"CIE\" space \"x\" ((1*digit)) as conf_number dash paper_code ((1*digit)) as paper_number\n standalone_proceedings = \"CIE\" space paper_code ((1*digit)) as paper_number space (((1*digit) dash (1*digit))) as page_range\n d_series_identifier = \"CIE\" space \"D\" as d_prefix ((1*digit)) as number date\n standard_with_slash_year = {\n \"CIE\" space\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as number\n [ (dot ((1*digit)) as iteration) ]\n slash\n ((century 2*digit !digit)) as slash_year\n }\n dis_with_supplement = {\n \"CIE\" space\n ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as base_number\n dash \"SP\"\n ((1*digit)) as supplement_number\n [ (dot ((1*digit)) as supplement_part) ]\n slash\n (upper) as lang_code\n (colon) as lang_colon\n (century 2*digit !digit) as year\n }\n standard_identifier = {\n \"CIE\" space\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n [ (\"S\" space) as s_prefix ]\n code\n [\n ( ((language date)) as lang_before\n / ((date [language])) as date_then_lang\n / date\n )\n ]\n }\n standard_with_language_year = {\n \"CIE\" space\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n [ (\"S\" space) as s_prefix ]\n code\n slash\n (upper) as lang_code\n (colon) as lang_colon\n (century 2*digit !digit) as year\n }\n conference_identifier = \"CIE\" space x_prefix as conference ((1*digit)) as conf_number date [(space \"Amendment\" space ((1*digit)) as amd_number)] [variant_slug]\n joint_with_iso = {\n (\n \"CIE\" space\n \"ISO\" as copublisher\n !slash space\n [ ((doc_type) space) as doc_type ]\n [ ((\"FDIS\" / \"DIS\" / \"DS\") space) as stage ]\n ((1*digit)) as number\n [ (dash ((1*digit)) as part) ]\n [\n ( (colon (century 2*digit !digit) as year)\n / (dash (century 2*digit !digit) as year)\n )\n ]\n [language]\n )\n }\n joint_with_iso_cie = {\n (\n \"CIE\" space\n \"ISO/CIE\" as copublisher\n space\n [ ((doc_type) space) as doc_type ]\n ((1*digit)) as number\n [ (colon (century 2*digit !digit) as year) ]\n [language]\n )\n }\n joint_with_iec = {\n (\n \"CIE\" space\n \"IEC\" as copublisher\n space\n ((1*digit)) as number\n dot\n ((1*digit)) as part\n dash\n (century 2*digit !digit) as year\n )\n }\n identical_with_iso = {\n (\n \"CIE\" space\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as number\n [\n ( (dot ((1*digit)) as iteration)\n / (dash ((1*digit)) as part)\n )\n ]\n [\n (\n slash\n (\n (((upper)) as lang_code (colon) as lang_colon (century 2*digit !digit) as year)\n / (((upper)) as lang_code (century 2*digit !digit) as year)\n / (((century 2*digit !digit)) as slash_year)\n )\n )\n ]\n space \"(ISO\" space\n (\n (\n ((1*(digit / upper / colon / slash / dot / dash)))\n [ (lparen 1*upper rparen) ]\n )\n ) as iso_reference\n rparen\n )\n }\n dual_with_iec = {\n (\n \"CIE\" space\n [ (\"S\" space) as s_prefix ]\n ((1*digit)) as number\n colon\n (century 2*digit !digit) as year\n slash \"IEC\" space\n ((1*nonrparen_nl)) as iec_identifier\n )\n }\n supplement_identifier = {\n (\n \"CIE\" space\n ((1*digit)) as base_number\n dash \"SP\"\n ((1*digit)) as supplement_number\n [ (dot ((1*digit)) as supplement_part) ]\n [ (colon (century 2*digit !digit) as year) ]\n [language_portion]\n )\n }\n corrigendum_identifier = {\n (\n \"CIE\" space\n ((1*digit)) as base_number\n [\n (\n dash \"SP\" ((1*digit)) as base_supplement\n [ (dot ((1*digit)) as base_supplement_part) ]\n )\n ]\n colon\n (century 2*digit !digit) as base_year\n # Two attested corrigendum faces: the older \"/CorN:year\" (the\n # Corrigenda page's \"Corrigendum 1 ... (year)\") and the dash face\n # CIE publishes for a consolidated correction, \"CIE 249:2022-Cor1\"\n # (DOI 10.25039/TR.249.2022.Cor1), which carries no corrigendum\n # year of its own.\n (\n (\n slash \"Cor\"\n ((1*digit)) as cor_number\n colon\n (century 2*digit !digit) as cor_year\n )\n /\n (\n dash \"Cor\"\n ((1*digit)) as cor_number\n )\n )\n )\n }\n bundle_identifier = {\n (\n \"CIE\" space\n ((1*digit)) as first_number\n dash \"SP\" ((1*digit)) dot ((1*digit))\n colon\n (century 2*digit !digit)\n (\n 1*(\n \",\"\n (\n ((1*digit)) as next_number\n dash \"SP\" ((1*digit)) dot ((1*digit))\n colon\n (century 2*digit !digit)\n )\n )\n ) as bundle_items\n )\n }\n tutorial_bundle = \"CIE Tutorials Bundle\" space ((1*digit)) as bundle_number\n identifier = {\n tutorial_bundle\n / bundle_identifier\n / joint_with_iso_cie\n / joint_with_iso\n / joint_with_iec\n / identical_with_iso\n / dis_with_supplement\n / dual_with_iec\n / corrigendum_identifier\n / supplement_identifier\n / standard_with_language_year\n / standard_with_slash_year\n / d_series_identifier\n / conf_proceedings\n / standalone_proceedings\n / legacy_code_with_year\n / conference_identifier\n / annex_letter_identifier\n / annex_identifier\n / standard_identifier\n }\n legacy_code_with_year = {\n \"CIE\" space\n ((1*digit)) as number\n dash\n (century 2*digit !digit) as year\n [ ((language_paren_year)) ] as trailing_lang\n }\n\n # Annex forms (rule bodies per source)\n annex_identifier = {\n (base_without_language)\n space \"Annexes\" as annex_marker\n [\n (\n ( (space (edition_text) as edition_format space (century 2*digit !digit) as year)\n / (colon (century 2*digit !digit) as year)\n )\n )\n ]\n [language_portion]\n }\n annex_letter_identifier = {\n (base_without_language)\n space \"Annex\" space\n ( (upper) [ (dash upper) ] ) as annex_letter\n [\n (\n ( (space edition_text space (century 2*digit !digit) as year)\n / (colon (century 2*digit !digit) as year)\n )\n )\n ]\n [language_portion]\n }\n base_without_language = \"CIE\" space ((upper)) as type space full_number_cie [date] [draft_stage_cie]\n draft_stage_cie = space [stage_iteration_cie] (\"WD\" / \"CD\") as stage\n stage_iteration_cie = ((((1*digit) dot (1*digit))) / (1*digit)) as iteration\n full_number_cie = ((1*digit)) [(dash ((1*3digit)) as part)]\n language_portion = language_paren / language_slash\n edition_text = \"Edition\" / \"edition\"\n\n nonrparen = %x01-28 / %x29-10FFFF\n nonrparen_nl = %x01-09 / %x0B-28 / %x2A-10FFFF\n\n entry identifier: identifier\n\n bindings identifier {\n number -> number (string)\n iteration -> iteration (string)\n part -> part (string)\n dash_sep -> dash_sep (string)\n slash_sep -> slash_sep (string)\n year -> year (string)\n current_date -> current_date (raw)\n legacy_date -> legacy_date (raw)\n language_slash -> language_slash (raw)\n language_paren -> language_paren (raw)\n language_paren_year -> language_paren_year (raw)\n lang_before -> lang_before (raw)\n date_then_lang -> date_then_lang (raw)\n trailing_lang -> trailing_lang (raw)\n trans_year -> trans_year (string)\n lang_code -> lang_code (string)\n lang_colon -> lang_colon (string)\n slash_year -> slash_year (string)\n stage -> stage (string)\n s_prefix -> s_prefix (string)\n doc_type -> doc_type (string)\n paper_code -> paper_code (string)\n paper_number -> paper_number (string)\n page_range -> page_range (string)\n conf_number -> conf_number (string)\n conference -> conference (string)\n variant -> variant (string)\n d_prefix -> d_prefix (string)\n base_number -> base_number (string)\n supplement_number -> supplement_number (string)\n supplement_part -> supplement_part (string)\n base_supplement -> base_supplement (string)\n base_supplement_part -> base_supplement_part (string)\n base_year -> base_year (string)\n cor_number -> cor_number (string)\n cor_year -> cor_year (string)\n amd_number -> amd_number (string)\n copublisher -> copublisher (string)\n iso_reference -> iso_reference (string)\n iec_identifier -> iec_identifier (string)\n first_number -> first_number (string)\n bundle_number -> bundle_number (string)\n annex_marker -> annex_marker (string)\n edition_format -> edition_format (string)\n annex_letter -> annex_letter (string)\n type -> type (string)\n next_number -> bundle_items[].next_number (string)\n }\n\n test {\n accept \"CIE S 008/E:2001\"\n accept \"CIE 15:2018\"\n accept \"CIE x045-2019\"\n accept \"CIE S 006.1/1998 (ISO 16508:1999)\"\n accept \"CIE D001:2017\"\n accept \"CIE ISO 10916:2024\"\n accept \"CIE 121-SP1:2009\"\n accept \"CIE 198-SP1.1:2011,198-SP1.2:2011\"\n accept \"CIE 232:2019/Cor1:2020\"\n accept \"CIE 249:2022-Cor1\"\n example \"CIE 249:2022-Cor1\" {\n base_number: \"249\"\n base_year: \"2022\"\n cor_number: \"1\"\n }\n reject \"nonsense\"\n }\n}\n","source_hash":"7445c32731561f0f7a86ce50c4433c0acd60e9a8b8e514fc611a1c1ffed88475","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:e1dfbf3dfaba9cf09eb462ba6dbdd6a1dffcfb26a001160bb72e60206aba4737","checksum":"sha256:689bb260e949c27876ca0777ca1542ba4b39a7df7d2807cd8f1b8f47e110bcc8","validated":{"lint_errors":0,"lint_warnings":210,"tests_total":12,"tests_failures":0,"self_test":true}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CCSDS flavor notes
|
|
2
|
+
|
|
3
|
+
- **`Cor.1` (no space) is a normalizing parse** (relaton-data-ccsds#18): the baked
|
|
4
|
+
grammar (`data/parg/ccsds.json`, source `grammars/ccsds.parg` in pubid-grammar)
|
|
5
|
+
requires `Cor.` + space + digits. `Parser.normalize_input` (`\bCor\.(?=\d)` →
|
|
6
|
+
`Cor. `) adds the space before the parse, so no artifact was re-baked.
|
|
7
|
+
`CCSDS 231.0-B-4 Cor.1` renders as `CCSDS 231.0-B-4 Cor. 1` and is `==` to the
|
|
8
|
+
spaced parse. Locked by `spec/pubid/ccsds/corrigendum_no_space_spec.rb`.
|
|
9
|
+
- **Put an ingestion rewrite in `Parser.normalize_input`, not in
|
|
10
|
+
`data/ccsds/update_codes.yaml`.** `spec/pubid/parg/typed_binding_parity_spec.rb`
|
|
11
|
+
feeds each pass fixture through `Parser.normalize_input` (the pubid#698 seam)
|
|
12
|
+
and then straight to the grammar. It does not apply update codes, so a rule
|
|
13
|
+
there makes the tree path raise on the new fixture.
|
|
@@ -77,10 +77,9 @@ module Pubid
|
|
|
77
77
|
|
|
78
78
|
identifier = ::Pubid.utf8_input(identifier)
|
|
79
79
|
|
|
80
|
-
# Apply legacy update_codes normalization first
|
|
81
80
|
normalized = Core::UpdateCodes.apply(identifier, :ccsds)
|
|
82
|
-
|
|
83
|
-
Pubid::Ccsds::Builder.build(
|
|
81
|
+
face = Parser.normalize_input(normalized)
|
|
82
|
+
Pubid::Ccsds::Builder.build(Pubid::Parg::Model.bound(:ccsds, face))
|
|
84
83
|
end
|
|
85
84
|
|
|
86
85
|
# from_hash is the shared polymorphic dispatch on Pubid::Identifier.
|
data/lib/pubid/ccsds/parser.rb
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module Pubid
|
|
4
4
|
module Ccsds
|
|
5
|
+
# Parse-entry ingestion for the baked CCSDS grammar.
|
|
5
6
|
class Parser
|
|
7
|
+
GLUED_CORRIGENDUM = /\bCor\.(?=\d)/
|
|
8
|
+
|
|
9
|
+
# Rewrites a glued corrigendum (`Cor.1`) onto the spaced face the
|
|
10
|
+
# grammar reads (`Cor. 1`). A string the grammar already accepts is
|
|
11
|
+
# returned unchanged.
|
|
12
|
+
#
|
|
13
|
+
# @param string [String] the identifier as the caller spelled it
|
|
14
|
+
# @return [String] the identifier in the grammar's face
|
|
15
|
+
def self.normalize_input(string)
|
|
16
|
+
string.gsub(GLUED_CORRIGENDUM, "Cor. ")
|
|
17
|
+
end
|
|
6
18
|
end
|
|
7
19
|
end
|
|
8
20
|
end
|
data/lib/pubid/cie/CLAUDE.md
CHANGED
|
@@ -65,3 +65,18 @@ facets (spelling only); `style` names how the designation reads and is an
|
|
|
65
65
|
atom; the language format rides `langformat-` and a paren-year
|
|
66
66
|
translation's year `transyear-`. A bundle's members are `ids-`; a
|
|
67
67
|
supplement's document goes along `base`.
|
|
68
|
+
|
|
69
|
+
## Corrigendum faces (relaton-data-cie#12)
|
|
70
|
+
|
|
71
|
+
The grammar reads two attested corrigendum surfaces. The older numbered
|
|
72
|
+
record is `CIE 232:2019/Cor1:2020` (`/CorN:year`); the consolidated
|
|
73
|
+
correction CIE publishes as `CIE 249:2022-Cor1` (DOI
|
|
74
|
+
`10.25039/TR.249.2022.Cor1`) carries no corrigendum year and uses the dash
|
|
75
|
+
face. In the grammar the slash face always binds `cor_year` and the dash
|
|
76
|
+
face never does, so `Corrigendum#year` alone selects the rendering:
|
|
77
|
+
`year ? "/CorN:year" : "-CorN"`. No spelling attribute is stored, the
|
|
78
|
+
canonical hash of the dash row has no `year` key, and existing slash rows
|
|
79
|
+
keep their hash/URN/render byte for byte. The legacy
|
|
80
|
+
`urn:cie:cie…` form is unchanged (it already omits wrappers); the
|
|
81
|
+
pubid-scheme URN is `urn:pubid:cie:std:249:year-2022:cor:1` and round-trips.
|
|
82
|
+
Locked by `spec/pubid/cie/identifiers/corrigendum_spec.rb`.
|
|
@@ -5,15 +5,24 @@ require "lutaml/model"
|
|
|
5
5
|
module Pubid
|
|
6
6
|
module Cie
|
|
7
7
|
module Identifiers
|
|
8
|
-
# Corrigendum identifier for CIE
|
|
8
|
+
# Corrigendum identifier for CIE.
|
|
9
9
|
# Wraps a nested base — a Standard, or a Supplement when the
|
|
10
10
|
# corrigendum applies to a supplement (CIE 198-SP1.4:2011/Cor1:2013).
|
|
11
|
-
# The
|
|
12
|
-
#
|
|
11
|
+
# The corrigendum suffix is a clean trailing addition on the base's
|
|
12
|
+
# rendering. Two attested faces:
|
|
13
|
+
# - "/CorN:year" for the numbered Corrigenda records
|
|
14
|
+
# (CIE 232:2019/Cor1:2020, CIE 198-SP1.4:2011/Cor1:2013);
|
|
15
|
+
# - "-CorN" for the consolidated correction that carries no
|
|
16
|
+
# corrigendum year of its own (CIE 249:2022-Cor1, published with
|
|
17
|
+
# DOI 10.25039/TR.249.2022.Cor1).
|
|
18
|
+
# The grammar pairs each face with its year: the slash face always
|
|
19
|
+
# carries +year+, the dash face never does. +year+ therefore selects
|
|
20
|
+
# the face on rendering, so no separate spelling attribute is stored.
|
|
13
21
|
class Corrigendum < SupplementIdentifier
|
|
14
|
-
# +number+ (the "
|
|
22
|
+
# +number+ (the "CorN" ordinal) is inherited from SupplementIdentifier.
|
|
15
23
|
# The corrigendum's own year — SupplementIdentifier descends from the
|
|
16
24
|
# base Identifier (not SingleIdentifier), so there is no inherited year.
|
|
25
|
+
# Nil on the consolidated dash face.
|
|
17
26
|
attribute :year, :string
|
|
18
27
|
|
|
19
28
|
# Uniform supplement interface (shared with Supplement).
|
|
@@ -26,7 +35,8 @@ module Pubid
|
|
|
26
35
|
end
|
|
27
36
|
|
|
28
37
|
def to_s(**opts)
|
|
29
|
-
|
|
38
|
+
suffix = year ? "/Cor#{number}:#{year}" : "-Cor#{number}"
|
|
39
|
+
annotate_plain_render("#{base}#{suffix}", **opts)
|
|
30
40
|
end
|
|
31
41
|
end
|
|
32
42
|
end
|
data/lib/pubid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pubid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.63
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-12-
|
|
11
|
+
date: 2026-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|
|
@@ -414,6 +414,7 @@ files:
|
|
|
414
414
|
- lib/pubid/calconnect_pfs/urn.adoc
|
|
415
415
|
- lib/pubid/calconnect_pfs/urn_generator.rb
|
|
416
416
|
- lib/pubid/ccsds.rb
|
|
417
|
+
- lib/pubid/ccsds/CLAUDE.md
|
|
417
418
|
- lib/pubid/ccsds/builder.rb
|
|
418
419
|
- lib/pubid/ccsds/identifier.rb
|
|
419
420
|
- lib/pubid/ccsds/identifiers.rb
|