pubid 2.0.40 → 2.0.41

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/data/parg/adobe.json +1 -1
  3. data/data/parg/aiee.json +1 -1
  4. data/data/parg/amca.json +1 -1
  5. data/data/parg/ansi.json +1 -1
  6. data/data/parg/api.json +1 -1
  7. data/data/parg/ashrae.json +1 -1
  8. data/data/parg/asme.json +1 -1
  9. data/data/parg/astm.json +1 -1
  10. data/data/parg/bipm.json +1 -1
  11. data/data/parg/bsi.json +1 -1
  12. data/data/parg/bsi_pfs.json +1 -1
  13. data/data/parg/calconnect.json +1 -1
  14. data/data/parg/calconnect_pfs.json +1 -1
  15. data/data/parg/ccsds.json +1 -1
  16. data/data/parg/cen_cenelec.json +1 -1
  17. data/data/parg/cen_pfs.json +1 -1
  18. data/data/parg/cie.json +1 -1
  19. data/data/parg/csa.json +1 -1
  20. data/data/parg/doi.json +1 -1
  21. data/data/parg/doi_pfs.json +1 -1
  22. data/data/parg/easc.json +1 -1
  23. data/data/parg/ecma.json +1 -1
  24. data/data/parg/etsi.json +1 -1
  25. data/data/parg/etsi_pfs.json +1 -1
  26. data/data/parg/evs.json +1 -1
  27. data/data/parg/gb.json +1 -1
  28. data/data/parg/gost.json +1 -1
  29. data/data/parg/iala.json +1 -1
  30. data/data/parg/iana.json +1 -1
  31. data/data/parg/idf.json +1 -1
  32. data/data/parg/iec.json +1 -1
  33. data/data/parg/ieee.json +1 -1
  34. data/data/parg/ietf.json +1 -1
  35. data/data/parg/iho.json +1 -1
  36. data/data/parg/ire.json +1 -1
  37. data/data/parg/isbn.json +1 -1
  38. data/data/parg/itu.json +1 -1
  39. data/data/parg/jcgm.json +1 -1
  40. data/data/parg/jis.json +1 -1
  41. data/data/parg/nesc.json +1 -1
  42. data/data/parg/nist.json +1 -1
  43. data/data/parg/oasis.json +1 -1
  44. data/data/parg/ogc.json +1 -1
  45. data/data/parg/oiml.json +1 -1
  46. data/data/parg/omg.json +1 -1
  47. data/data/parg/parg.json +1 -1
  48. data/data/parg/plateau.json +1 -1
  49. data/data/parg/sae.json +1 -1
  50. data/data/parg/tgpp.json +1 -1
  51. data/data/parg/un.json +1 -1
  52. data/data/parg/w3c.json +1 -1
  53. data/data/parg/xsf.json +1 -1
  54. data/lib/pubid/version.rb +1 -1
  55. metadata +1 -1
@@ -1 +1 @@
1
- {"bindings":null,"version":"0.1.0","grammar":"PubidCenPfs","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":4}},{"Str":{"pattern":"FprEN"}},{"Str":{"pattern":"prEN"}},{"Alternative":{"atoms":[1,2]}},{"Named":{"name":"stage","atom":3}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":7,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":" "}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":10,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[9,11]}},{"Repetition":{"atom":12,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[8,13]}},{"Named":{"name":"number","atom":14}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[18,19]}},{"Repetition":{"atom":20,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":21}},{"Sequence":{"atoms":[16,17]}},{"Repetition":{"atom":23,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Str":{"pattern":" "}},{"Str":{"pattern":"V"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":28,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":31,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":34,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[26,27,29,30,32,33,35]}},{"Named":{"name":"version","atom":36}},{"Repetition":{"atom":25,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Entity":{"atom":42}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":41,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":43}},{"Sequence":{"atoms":[39,40]}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[0,5,6,24,38,46]}},{"Entity":{"atom":58}},{"Str":{"pattern":"CWA"}},{"Str":{"pattern":"HD"}},{"Str":{"pattern":"ES"}},{"Str":{"pattern":"CR"}},{"Str":{"pattern":"ENV"}},{"Str":{"pattern":"EN"}},{"Str":{"pattern":"CEN"}},{"Str":{"pattern":"CLC"}},{"Alternative":{"atoms":[49,50,51,52,53,54,55,56]}},{"Named":{"name":"publisher","atom":57}},{"Entity":{"atom":68}},{"Str":{"pattern":"/"}},{"Entity":{"atom":65}},{"Str":{"pattern":"CLC"}},{"Str":{"pattern":"ETSI"}},{"Alternative":{"atoms":[62,63]}},{"Named":{"name":"copublisher","atom":64}},{"Sequence":{"atoms":[60,61]}},{"Repetition":{"atom":66,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":67}},{"Repetition":{"atom":59,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":73}},{"Str":{"pattern":"Guide"}},{"Named":{"name":"guide","atom":72}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Sequence":{"atoms":[76,77]}},{"Repetition":{"atom":78,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Sequence":{"atoms":[80,81]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[48,69,70,71,74,75,79,83]}},{"Entity":{"atom":58}},{"Entity":{"atom":68}},{"Repetition":{"atom":86,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":148}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"CISPR"}},{"Alternative":{"atoms":[90,91,92]}},{"Entity":{"atom":138}},{"Entity":{"atom":122}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplements_slash","atom":96}},{"Str":{"pattern":"+"}},{"Named":{"name":"supplements_plus","atom":98}},{"Alternative":{"atoms":[97,99]}},{"Str":{"pattern":"AC"}},{"Named":{"name":"supplement_kind","atom":101}},{"Entity":{"atom":106}},{"Entity":{"atom":42}},{"Repetition":{"atom":104,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":105}},{"Repetition":{"atom":103,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":112}},{"Entity":{"atom":42}},{"Repetition":{"atom":110,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"supplements_year","atom":111}},{"Sequence":{"atoms":[108,109]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Entity":{"atom":119}},{"Entity":{"atom":42}},{"Repetition":{"atom":117,"min":2,"max":2,"tag":"Repetition"}},{"Named":{"name":"supplements_month","atom":118}},{"Sequence":{"atoms":[115,116]}},{"Repetition":{"atom":120,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[100,102,107,114,121]}},{"Entity":{"atom":136}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplements_slash","atom":124}},{"Str":{"pattern":"+"}},{"Named":{"name":"supplements_plus","atom":126}},{"Alternative":{"atoms":[125,127]}},{"Str":{"pattern":"A"}},{"Named":{"name":"supplement_kind","atom":129}},{"Entity":{"atom":106}},{"Str":{"pattern":":"}},{"Entity":{"atom":112}},{"Sequence":{"atoms":[132,133]}},{"Repetition":{"atom":134,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[128,130,131,135]}},{"Alternative":{"atoms":[95,123]}},{"Named":{"name":"supplement","atom":137}},{"Lookahead":{"atom":94,"positive":false}},{"Str":{"pattern":" FRAG"}},{"Lookahead":{"atom":140,"positive":false}},{"Re":{"pattern":"[\\x01-\\x09]"}},{"Re":{"pattern":"[\\x0b-\\u{10ffff}]"}},{"Alternative":{"atoms":[142,143]}},{"Sequence":{"atoms":[139,141,144]}},{"Repetition":{"atom":145,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[93,146]}},{"Named":{"name":"adopted","atom":147}},{"Sequence":{"atoms":[85,87,88,89]}},{"Entity":{"atom":58}},{"Entity":{"atom":68}},{"Repetition":{"atom":151,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"/"}},{"Entity":{"atom":158}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Alternative":{"atoms":[155,156]}},{"Named":{"name":"type","atom":157}},{"Sequence":{"atoms":[153,154]}},{"Repetition":{"atom":159,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Sequence":{"atoms":[163,164]}},{"Repetition":{"atom":165,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Repetition":{"atom":167,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Sequence":{"atoms":[169,170]}},{"Repetition":{"atom":171,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[150,152,160,161,162,166,168,172]}},{"Alternative":{"atoms":[47,84,149,173]}},{"Entity":{"atom":178}},{"Entity":{"atom":138}},{"Repetition":{"atom":176,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplements","atom":177}},{"Str":{"pattern":" FRAG"}},{"Entity":{"atom":183}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":181,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"fragment_number","atom":182}},{"Sequence":{"atoms":[179,180]}},{"Repetition":{"atom":184,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[175,185]}},{"Repetition":{"atom":186,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[174,187]}},{"Entity":{"atom":58}},{"Entity":{"atom":68}},{"Repetition":{"atom":190,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":158}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Sequence":{"atoms":[196,197]}},{"Repetition":{"atom":198,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Repetition":{"atom":200,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Sequence":{"atoms":[202,203]}},{"Repetition":{"atom":204,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":178}},{"Str":{"pattern":" FRAG"}},{"Entity":{"atom":183}},{"Sequence":{"atoms":[207,208]}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[206,210]}},{"Repetition":{"atom":211,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[189,191,192,193,194,195,199,201,205,212]}},{"Alternative":{"atoms":[188,213]}}],"root":214},"bindings":[{"capture":"publisher","path":"publisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublishers[].copublisher","type":"string","card":null,"preprocess":null},{"capture":"stage","path":"stage","type":"string","card":null,"preprocess":null},{"capture":"type","path":"type","type":"string","card":null,"preprocess":null},{"capture":"guide","path":"guide","type":"string","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"part","path":"part","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"adopted","path":"adopted","type":"string","card":null,"preprocess":null},{"capture":"fragment_number","path":"fragment_number","type":"string","card":null,"preprocess":null},{"capture":"supplement","path":"supplements[].supplement","type":"raw","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"EN 1325","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 12464-1:2011","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 302 326-2 V2.2.1:2026","expect":{}},{"entry":"identifier","kind":"accept","input":"prEN 12464-1:2019","expect":{}},{"entry":"identifier","kind":"accept","input":"FprEN 50600-2-4","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN/TR 12101-5:2005","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN/CLC/ETSI/TR 101551:2026","expect":{}},{"entry":"identifier","kind":"accept","input":"CLC/TS 50701:2021","expect":{}},{"entry":"identifier","kind":"accept","input":"CR 10313:2000","expect":{}},{"entry":"identifier","kind":"accept","input":"CWA 14050-21:2000","expect":{}},{"entry":"identifier","kind":"accept","input":"ES 59008-6-1:1999","expect":{}},{"entry":"identifier","kind":"accept","input":"ENV 1613:1995","expect":{}},{"entry":"identifier","kind":"accept","input":"HD 1215-2:1988","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN Guide 414:2017","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN/CLC Guide 25:2023","expect":{}},{"entry":"identifier","kind":"accept","input":"EN ISO 12100:2010","expect":{}},{"entry":"identifier","kind":"accept","input":"HD IEC 60364-8-81","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 13250:2000/A1:2005","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 60335-1:2012/A1","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 13254:2000/AC:2003","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 61375-2-3:2015/AC:2016-11","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 285:2015+A1","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 285:2015+A1:2021","expect":{}},{"entry":"identifier","kind":"accept","input":"EN ISO 10077-1:2006+AC:2009+AC2:2009","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 60038/A1 FRAG2","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}},{"entry":"identifier","kind":"reject","input":"ETSI EN 300 175","expect":{}},{"entry":"identifier","kind":"reject","input":"CEN/XX 100","expect":{}},{"entry":"identifier","kind":"reject","input":"HD 1215-2:198","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 300 175 V","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 1325 EXTRA","expect":{}},{"entry":"identifier","kind":"reject","input":"EN A1","expect":{}},{"entry":"identifier","kind":"reject","input":"ISO 12100:2010","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 1325:20000","expect":{}},{"entry":"identifier","kind":"reject","input":"EN /TR 100","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 13250:2000/A1:","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 13250:2000/ACX:2003","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 285:2015+A1:","expect":{}},{"entry":"identifier","kind":"reject","input":"FRAG2","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 13250:2000 FRAG2","expect":{}},{"entry":"identifier","kind":"example","input":"EN 1325","expect":{"publisher":"EN","number":"1325"}},{"entry":"identifier","kind":"example","input":"EN 12464-1:2011","expect":{"publisher":"EN","number":"12464","part":"1","year":"2011"}},{"entry":"identifier","kind":"example","input":"EN 302 326-2 V2.2.1:2026","expect":{"publisher":"EN","number":"302 326","part":"2","version":" V2.2.1","year":"2026"}},{"entry":"identifier","kind":"example","input":"prEN 12464-1:2019","expect":{"stage":"prEN","number":"12464","part":"1","year":"2019"}},{"entry":"identifier","kind":"example","input":"FprEN 50600-2-4","expect":{"stage":"FprEN","number":"50600","part":"2-4"}},{"entry":"identifier","kind":"example","input":"CEN/TR 12101-5:2005","expect":{"publisher":"CEN","type":"TR","number":"12101","part":"5","year":"2005"}},{"entry":"identifier","kind":"example","input":"CEN/CLC/ETSI/TR 101551:2026","expect":{"publisher":"CEN","copublisher":"CLC","type":"TR","number":"101551","year":"2026"}},{"entry":"identifier","kind":"example","input":"CLC/TS 50701:2021","expect":{"publisher":"CLC","type":"TS","number":"50701","year":"2021"}},{"entry":"identifier","kind":"example","input":"CR 10313:2000","expect":{"publisher":"CR","number":"10313","year":"2000"}},{"entry":"identifier","kind":"example","input":"CWA 14050-21:2000","expect":{"publisher":"CWA","number":"14050","part":"21","year":"2000"}},{"entry":"identifier","kind":"example","input":"ES 59008-6-1:1999","expect":{"publisher":"ES","number":"59008","part":"6-1","year":"1999"}},{"entry":"identifier","kind":"example","input":"ENV 1613:1995","expect":{"publisher":"ENV","number":"1613","year":"1995"}},{"entry":"identifier","kind":"example","input":"HD 1215-2:1988","expect":{"publisher":"HD","number":"1215","part":"2","year":"1988"}},{"entry":"identifier","kind":"example","input":"CEN Guide 414:2017","expect":{"publisher":"CEN","guide":"Guide","number":"414","year":"2017"}},{"entry":"identifier","kind":"example","input":"CEN/CLC Guide 25:2023","expect":{"publisher":"CEN","copublisher":"CLC","guide":"Guide","number":"25","year":"2023"}},{"entry":"identifier","kind":"example","input":"EN ISO 12100:2010","expect":{"publisher":"EN","adopted":"ISO 12100:2010"}},{"entry":"identifier","kind":"example","input":"HD IEC 60364-8-81","expect":{"publisher":"HD","adopted":"IEC 60364-8-81"}},{"entry":"identifier","kind":"example","input":"EN 13250:2000/A1:2005","expect":{"publisher":"EN","number":"13250","year":"2000"}},{"entry":"identifier","kind":"example","input":"EN 60335-1:2012/A1","expect":{"publisher":"EN","number":"60335","part":"1","year":"2012"}},{"entry":"identifier","kind":"example","input":"EN 13254:2000/AC:2003","expect":{"publisher":"EN","number":"13254","year":"2000"}},{"entry":"identifier","kind":"example","input":"EN 61375-2-3:2015/AC:2016-11","expect":{"publisher":"EN","number":"61375","part":"2-3","year":"2015"}},{"entry":"identifier","kind":"example","input":"EN 285:2015+A1","expect":{"publisher":"EN","number":"285","year":"2015"}},{"entry":"identifier","kind":"example","input":"EN 285:2015+A1:2021","expect":{"publisher":"EN","number":"285","year":"2015"}},{"entry":"identifier","kind":"example","input":"EN ISO 10077-1:2006+AC:2009+AC2:2009","expect":{"publisher":"EN","adopted":"ISO 10077-1:2006"}},{"entry":"identifier","kind":"example","input":"EN 60038/A1 FRAG2","expect":{"publisher":"EN","number":"60038","fragment_number":"2"}}],"docs":{},"source":"# PFS-generated grammar — DO NOT EDIT BY HAND.\n# Source: definitions/cen.pfs (pfs:1) sha256:b8f2c00e392dbc03c1fddedad141afa7c930c5430738721b7df0ac69a371d028\n# Compiler: pubid/grammar/pfs 0.1.0\n# Flavor key: cen_pfs (grammar PubidCenPfs)\n# Regenerate: ruby scripts/pfs compile definitions/cen.pfs --as cen_pfs\n\ngrammar PubidCenPfs version \"0.1.0\" edition 2 {\n\n # Grammar fragments: named lexical terms declared under `grammar:`.\n digit = %x30-39\n\n # Fields: one capture rule per declared field; the whole pattern\n # is the capture.\n cen_cenelec_publisher = ((\"CWA\" / \"HD\" / \"ES\" / \"CR\" / \"ENV\" / \"EN\" / \"CEN\" / \"CLC\")) as publisher\n cen_cenelec_copublisher = ((\"CLC\" / \"ETSI\")) as copublisher\n cen_cenelec_copublishers = (*( \"/\" cen_cenelec_copublisher )) as copublishers\n cen_cenelec_stage = ((\"FprEN\" / \"prEN\")) as stage\n cen_cenelec_type = ((\"TR\" / \"TS\")) as type\n cen_cenelec_guide = (\"Guide\") as guide\n cen_cenelec_number = (((1*%x30-39) (*(\" \" (1*%x30-39))))) as number\n cen_cenelec_part = (1*(%x30-39 / \"-\")) as part\n cen_cenelec_version = (\" \" \"V\" (1*%x30-39) \".\" (1*%x30-39) \".\" (1*%x30-39)) as version\n cen_cenelec_year = (4digit) as year\n cen_cenelec_adopted = ((((\"ISO\" / \"IEC\" / \"CISPR\")) *((!(cen_cenelec_supplement) !(\" FRAG\") (%x01-09 / %x0B-10FFFF))))) as adopted\n cen_cenelec_fragment_number = (1*%x30-39) as fragment_number\n\n # Supplement run (compiled from the supplements declaration):\n # each item binds its separator, kind face, ordinal and date\n # columns; the builder folds the run into the declared wrapper\n # classes (the slash run standalone, the plus run consolidated).\n cen_cenelec_supplement_number = (1*digit) as supplement_number\n cen_cenelec_supplements_year = (4digit) as supplements_year\n cen_cenelec_supplements_month = (2digit) as supplements_month\n cen_cenelec_supplement_corrigendum = {\n (\"/\" as supplements_slash / \"+\" as supplements_plus)\n \"AC\" as supplement_kind [cen_cenelec_supplement_number] [\":\" cen_cenelec_supplements_year] [\"-\" cen_cenelec_supplements_month]\n }\n cen_cenelec_supplement_amendment = {\n (\"/\" as supplements_slash / \"+\" as supplements_plus)\n \"A\" as supplement_kind cen_cenelec_supplement_number [\":\" cen_cenelec_supplements_year]\n }\n cen_cenelec_supplement = ( cen_cenelec_supplement_corrigendum / cen_cenelec_supplement_amendment ) as supplement\n cen_cenelec_supplements = (1*cen_cenelec_supplement) as supplements\n\n # Identifier rule: the canonical template first, then the\n # declared alternates (parse-in spellings; they normalize to the\n # canonical render face).\n identifier = {\n ( cen_cenelec_stage \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [cen_cenelec_version] [\":\" cen_cenelec_year] / cen_cenelec_publisher [cen_cenelec_copublishers] \" \" cen_cenelec_guide \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [\":\" cen_cenelec_year] / cen_cenelec_publisher [cen_cenelec_copublishers] \" \" cen_cenelec_adopted / cen_cenelec_publisher [cen_cenelec_copublishers] [\"/\" cen_cenelec_type] \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [cen_cenelec_version] [\":\" cen_cenelec_year] ) [cen_cenelec_supplements [\" FRAG\" cen_cenelec_fragment_number]]\n / cen_cenelec_publisher [cen_cenelec_copublishers] \" \" cen_cenelec_type \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [cen_cenelec_version] [\":\" cen_cenelec_year] [cen_cenelec_supplements [\" FRAG\" cen_cenelec_fragment_number]]\n }\n entry identifier: identifier\n\n # Typed model bindings: every bound capture lands on the\n # consumer model's field of the same name.\n bindings identifier {\n publisher -> publisher (string)\n copublisher -> copublisher (string)\n copublisher -> copublishers[].copublisher (string)\n stage -> stage (string)\n type -> type (string)\n guide -> guide (string)\n number -> number (string)\n part -> part (string)\n version -> version (string)\n year -> year (string)\n adopted -> adopted (string)\n fragment_number -> fragment_number (string)\n supplement -> supplements[].supplement (raw)\n }\n\n # REQUIRED examples from the definition — accepts, rejects, and\n # the capture expectations the compiler replayed at compile time.\n test {\n accept \"EN 1325\"\n accept \"EN 12464-1:2011\"\n accept \"EN 302 326-2 V2.2.1:2026\"\n accept \"prEN 12464-1:2019\"\n accept \"FprEN 50600-2-4\"\n accept \"CEN/TR 12101-5:2005\"\n accept \"CEN/CLC/ETSI/TR 101551:2026\"\n accept \"CLC/TS 50701:2021\"\n accept \"CR 10313:2000\"\n accept \"CWA 14050-21:2000\"\n accept \"ES 59008-6-1:1999\"\n accept \"ENV 1613:1995\"\n accept \"HD 1215-2:1988\"\n accept \"CEN Guide 414:2017\"\n accept \"CEN/CLC Guide 25:2023\"\n accept \"EN ISO 12100:2010\"\n accept \"HD IEC 60364-8-81\"\n accept \"EN 13250:2000/A1:2005\"\n accept \"EN 60335-1:2012/A1\"\n accept \"EN 13254:2000/AC:2003\"\n accept \"EN 61375-2-3:2015/AC:2016-11\"\n accept \"EN 285:2015+A1\"\n accept \"EN 285:2015+A1:2021\"\n accept \"EN ISO 10077-1:2006+AC:2009+AC2:2009\"\n accept \"EN 60038/A1 FRAG2\"\n reject \"nonsense\"\n reject \"ETSI EN 300 175\"\n reject \"CEN/XX 100\"\n reject \"HD 1215-2:198\"\n reject \"EN 300 175 V\"\n reject \"EN 1325 EXTRA\"\n reject \"EN A1\"\n reject \"ISO 12100:2010\"\n reject \"EN 1325:20000\"\n reject \"EN /TR 100\"\n reject \"EN 13250:2000/A1:\"\n reject \"EN 13250:2000/ACX:2003\"\n reject \"EN 285:2015+A1:\"\n reject \"FRAG2\"\n reject \"EN 13250:2000 FRAG2\"\n example \"EN 1325\" { publisher: \"EN\" number: \"1325\" }\n example \"EN 12464-1:2011\" { publisher: \"EN\" number: \"12464\" part: \"1\" year: \"2011\" }\n example \"EN 302 326-2 V2.2.1:2026\" { publisher: \"EN\" number: \"302 326\" part: \"2\" version: \" V2.2.1\" year: \"2026\" }\n example \"prEN 12464-1:2019\" { stage: \"prEN\" number: \"12464\" part: \"1\" year: \"2019\" }\n example \"FprEN 50600-2-4\" { stage: \"FprEN\" number: \"50600\" part: \"2-4\" }\n example \"CEN/TR 12101-5:2005\" { publisher: \"CEN\" type: \"TR\" number: \"12101\" part: \"5\" year: \"2005\" }\n example \"CEN/CLC/ETSI/TR 101551:2026\" { publisher: \"CEN\" copublisher: \"CLC\" type: \"TR\" number: \"101551\" year: \"2026\" }\n example \"CLC/TS 50701:2021\" { publisher: \"CLC\" type: \"TS\" number: \"50701\" year: \"2021\" }\n example \"CR 10313:2000\" { publisher: \"CR\" number: \"10313\" year: \"2000\" }\n example \"CWA 14050-21:2000\" { publisher: \"CWA\" number: \"14050\" part: \"21\" year: \"2000\" }\n example \"ES 59008-6-1:1999\" { publisher: \"ES\" number: \"59008\" part: \"6-1\" year: \"1999\" }\n example \"ENV 1613:1995\" { publisher: \"ENV\" number: \"1613\" year: \"1995\" }\n example \"HD 1215-2:1988\" { publisher: \"HD\" number: \"1215\" part: \"2\" year: \"1988\" }\n example \"CEN Guide 414:2017\" { publisher: \"CEN\" guide: \"Guide\" number: \"414\" year: \"2017\" }\n example \"CEN/CLC Guide 25:2023\" { publisher: \"CEN\" copublisher: \"CLC\" guide: \"Guide\" number: \"25\" year: \"2023\" }\n example \"EN ISO 12100:2010\" { publisher: \"EN\" adopted: \"ISO 12100:2010\" }\n example \"HD IEC 60364-8-81\" { publisher: \"HD\" adopted: \"IEC 60364-8-81\" }\n example \"EN 13250:2000/A1:2005\" { publisher: \"EN\" number: \"13250\" year: \"2000\" }\n example \"EN 60335-1:2012/A1\" { publisher: \"EN\" number: \"60335\" part: \"1\" year: \"2012\" }\n example \"EN 13254:2000/AC:2003\" { publisher: \"EN\" number: \"13254\" year: \"2000\" }\n example \"EN 61375-2-3:2015/AC:2016-11\" { publisher: \"EN\" number: \"61375\" part: \"2-3\" year: \"2015\" }\n example \"EN 285:2015+A1\" { publisher: \"EN\" number: \"285\" year: \"2015\" }\n example \"EN 285:2015+A1:2021\" { publisher: \"EN\" number: \"285\" year: \"2015\" }\n example \"EN ISO 10077-1:2006+AC:2009+AC2:2009\" { publisher: \"EN\" adopted: \"ISO 10077-1:2006\" }\n example \"EN 60038/A1 FRAG2\" { publisher: \"EN\" number: \"60038\" fragment_number: \"2\" }\n }\n}\n","source_hash":"af689f6d48bd5f2966cfe4fe6fee924e8af80fe2075cd1b5438b9e8dea1552f5","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.3.126","edition":2,"semantics_hash":"sha256:cd693464a12fefe5a83dd7621f635ca4f4432d520ef093fb7cc6f0f4e1d89142","checksum":"sha256:4eaf33574f00f7500da255feec6b63c0deb9705711fe6025f27d625a9026d4fb"}
1
+ {"bindings":null,"version":"0.1.0","grammar":"PubidCenPfs","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":4}},{"Str":{"pattern":"FprEN"}},{"Str":{"pattern":"prEN"}},{"Alternative":{"atoms":[1,2]}},{"Named":{"name":"stage","atom":3}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":7,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":" "}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":10,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[9,11]}},{"Repetition":{"atom":12,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[8,13]}},{"Named":{"name":"number","atom":14}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[18,19]}},{"Repetition":{"atom":20,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":21}},{"Sequence":{"atoms":[16,17]}},{"Repetition":{"atom":23,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Str":{"pattern":" "}},{"Str":{"pattern":"V"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":28,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":31,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":34,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[26,27,29,30,32,33,35]}},{"Named":{"name":"version","atom":36}},{"Repetition":{"atom":25,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Entity":{"atom":42}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":41,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":43}},{"Sequence":{"atoms":[39,40]}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[0,5,6,24,38,46]}},{"Entity":{"atom":58}},{"Str":{"pattern":"CWA"}},{"Str":{"pattern":"HD"}},{"Str":{"pattern":"ES"}},{"Str":{"pattern":"CR"}},{"Str":{"pattern":"ENV"}},{"Str":{"pattern":"EN"}},{"Str":{"pattern":"CEN"}},{"Str":{"pattern":"CLC"}},{"Alternative":{"atoms":[49,50,51,52,53,54,55,56]}},{"Named":{"name":"publisher","atom":57}},{"Entity":{"atom":68}},{"Str":{"pattern":"/"}},{"Entity":{"atom":65}},{"Str":{"pattern":"CLC"}},{"Str":{"pattern":"ETSI"}},{"Alternative":{"atoms":[62,63]}},{"Named":{"name":"copublisher","atom":64}},{"Sequence":{"atoms":[60,61]}},{"Repetition":{"atom":66,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":67}},{"Repetition":{"atom":59,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":73}},{"Str":{"pattern":"Guide"}},{"Named":{"name":"guide","atom":72}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Sequence":{"atoms":[76,77]}},{"Repetition":{"atom":78,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Sequence":{"atoms":[80,81]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[48,69,70,71,74,75,79,83]}},{"Entity":{"atom":58}},{"Entity":{"atom":68}},{"Repetition":{"atom":86,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":148}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"CISPR"}},{"Alternative":{"atoms":[90,91,92]}},{"Entity":{"atom":138}},{"Entity":{"atom":122}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplements_slash","atom":96}},{"Str":{"pattern":"+"}},{"Named":{"name":"supplements_plus","atom":98}},{"Alternative":{"atoms":[97,99]}},{"Str":{"pattern":"AC"}},{"Named":{"name":"supplement_kind","atom":101}},{"Entity":{"atom":106}},{"Entity":{"atom":42}},{"Repetition":{"atom":104,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_number","atom":105}},{"Repetition":{"atom":103,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":112}},{"Entity":{"atom":42}},{"Repetition":{"atom":110,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"supplements_year","atom":111}},{"Sequence":{"atoms":[108,109]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Entity":{"atom":119}},{"Entity":{"atom":42}},{"Repetition":{"atom":117,"min":2,"max":2,"tag":"Repetition"}},{"Named":{"name":"supplements_month","atom":118}},{"Sequence":{"atoms":[115,116]}},{"Repetition":{"atom":120,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[100,102,107,114,121]}},{"Entity":{"atom":136}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplements_slash","atom":124}},{"Str":{"pattern":"+"}},{"Named":{"name":"supplements_plus","atom":126}},{"Alternative":{"atoms":[125,127]}},{"Str":{"pattern":"A"}},{"Named":{"name":"supplement_kind","atom":129}},{"Entity":{"atom":106}},{"Str":{"pattern":":"}},{"Entity":{"atom":112}},{"Sequence":{"atoms":[132,133]}},{"Repetition":{"atom":134,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[128,130,131,135]}},{"Alternative":{"atoms":[95,123]}},{"Named":{"name":"supplement","atom":137}},{"Lookahead":{"atom":94,"positive":false}},{"Str":{"pattern":" FRAG"}},{"Lookahead":{"atom":140,"positive":false}},{"Re":{"pattern":"[\\x01-\\x09]"}},{"Re":{"pattern":"[\\x0b-\\u{10ffff}]"}},{"Alternative":{"atoms":[142,143]}},{"Sequence":{"atoms":[139,141,144]}},{"Repetition":{"atom":145,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[93,146]}},{"Named":{"name":"adopted","atom":147}},{"Sequence":{"atoms":[85,87,88,89]}},{"Entity":{"atom":58}},{"Entity":{"atom":68}},{"Repetition":{"atom":151,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"/"}},{"Entity":{"atom":158}},{"Str":{"pattern":"TR"}},{"Str":{"pattern":"TS"}},{"Alternative":{"atoms":[155,156]}},{"Named":{"name":"type","atom":157}},{"Sequence":{"atoms":[153,154]}},{"Repetition":{"atom":159,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Sequence":{"atoms":[163,164]}},{"Repetition":{"atom":165,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Repetition":{"atom":167,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Sequence":{"atoms":[169,170]}},{"Repetition":{"atom":171,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[150,152,160,161,162,166,168,172]}},{"Alternative":{"atoms":[47,84,149,173]}},{"Entity":{"atom":178}},{"Entity":{"atom":138}},{"Repetition":{"atom":176,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplements","atom":177}},{"Str":{"pattern":" FRAG"}},{"Entity":{"atom":183}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":181,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"fragment_number","atom":182}},{"Sequence":{"atoms":[179,180]}},{"Repetition":{"atom":184,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[175,185]}},{"Repetition":{"atom":186,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[174,187]}},{"Entity":{"atom":58}},{"Entity":{"atom":68}},{"Repetition":{"atom":190,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":" "}},{"Entity":{"atom":158}},{"Str":{"pattern":" "}},{"Entity":{"atom":15}},{"Str":{"pattern":"-"}},{"Entity":{"atom":22}},{"Sequence":{"atoms":[196,197]}},{"Repetition":{"atom":198,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Repetition":{"atom":200,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":":"}},{"Entity":{"atom":44}},{"Sequence":{"atoms":[202,203]}},{"Repetition":{"atom":204,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":178}},{"Str":{"pattern":" FRAG"}},{"Entity":{"atom":183}},{"Sequence":{"atoms":[207,208]}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[206,210]}},{"Repetition":{"atom":211,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[189,191,192,193,194,195,199,201,205,212]}},{"Alternative":{"atoms":[188,213]}}],"root":214},"bindings":[{"capture":"publisher","path":"publisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublishers[].copublisher","type":"string","card":null,"preprocess":null},{"capture":"stage","path":"stage","type":"string","card":null,"preprocess":null},{"capture":"type","path":"type","type":"string","card":null,"preprocess":null},{"capture":"guide","path":"guide","type":"string","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"part","path":"part","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"adopted","path":"adopted","type":"string","card":null,"preprocess":null},{"capture":"fragment_number","path":"fragment_number","type":"string","card":null,"preprocess":null},{"capture":"supplement","path":"supplements[].supplement","type":"raw","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"EN 1325","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 12464-1:2011","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 302 326-2 V2.2.1:2026","expect":{}},{"entry":"identifier","kind":"accept","input":"prEN 12464-1:2019","expect":{}},{"entry":"identifier","kind":"accept","input":"FprEN 50600-2-4","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN/TR 12101-5:2005","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN/CLC/ETSI/TR 101551:2026","expect":{}},{"entry":"identifier","kind":"accept","input":"CLC/TS 50701:2021","expect":{}},{"entry":"identifier","kind":"accept","input":"CR 10313:2000","expect":{}},{"entry":"identifier","kind":"accept","input":"CWA 14050-21:2000","expect":{}},{"entry":"identifier","kind":"accept","input":"ES 59008-6-1:1999","expect":{}},{"entry":"identifier","kind":"accept","input":"ENV 1613:1995","expect":{}},{"entry":"identifier","kind":"accept","input":"HD 1215-2:1988","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN Guide 414:2017","expect":{}},{"entry":"identifier","kind":"accept","input":"CEN/CLC Guide 25:2023","expect":{}},{"entry":"identifier","kind":"accept","input":"EN ISO 12100:2010","expect":{}},{"entry":"identifier","kind":"accept","input":"HD IEC 60364-8-81","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 13250:2000/A1:2005","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 60335-1:2012/A1","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 13254:2000/AC:2003","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 61375-2-3:2015/AC:2016-11","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 285:2015+A1","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 285:2015+A1:2021","expect":{}},{"entry":"identifier","kind":"accept","input":"EN ISO 10077-1:2006+AC:2009+AC2:2009","expect":{}},{"entry":"identifier","kind":"accept","input":"EN 60038/A1 FRAG2","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}},{"entry":"identifier","kind":"reject","input":"ETSI EN 300 175","expect":{}},{"entry":"identifier","kind":"reject","input":"CEN/XX 100","expect":{}},{"entry":"identifier","kind":"reject","input":"HD 1215-2:198","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 300 175 V","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 1325 EXTRA","expect":{}},{"entry":"identifier","kind":"reject","input":"EN A1","expect":{}},{"entry":"identifier","kind":"reject","input":"ISO 12100:2010","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 1325:20000","expect":{}},{"entry":"identifier","kind":"reject","input":"EN /TR 100","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 13250:2000/A1:","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 13250:2000/ACX:2003","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 285:2015+A1:","expect":{}},{"entry":"identifier","kind":"reject","input":"FRAG2","expect":{}},{"entry":"identifier","kind":"reject","input":"EN 13250:2000 FRAG2","expect":{}},{"entry":"identifier","kind":"example","input":"EN 1325","expect":{"publisher":"EN","number":"1325"}},{"entry":"identifier","kind":"example","input":"EN 12464-1:2011","expect":{"publisher":"EN","number":"12464","part":"1","year":"2011"}},{"entry":"identifier","kind":"example","input":"EN 302 326-2 V2.2.1:2026","expect":{"publisher":"EN","number":"302 326","part":"2","version":" V2.2.1","year":"2026"}},{"entry":"identifier","kind":"example","input":"prEN 12464-1:2019","expect":{"stage":"prEN","number":"12464","part":"1","year":"2019"}},{"entry":"identifier","kind":"example","input":"FprEN 50600-2-4","expect":{"stage":"FprEN","number":"50600","part":"2-4"}},{"entry":"identifier","kind":"example","input":"CEN/TR 12101-5:2005","expect":{"publisher":"CEN","type":"TR","number":"12101","part":"5","year":"2005"}},{"entry":"identifier","kind":"example","input":"CEN/CLC/ETSI/TR 101551:2026","expect":{"publisher":"CEN","copublisher":"CLC","type":"TR","number":"101551","year":"2026"}},{"entry":"identifier","kind":"example","input":"CLC/TS 50701:2021","expect":{"publisher":"CLC","type":"TS","number":"50701","year":"2021"}},{"entry":"identifier","kind":"example","input":"CR 10313:2000","expect":{"publisher":"CR","number":"10313","year":"2000"}},{"entry":"identifier","kind":"example","input":"CWA 14050-21:2000","expect":{"publisher":"CWA","number":"14050","part":"21","year":"2000"}},{"entry":"identifier","kind":"example","input":"ES 59008-6-1:1999","expect":{"publisher":"ES","number":"59008","part":"6-1","year":"1999"}},{"entry":"identifier","kind":"example","input":"ENV 1613:1995","expect":{"publisher":"ENV","number":"1613","year":"1995"}},{"entry":"identifier","kind":"example","input":"HD 1215-2:1988","expect":{"publisher":"HD","number":"1215","part":"2","year":"1988"}},{"entry":"identifier","kind":"example","input":"CEN Guide 414:2017","expect":{"publisher":"CEN","guide":"Guide","number":"414","year":"2017"}},{"entry":"identifier","kind":"example","input":"CEN/CLC Guide 25:2023","expect":{"publisher":"CEN","copublisher":"CLC","guide":"Guide","number":"25","year":"2023"}},{"entry":"identifier","kind":"example","input":"EN ISO 12100:2010","expect":{"publisher":"EN","adopted":"ISO 12100:2010"}},{"entry":"identifier","kind":"example","input":"HD IEC 60364-8-81","expect":{"publisher":"HD","adopted":"IEC 60364-8-81"}},{"entry":"identifier","kind":"example","input":"EN 13250:2000/A1:2005","expect":{"publisher":"EN","number":"13250","year":"2000"}},{"entry":"identifier","kind":"example","input":"EN 60335-1:2012/A1","expect":{"publisher":"EN","number":"60335","part":"1","year":"2012"}},{"entry":"identifier","kind":"example","input":"EN 13254:2000/AC:2003","expect":{"publisher":"EN","number":"13254","year":"2000"}},{"entry":"identifier","kind":"example","input":"EN 61375-2-3:2015/AC:2016-11","expect":{"publisher":"EN","number":"61375","part":"2-3","year":"2015"}},{"entry":"identifier","kind":"example","input":"EN 285:2015+A1","expect":{"publisher":"EN","number":"285","year":"2015"}},{"entry":"identifier","kind":"example","input":"EN 285:2015+A1:2021","expect":{"publisher":"EN","number":"285","year":"2015"}},{"entry":"identifier","kind":"example","input":"EN ISO 10077-1:2006+AC:2009+AC2:2009","expect":{"publisher":"EN","adopted":"ISO 10077-1:2006"}},{"entry":"identifier","kind":"example","input":"EN 60038/A1 FRAG2","expect":{"publisher":"EN","number":"60038","fragment_number":"2"}}],"docs":{},"source":"# PFS-generated grammar — DO NOT EDIT BY HAND.\n# Source: definitions/cen.pfs (pfs:1) sha256:b8f2c00e392dbc03c1fddedad141afa7c930c5430738721b7df0ac69a371d028\n# Compiler: pubid/grammar/pfs 0.1.0\n# Flavor key: cen_pfs (grammar PubidCenPfs)\n# Regenerate: ruby scripts/pfs compile definitions/cen.pfs --as cen_pfs\n\ngrammar PubidCenPfs version \"0.1.0\" edition 2 {\n\n # Grammar fragments: named lexical terms declared under `grammar:`.\n digit = %x30-39\n\n # Fields: one capture rule per declared field; the whole pattern\n # is the capture.\n cen_cenelec_publisher = ((\"CWA\" / \"HD\" / \"ES\" / \"CR\" / \"ENV\" / \"EN\" / \"CEN\" / \"CLC\")) as publisher\n cen_cenelec_copublisher = ((\"CLC\" / \"ETSI\")) as copublisher\n cen_cenelec_copublishers = (*( \"/\" cen_cenelec_copublisher )) as copublishers\n cen_cenelec_stage = ((\"FprEN\" / \"prEN\")) as stage\n cen_cenelec_type = ((\"TR\" / \"TS\")) as type\n cen_cenelec_guide = (\"Guide\") as guide\n cen_cenelec_number = (((1*%x30-39) (*(\" \" (1*%x30-39))))) as number\n cen_cenelec_part = (1*(%x30-39 / \"-\")) as part\n cen_cenelec_version = (\" \" \"V\" (1*%x30-39) \".\" (1*%x30-39) \".\" (1*%x30-39)) as version\n cen_cenelec_year = (4digit) as year\n cen_cenelec_adopted = ((((\"ISO\" / \"IEC\" / \"CISPR\")) *((!(cen_cenelec_supplement) !(\" FRAG\") (%x01-09 / %x0B-10FFFF))))) as adopted\n cen_cenelec_fragment_number = (1*%x30-39) as fragment_number\n\n # Supplement run (compiled from the supplements declaration):\n # each item binds its separator, kind face, ordinal and date\n # columns; the builder folds the run into the declared wrapper\n # classes (the slash run standalone, the plus run consolidated).\n cen_cenelec_supplement_number = (1*digit) as supplement_number\n cen_cenelec_supplements_year = (4digit) as supplements_year\n cen_cenelec_supplements_month = (2digit) as supplements_month\n cen_cenelec_supplement_corrigendum = {\n (\"/\" as supplements_slash / \"+\" as supplements_plus)\n \"AC\" as supplement_kind [cen_cenelec_supplement_number] [\":\" cen_cenelec_supplements_year] [\"-\" cen_cenelec_supplements_month]\n }\n cen_cenelec_supplement_amendment = {\n (\"/\" as supplements_slash / \"+\" as supplements_plus)\n \"A\" as supplement_kind cen_cenelec_supplement_number [\":\" cen_cenelec_supplements_year]\n }\n cen_cenelec_supplement = ( cen_cenelec_supplement_corrigendum / cen_cenelec_supplement_amendment ) as supplement\n cen_cenelec_supplements = (1*cen_cenelec_supplement) as supplements\n\n # Identifier rule: the canonical template first, then the\n # declared alternates (parse-in spellings; they normalize to the\n # canonical render face).\n identifier = {\n ( cen_cenelec_stage \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [cen_cenelec_version] [\":\" cen_cenelec_year] / cen_cenelec_publisher [cen_cenelec_copublishers] \" \" cen_cenelec_guide \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [\":\" cen_cenelec_year] / cen_cenelec_publisher [cen_cenelec_copublishers] \" \" cen_cenelec_adopted / cen_cenelec_publisher [cen_cenelec_copublishers] [\"/\" cen_cenelec_type] \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [cen_cenelec_version] [\":\" cen_cenelec_year] ) [cen_cenelec_supplements [\" FRAG\" cen_cenelec_fragment_number]]\n / cen_cenelec_publisher [cen_cenelec_copublishers] \" \" cen_cenelec_type \" \" cen_cenelec_number [\"-\" cen_cenelec_part] [cen_cenelec_version] [\":\" cen_cenelec_year] [cen_cenelec_supplements [\" FRAG\" cen_cenelec_fragment_number]]\n }\n entry identifier: identifier\n\n # Typed model bindings: every bound capture lands on the\n # consumer model's field of the same name.\n bindings identifier {\n publisher -> publisher (string)\n copublisher -> copublisher (string)\n copublisher -> copublishers[].copublisher (string)\n stage -> stage (string)\n type -> type (string)\n guide -> guide (string)\n number -> number (string)\n part -> part (string)\n version -> version (string)\n year -> year (string)\n adopted -> adopted (string)\n fragment_number -> fragment_number (string)\n supplement -> supplements[].supplement (raw)\n }\n\n # REQUIRED examples from the definition — accepts, rejects, and\n # the capture expectations the compiler replayed at compile time.\n test {\n accept \"EN 1325\"\n accept \"EN 12464-1:2011\"\n accept \"EN 302 326-2 V2.2.1:2026\"\n accept \"prEN 12464-1:2019\"\n accept \"FprEN 50600-2-4\"\n accept \"CEN/TR 12101-5:2005\"\n accept \"CEN/CLC/ETSI/TR 101551:2026\"\n accept \"CLC/TS 50701:2021\"\n accept \"CR 10313:2000\"\n accept \"CWA 14050-21:2000\"\n accept \"ES 59008-6-1:1999\"\n accept \"ENV 1613:1995\"\n accept \"HD 1215-2:1988\"\n accept \"CEN Guide 414:2017\"\n accept \"CEN/CLC Guide 25:2023\"\n accept \"EN ISO 12100:2010\"\n accept \"HD IEC 60364-8-81\"\n accept \"EN 13250:2000/A1:2005\"\n accept \"EN 60335-1:2012/A1\"\n accept \"EN 13254:2000/AC:2003\"\n accept \"EN 61375-2-3:2015/AC:2016-11\"\n accept \"EN 285:2015+A1\"\n accept \"EN 285:2015+A1:2021\"\n accept \"EN ISO 10077-1:2006+AC:2009+AC2:2009\"\n accept \"EN 60038/A1 FRAG2\"\n reject \"nonsense\"\n reject \"ETSI EN 300 175\"\n reject \"CEN/XX 100\"\n reject \"HD 1215-2:198\"\n reject \"EN 300 175 V\"\n reject \"EN 1325 EXTRA\"\n reject \"EN A1\"\n reject \"ISO 12100:2010\"\n reject \"EN 1325:20000\"\n reject \"EN /TR 100\"\n reject \"EN 13250:2000/A1:\"\n reject \"EN 13250:2000/ACX:2003\"\n reject \"EN 285:2015+A1:\"\n reject \"FRAG2\"\n reject \"EN 13250:2000 FRAG2\"\n example \"EN 1325\" { publisher: \"EN\" number: \"1325\" }\n example \"EN 12464-1:2011\" { publisher: \"EN\" number: \"12464\" part: \"1\" year: \"2011\" }\n example \"EN 302 326-2 V2.2.1:2026\" { publisher: \"EN\" number: \"302 326\" part: \"2\" version: \" V2.2.1\" year: \"2026\" }\n example \"prEN 12464-1:2019\" { stage: \"prEN\" number: \"12464\" part: \"1\" year: \"2019\" }\n example \"FprEN 50600-2-4\" { stage: \"FprEN\" number: \"50600\" part: \"2-4\" }\n example \"CEN/TR 12101-5:2005\" { publisher: \"CEN\" type: \"TR\" number: \"12101\" part: \"5\" year: \"2005\" }\n example \"CEN/CLC/ETSI/TR 101551:2026\" { publisher: \"CEN\" copublisher: \"CLC\" type: \"TR\" number: \"101551\" year: \"2026\" }\n example \"CLC/TS 50701:2021\" { publisher: \"CLC\" type: \"TS\" number: \"50701\" year: \"2021\" }\n example \"CR 10313:2000\" { publisher: \"CR\" number: \"10313\" year: \"2000\" }\n example \"CWA 14050-21:2000\" { publisher: \"CWA\" number: \"14050\" part: \"21\" year: \"2000\" }\n example \"ES 59008-6-1:1999\" { publisher: \"ES\" number: \"59008\" part: \"6-1\" year: \"1999\" }\n example \"ENV 1613:1995\" { publisher: \"ENV\" number: \"1613\" year: \"1995\" }\n example \"HD 1215-2:1988\" { publisher: \"HD\" number: \"1215\" part: \"2\" year: \"1988\" }\n example \"CEN Guide 414:2017\" { publisher: \"CEN\" guide: \"Guide\" number: \"414\" year: \"2017\" }\n example \"CEN/CLC Guide 25:2023\" { publisher: \"CEN\" copublisher: \"CLC\" guide: \"Guide\" number: \"25\" year: \"2023\" }\n example \"EN ISO 12100:2010\" { publisher: \"EN\" adopted: \"ISO 12100:2010\" }\n example \"HD IEC 60364-8-81\" { publisher: \"HD\" adopted: \"IEC 60364-8-81\" }\n example \"EN 13250:2000/A1:2005\" { publisher: \"EN\" number: \"13250\" year: \"2000\" }\n example \"EN 60335-1:2012/A1\" { publisher: \"EN\" number: \"60335\" part: \"1\" year: \"2012\" }\n example \"EN 13254:2000/AC:2003\" { publisher: \"EN\" number: \"13254\" year: \"2000\" }\n example \"EN 61375-2-3:2015/AC:2016-11\" { publisher: \"EN\" number: \"61375\" part: \"2-3\" year: \"2015\" }\n example \"EN 285:2015+A1\" { publisher: \"EN\" number: \"285\" year: \"2015\" }\n example \"EN 285:2015+A1:2021\" { publisher: \"EN\" number: \"285\" year: \"2015\" }\n example \"EN ISO 10077-1:2006+AC:2009+AC2:2009\" { publisher: \"EN\" adopted: \"ISO 10077-1:2006\" }\n example \"EN 60038/A1 FRAG2\" { publisher: \"EN\" number: \"60038\" fragment_number: \"2\" }\n }\n}\n","source_hash":"af689f6d48bd5f2966cfe4fe6fee924e8af80fe2075cd1b5438b9e8dea1552f5","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:cd693464a12fefe5a83dd7621f635ca4f4432d520ef093fb7cc6f0f4e1d89142","checksum":"sha256:00e296160d5559b93f9a67bc0b4c60e9424f8d4dfa4fdb2a1f81d0164200626b","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":65,"tests_failures":0,"self_test":true}}