@pubid/pubid 0.1.71 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -4
- package/artifact/corpus.json.gz +0 -0
- package/dist/flavors/ansi/generated/substrate.d.ts +78 -0
- package/dist/flavors/ansi/generated/substrate.js +105 -0
- package/dist/flavors/ansi/implementation.d.ts +5 -0
- package/dist/flavors/ansi/implementation.js +125 -0
- package/dist/flavors/ansi/index.js +14 -117
- package/dist/flavors/api/generated/substrate.d.ts +78 -0
- package/dist/flavors/api/generated/substrate.js +105 -0
- package/dist/flavors/api/grammar.worker.d.ts +6 -0
- package/dist/flavors/api/{grammar.js → grammar.worker.js} +60 -16
- package/dist/flavors/api/implementation.d.ts +11 -0
- package/dist/flavors/api/implementation.js +106 -0
- package/dist/flavors/api/index.d.ts +1 -3
- package/dist/flavors/api/index.js +14 -98
- package/dist/flavors/arxiv/generated/substrate.d.ts +75 -0
- package/dist/flavors/arxiv/generated/substrate.js +102 -0
- package/dist/flavors/arxiv/index.js +17 -11
- package/dist/flavors/ashrae/generated/substrate.d.ts +78 -0
- package/dist/flavors/ashrae/generated/substrate.js +105 -0
- package/dist/flavors/ashrae/grammar.worker.d.ts +6 -0
- package/dist/flavors/ashrae/{grammar.js → grammar.worker.js} +76 -39
- package/dist/flavors/ashrae/implementation.d.ts +7 -0
- package/dist/flavors/ashrae/implementation.js +316 -0
- package/dist/flavors/ashrae/index.d.ts +1 -3
- package/dist/flavors/ashrae/index.js +14 -304
- package/dist/flavors/asme/generated/substrate.d.ts +78 -0
- package/dist/flavors/asme/generated/substrate.js +105 -0
- package/dist/flavors/asme/grammar.worker.d.ts +6 -0
- package/dist/flavors/asme/{grammar.js → grammar.worker.js} +41 -2
- package/dist/flavors/asme/implementation.d.ts +7 -0
- package/dist/flavors/asme/implementation.js +152 -0
- package/dist/flavors/asme/index.d.ts +1 -3
- package/dist/flavors/asme/index.js +14 -136
- package/dist/flavors/astm/generated/substrate.d.ts +78 -0
- package/dist/flavors/astm/generated/substrate.js +105 -0
- package/dist/flavors/astm/grammar.worker.d.ts +6 -0
- package/dist/flavors/astm/{grammar.js → grammar.worker.js} +39 -5
- package/dist/flavors/astm/implementation.d.ts +6 -0
- package/dist/flavors/astm/implementation.js +135 -0
- package/dist/flavors/astm/index.js +14 -125
- package/dist/flavors/bipm/generated/substrate.d.ts +78 -0
- package/dist/flavors/bipm/generated/substrate.js +105 -0
- package/dist/flavors/bipm/grammar.worker.d.ts +6 -0
- package/dist/flavors/bipm/grammar.worker.js +180 -0
- package/dist/flavors/bipm/implementation.d.ts +6 -0
- package/dist/flavors/bipm/implementation.js +244 -0
- package/dist/flavors/bipm/index.d.ts +1 -28
- package/dist/flavors/bipm/index.js +16 -650
- package/dist/flavors/bipm/model.d.ts +80 -0
- package/dist/flavors/bipm/model.js +271 -0
- package/dist/flavors/bipm/worker.d.ts +2 -0
- package/dist/flavors/bipm/worker.js +19 -0
- package/dist/flavors/bsi/generated/substrate.d.ts +78 -0
- package/dist/flavors/bsi/generated/substrate.js +105 -0
- package/dist/flavors/bsi/grammar.worker.d.ts +6 -0
- package/dist/flavors/bsi/{grammar.js → grammar.worker.js} +36 -7
- package/dist/flavors/bsi/implementation.d.ts +12 -0
- package/dist/flavors/bsi/implementation.js +967 -0
- package/dist/flavors/bsi/index.d.ts +1 -3
- package/dist/flavors/bsi/index.js +15 -940
- package/dist/flavors/bsi/model.js +16 -0
- package/dist/flavors/bsi/worker.js +11 -4
- package/dist/flavors/bsi_pfs/index.d.ts +25 -0
- package/dist/flavors/bsi_pfs/index.js +73 -10
- package/dist/flavors/calconnect/generated/substrate.d.ts +75 -0
- package/dist/flavors/calconnect/generated/substrate.js +102 -0
- package/dist/flavors/calconnect/grammar.worker.d.ts +6 -0
- package/dist/flavors/calconnect/grammar.worker.js +60 -0
- package/dist/flavors/calconnect/implementation.d.ts +6 -0
- package/dist/flavors/calconnect/implementation.js +69 -0
- package/dist/flavors/calconnect/index.d.ts +1 -19
- package/dist/flavors/calconnect/index.js +15 -111
- package/dist/flavors/calconnect/model.d.ts +26 -0
- package/dist/flavors/calconnect/model.js +52 -0
- package/dist/flavors/ccsds/generated/substrate.d.ts +75 -0
- package/dist/flavors/ccsds/generated/substrate.js +102 -0
- package/dist/flavors/ccsds/implementation.d.ts +5 -0
- package/dist/flavors/ccsds/implementation.js +67 -0
- package/dist/flavors/ccsds/index.js +13 -57
- package/dist/flavors/cen_cenelec/generated/substrate.d.ts +78 -0
- package/dist/flavors/cen_cenelec/generated/substrate.js +105 -0
- package/dist/flavors/cen_cenelec/grammar.worker.d.ts +6 -0
- package/dist/flavors/cen_cenelec/{grammar.js → grammar.worker.js} +41 -13
- package/dist/flavors/cen_cenelec/implementation.d.ts +15 -0
- package/dist/flavors/cen_cenelec/implementation.js +322 -0
- package/dist/flavors/cen_cenelec/index.d.ts +2 -4
- package/dist/flavors/cen_cenelec/index.js +16 -286
- package/dist/flavors/cen_cenelec/model.js +16 -1
- package/dist/flavors/cen_cenelec/worker.js +10 -4
- package/dist/flavors/cen_pfs/index.d.ts +5 -0
- package/dist/flavors/cen_pfs/index.js +28 -2
- package/dist/flavors/cie/generated/substrate.d.ts +78 -0
- package/dist/flavors/cie/generated/substrate.js +105 -0
- package/dist/flavors/cie/grammar.worker.d.ts +6 -0
- package/dist/flavors/cie/{grammar.js → grammar.worker.js} +71 -18
- package/dist/flavors/cie/implementation.d.ts +9 -0
- package/dist/flavors/cie/implementation.js +331 -0
- package/dist/flavors/cie/index.js +14 -309
- package/dist/flavors/csa/generated/substrate.d.ts +78 -0
- package/dist/flavors/csa/generated/substrate.js +105 -0
- package/dist/flavors/csa/grammar.worker.d.ts +12 -0
- package/dist/flavors/csa/{grammar.js → grammar.worker.js} +143 -27
- package/dist/flavors/csa/implementation.d.ts +9 -0
- package/dist/flavors/csa/implementation.js +661 -0
- package/dist/flavors/csa/index.js +14 -631
- package/dist/flavors/csa/worker.js +10 -4
- package/dist/flavors/easc/generated/substrate.d.ts +75 -0
- package/dist/flavors/easc/generated/substrate.js +102 -0
- package/dist/flavors/easc/grammar.worker.d.ts +6 -0
- package/dist/flavors/easc/grammar.worker.js +66 -0
- package/dist/flavors/easc/implementation.d.ts +6 -0
- package/dist/flavors/easc/implementation.js +58 -0
- package/dist/flavors/easc/index.d.ts +1 -2
- package/dist/flavors/easc/index.js +15 -105
- package/dist/flavors/easc/model.d.ts +10 -0
- package/dist/flavors/easc/model.js +43 -0
- package/dist/flavors/ecma/generated/substrate.d.ts +75 -0
- package/dist/flavors/ecma/generated/substrate.js +102 -0
- package/dist/flavors/ecma/grammar.worker.d.ts +6 -0
- package/dist/flavors/ecma/grammar.worker.js +63 -0
- package/dist/flavors/ecma/implementation.d.ts +6 -0
- package/dist/flavors/ecma/implementation.js +95 -0
- package/dist/flavors/ecma/index.d.ts +1 -2
- package/dist/flavors/ecma/index.js +15 -152
- package/dist/flavors/ecma/model.d.ts +10 -0
- package/dist/flavors/ecma/model.js +61 -0
- package/dist/flavors/etsi/generated/substrate.d.ts +75 -0
- package/dist/flavors/etsi/generated/substrate.js +102 -0
- package/dist/flavors/etsi/grammar.worker.d.ts +6 -0
- package/dist/flavors/etsi/grammar.worker.js +86 -0
- package/dist/flavors/etsi/implementation.d.ts +6 -0
- package/dist/flavors/etsi/implementation.js +110 -0
- package/dist/flavors/etsi/index.d.ts +2 -12
- package/dist/flavors/etsi/index.js +16 -305
- package/dist/flavors/etsi/model.d.ts +37 -0
- package/dist/flavors/etsi/model.js +169 -0
- package/dist/flavors/eu/generated/substrate.d.ts +75 -0
- package/dist/flavors/eu/generated/substrate.js +102 -0
- package/dist/flavors/eu/implementation.d.ts +7 -0
- package/dist/flavors/eu/implementation.js +150 -0
- package/dist/flavors/eu/index.js +14 -141
- package/dist/flavors/evs/generated/substrate.d.ts +78 -0
- package/dist/flavors/evs/generated/substrate.js +105 -0
- package/dist/flavors/evs/grammar.worker.d.ts +6 -0
- package/dist/flavors/evs/grammar.worker.js +98 -0
- package/dist/flavors/evs/implementation.d.ts +7 -0
- package/dist/flavors/evs/implementation.js +114 -0
- package/dist/flavors/evs/index.d.ts +1 -1
- package/dist/flavors/evs/index.js +14 -89
- package/dist/flavors/evs/worker.js +10 -4
- package/dist/flavors/gb/generated/substrate.d.ts +75 -0
- package/dist/flavors/gb/generated/substrate.js +102 -0
- package/dist/flavors/gb/grammar.worker.d.ts +6 -0
- package/dist/flavors/gb/grammar.worker.js +73 -0
- package/dist/flavors/gb/implementation.d.ts +6 -0
- package/dist/flavors/gb/implementation.js +87 -0
- package/dist/flavors/gb/index.d.ts +1 -29
- package/dist/flavors/gb/index.js +15 -157
- package/dist/flavors/gb/model.d.ts +36 -0
- package/dist/flavors/gb/model.js +79 -0
- package/dist/flavors/gost/generated/substrate.d.ts +78 -0
- package/dist/flavors/gost/generated/substrate.js +105 -0
- package/dist/flavors/gost/grammar.worker.d.ts +6 -0
- package/dist/flavors/gost/grammar.worker.js +82 -0
- package/dist/flavors/gost/implementation.d.ts +7 -0
- package/dist/flavors/gost/implementation.js +177 -0
- package/dist/flavors/gost/index.js +14 -162
- package/dist/flavors/gost/worker.js +12 -5
- package/dist/flavors/iala/generated/substrate.d.ts +78 -0
- package/dist/flavors/iala/generated/substrate.js +105 -0
- package/dist/flavors/iala/grammar.worker.d.ts +6 -0
- package/dist/flavors/iala/grammar.worker.js +127 -0
- package/dist/flavors/iala/implementation.d.ts +6 -0
- package/dist/flavors/iala/implementation.js +250 -0
- package/dist/flavors/iala/index.d.ts +1 -56
- package/dist/flavors/iala/index.js +17 -484
- package/dist/flavors/iala/model.d.ts +93 -0
- package/dist/flavors/iala/model.js +194 -0
- package/dist/flavors/iana/generated/substrate.d.ts +75 -0
- package/dist/flavors/iana/generated/substrate.js +102 -0
- package/dist/flavors/iana/grammar.worker.d.ts +6 -0
- package/dist/flavors/iana/grammar.worker.js +51 -0
- package/dist/flavors/iana/implementation.d.ts +6 -0
- package/dist/flavors/iana/implementation.js +47 -0
- package/dist/flavors/iana/index.d.ts +1 -17
- package/dist/flavors/iana/index.js +15 -69
- package/dist/flavors/iana/model.d.ts +22 -0
- package/dist/flavors/iana/model.js +33 -0
- package/dist/flavors/idf/generated/substrate.d.ts +78 -0
- package/dist/flavors/idf/generated/substrate.js +105 -0
- package/dist/flavors/idf/grammar.worker.d.ts +6 -0
- package/dist/flavors/idf/{grammar.js → grammar.worker.js} +58 -2
- package/dist/flavors/idf/implementation.d.ts +6 -0
- package/dist/flavors/idf/implementation.js +129 -0
- package/dist/flavors/idf/index.js +14 -98
- package/dist/flavors/iec/generated/substrate.d.ts +78 -0
- package/dist/flavors/iec/generated/substrate.js +105 -0
- package/dist/flavors/iec/grammar.worker.d.ts +6 -0
- package/dist/flavors/iec/grammar.worker.js +231 -0
- package/dist/flavors/iec/implementation.d.ts +15 -0
- package/dist/flavors/iec/implementation.js +956 -0
- package/dist/flavors/iec/index.d.ts +1 -2
- package/dist/flavors/iec/index.js +16 -869
- package/dist/flavors/iec/model.js +13 -1
- package/dist/flavors/iec/worker.d.ts +2 -0
- package/dist/flavors/iec/worker.js +19 -0
- package/dist/flavors/ieee/generated/substrate.d.ts +78 -0
- package/dist/flavors/ieee/generated/substrate.js +105 -0
- package/dist/flavors/ieee/implementation.d.ts +4 -0
- package/dist/flavors/ieee/implementation.js +48 -10
- package/dist/flavors/ieee/index.d.ts +3 -2
- package/dist/flavors/ieee/index.js +30 -12
- package/dist/flavors/ieee/model.js +17 -4
- package/dist/flavors/ieee/preprocessor.js +11 -10
- package/dist/flavors/ieee/worker.js +33 -11
- package/dist/flavors/ietf/generated/substrate.d.ts +75 -0
- package/dist/flavors/ietf/generated/substrate.js +102 -0
- package/dist/flavors/ietf/grammar.worker.d.ts +6 -0
- package/dist/flavors/ietf/grammar.worker.js +63 -0
- package/dist/flavors/ietf/implementation.d.ts +6 -0
- package/dist/flavors/ietf/implementation.js +60 -0
- package/dist/flavors/ietf/index.d.ts +1 -28
- package/dist/flavors/ietf/index.js +15 -149
- package/dist/flavors/ietf/model.d.ts +47 -0
- package/dist/flavors/ietf/model.js +92 -0
- package/dist/flavors/iho/generated/substrate.d.ts +78 -0
- package/dist/flavors/iho/generated/substrate.js +105 -0
- package/dist/flavors/iho/grammar.worker.d.ts +6 -0
- package/dist/flavors/iho/grammar.worker.js +150 -0
- package/dist/flavors/iho/implementation.d.ts +6 -0
- package/dist/flavors/iho/implementation.js +221 -0
- package/dist/flavors/iho/index.d.ts +1 -2
- package/dist/flavors/iho/index.js +15 -619
- package/dist/flavors/iho/model.d.ts +11 -0
- package/dist/flavors/iho/model.js +315 -0
- package/dist/flavors/index.js +3 -0
- package/dist/flavors/iso/generated/substrate.d.ts +93 -0
- package/dist/flavors/iso/generated/substrate.js +133 -0
- package/dist/flavors/iso/grammar.worker.d.ts +7 -0
- package/dist/flavors/iso/grammar.worker.js +406 -0
- package/dist/flavors/iso/implementation.d.ts +4 -0
- package/dist/flavors/iso/implementation.js +880 -0
- package/dist/flavors/iso/index.js +16 -706
- package/dist/flavors/iso/model.js +21 -2
- package/dist/flavors/iso/worker.d.ts +2 -0
- package/dist/flavors/iso/worker.js +19 -0
- package/dist/flavors/itu/generated/substrate.d.ts +78 -0
- package/dist/flavors/itu/generated/substrate.js +105 -0
- package/dist/flavors/itu/grammar.worker.d.ts +6 -0
- package/dist/flavors/itu/grammar.worker.js +306 -0
- package/dist/flavors/itu/implementation.d.ts +10 -0
- package/dist/flavors/itu/implementation.js +285 -0
- package/dist/flavors/itu/index.js +15 -246
- package/dist/flavors/itu/worker.d.ts +2 -0
- package/dist/flavors/itu/worker.js +19 -0
- package/dist/flavors/jcgm/generated/substrate.d.ts +78 -0
- package/dist/flavors/jcgm/generated/substrate.js +105 -0
- package/dist/flavors/jcgm/grammar.worker.d.ts +6 -0
- package/dist/flavors/jcgm/grammar.worker.js +98 -0
- package/dist/flavors/jcgm/implementation.d.ts +6 -0
- package/dist/flavors/jcgm/implementation.js +187 -0
- package/dist/flavors/jcgm/index.d.ts +1 -5
- package/dist/flavors/jcgm/index.js +16 -364
- package/dist/flavors/jcgm/model.d.ts +43 -0
- package/dist/flavors/jcgm/model.js +168 -0
- package/dist/flavors/jis/generated/substrate.d.ts +78 -0
- package/dist/flavors/jis/generated/substrate.js +105 -0
- package/dist/flavors/jis/grammar.worker.d.ts +6 -0
- package/dist/flavors/jis/grammar.worker.js +132 -0
- package/dist/flavors/jis/implementation.d.ts +6 -0
- package/dist/flavors/jis/implementation.js +129 -0
- package/dist/flavors/jis/index.d.ts +0 -2
- package/dist/flavors/jis/index.js +15 -390
- package/dist/flavors/jis/model.d.ts +30 -0
- package/dist/flavors/jis/model.js +205 -0
- package/dist/flavors/jis/worker.d.ts +2 -0
- package/dist/flavors/jis/worker.js +19 -0
- package/dist/flavors/nist/generated/substrate.d.ts +78 -0
- package/dist/flavors/nist/generated/substrate.js +105 -0
- package/dist/flavors/nist/index.js +18 -11
- package/dist/flavors/nist/worker.js +8 -4
- package/dist/flavors/oasis/generated/substrate.d.ts +75 -0
- package/dist/flavors/oasis/generated/substrate.js +102 -0
- package/dist/flavors/oasis/grammar.worker.d.ts +6 -0
- package/dist/flavors/oasis/grammar.worker.js +50 -0
- package/dist/flavors/oasis/implementation.d.ts +6 -0
- package/dist/flavors/oasis/implementation.js +80 -0
- package/dist/flavors/oasis/index.d.ts +1 -21
- package/dist/flavors/oasis/index.js +16 -108
- package/dist/flavors/oasis/model.d.ts +27 -0
- package/dist/flavors/oasis/model.js +34 -0
- package/dist/flavors/ogc/generated/substrate.d.ts +75 -0
- package/dist/flavors/ogc/generated/substrate.js +102 -0
- package/dist/flavors/ogc/grammar.worker.d.ts +6 -0
- package/dist/flavors/ogc/grammar.worker.js +55 -0
- package/dist/flavors/ogc/implementation.d.ts +6 -0
- package/dist/flavors/ogc/implementation.js +49 -0
- package/dist/flavors/ogc/index.d.ts +1 -18
- package/dist/flavors/ogc/index.js +15 -73
- package/dist/flavors/ogc/model.d.ts +23 -0
- package/dist/flavors/ogc/model.js +32 -0
- package/dist/flavors/oiml/generated/substrate.d.ts +78 -0
- package/dist/flavors/oiml/generated/substrate.js +105 -0
- package/dist/flavors/oiml/grammar.worker.d.ts +6 -0
- package/dist/flavors/oiml/grammar.worker.js +239 -0
- package/dist/flavors/oiml/implementation.d.ts +2 -1
- package/dist/flavors/oiml/implementation.js +16 -7
- package/dist/flavors/oiml/index.js +15 -6
- package/dist/flavors/oiml/model.js +19 -19
- package/dist/flavors/oiml/worker.js +14 -6
- package/dist/flavors/omg/generated/substrate.d.ts +78 -0
- package/dist/flavors/omg/generated/substrate.js +105 -0
- package/dist/flavors/omg/grammar.worker.d.ts +6 -0
- package/dist/flavors/omg/grammar.worker.js +64 -0
- package/dist/flavors/omg/implementation.d.ts +7 -0
- package/dist/flavors/omg/implementation.js +33 -0
- package/dist/flavors/omg/index.d.ts +1 -12
- package/dist/flavors/omg/index.js +15 -71
- package/dist/flavors/omg/model.d.ts +16 -0
- package/dist/flavors/omg/model.js +26 -0
- package/dist/flavors/plateau/generated/substrate.d.ts +78 -0
- package/dist/flavors/plateau/generated/substrate.js +105 -0
- package/dist/flavors/plateau/grammar.worker.d.ts +6 -0
- package/dist/flavors/plateau/grammar.worker.js +78 -0
- package/dist/flavors/plateau/implementation.d.ts +6 -0
- package/dist/flavors/plateau/implementation.js +74 -0
- package/dist/flavors/plateau/index.d.ts +1 -2
- package/dist/flavors/plateau/index.js +18 -114
- package/dist/flavors/plateau/model.d.ts +11 -0
- package/dist/flavors/plateau/model.js +51 -0
- package/dist/flavors/register-types.d.ts +20 -19
- package/dist/flavors/register-types.js +44 -19
- package/dist/flavors/sae/generated/substrate.d.ts +75 -0
- package/dist/flavors/sae/generated/substrate.js +102 -0
- package/dist/flavors/sae/grammar.worker.d.ts +6 -0
- package/dist/flavors/sae/grammar.worker.js +84 -0
- package/dist/flavors/sae/implementation.d.ts +11 -0
- package/dist/flavors/sae/implementation.js +109 -0
- package/dist/flavors/sae/index.d.ts +3 -0
- package/dist/flavors/sae/index.js +19 -0
- package/dist/flavors/sae/model.d.ts +86 -0
- package/dist/flavors/sae/model.js +185 -0
- package/dist/flavors/tgpp/generated/substrate.d.ts +78 -0
- package/dist/flavors/tgpp/generated/substrate.js +105 -0
- package/dist/flavors/tgpp/grammar.worker.d.ts +6 -0
- package/dist/flavors/tgpp/grammar.worker.js +69 -0
- package/dist/flavors/tgpp/implementation.d.ts +8 -0
- package/dist/flavors/tgpp/implementation.js +56 -0
- package/dist/flavors/tgpp/index.d.ts +1 -2
- package/dist/flavors/tgpp/index.js +15 -120
- package/dist/flavors/tgpp/model.d.ts +13 -0
- package/dist/flavors/tgpp/model.js +52 -0
- package/dist/flavors/w3c/generated/substrate.d.ts +78 -0
- package/dist/flavors/w3c/generated/substrate.js +105 -0
- package/dist/flavors/w3c/grammar.worker.d.ts +6 -0
- package/dist/flavors/w3c/grammar.worker.js +55 -0
- package/dist/flavors/w3c/implementation.d.ts +7 -0
- package/dist/flavors/w3c/implementation.js +49 -0
- package/dist/flavors/w3c/index.d.ts +1 -12
- package/dist/flavors/w3c/index.js +15 -146
- package/dist/flavors/w3c/model.d.ts +15 -0
- package/dist/flavors/w3c/model.js +103 -0
- package/dist/flavors/wmo/generated/substrate.d.ts +78 -0
- package/dist/flavors/wmo/generated/substrate.js +105 -0
- package/dist/flavors/wmo/implementation.d.ts +5 -0
- package/dist/flavors/wmo/implementation.js +79 -0
- package/dist/flavors/wmo/index.js +14 -68
- package/dist/flavors/worker-registry.js +246 -68
- package/dist/flavors/xsf/generated/substrate.d.ts +75 -0
- package/dist/flavors/xsf/generated/substrate.js +102 -0
- package/dist/flavors/xsf/grammar.worker.d.ts +6 -0
- package/dist/flavors/xsf/grammar.worker.js +53 -0
- package/dist/flavors/xsf/implementation.d.ts +6 -0
- package/dist/flavors/xsf/implementation.js +34 -0
- package/dist/flavors/xsf/index.d.ts +1 -16
- package/dist/flavors/xsf/index.js +16 -63
- package/dist/flavors/xsf/model.d.ts +20 -0
- package/dist/flavors/xsf/model.js +26 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/lane-keys.d.ts +68 -0
- package/dist/lane-keys.js +113 -0
- package/dist/model/identifier.d.ts +13 -1
- package/dist/model/identifier.js +76 -13
- package/dist/model/relation.d.ts +36 -0
- package/dist/model/relation.js +93 -0
- package/dist/parg/artifacts/ieee.d.ts +1 -1
- package/dist/parg/artifacts/ieee.js +1 -1
- package/dist/parg/worker.d.ts +4 -2
- package/dist/parg/worker.js +5 -3
- package/dist/parse-surface.d.ts +3 -31
- package/dist/parse-surface.js +6 -69
- package/dist/pubid-urn/decoder.d.ts +8 -0
- package/dist/pubid-urn/decoder.js +43 -0
- package/dist/pubid-urn/encoder.js +31 -0
- package/dist/pubid-urn/schema.d.ts +1 -1
- package/dist/pubid-urn/schema.js +1 -1
- package/dist/pubid-urn/schemas/bsi.js +1 -0
- package/dist/pubid-urn/schemas/bsi_pfs.js +9 -7
- package/dist/pubid-urn/schemas/cen_pfs.js +1 -0
- package/dist/pubid-urn/schemas/cencenelec.js +1 -0
- package/dist/pubid-urn/schemas/iec.js +1 -0
- package/dist/pubid-urn/schemas/ieee.js +1 -0
- package/dist/pubid-urn/schemas/iso.js +1 -0
- package/package.json +1 -1
- package/vendor/parg/bsi_pfs.json +1 -1
- package/vendor/parg/calconnect_pfs.json +1 -1
- package/vendor/parg/cen_pfs.json +1 -1
- package/vendor/parg/doi_pfs.json +1 -1
- package/vendor/parg/etsi_pfs.json +1 -1
- package/vendor/parg/ieee.json +1 -1
- package/vendor/parg/iho.json +1 -1
- package/vendor/parg/plateau.json +1 -1
- package/dist/flavors/api/grammar.d.ts +0 -4
- package/dist/flavors/ashrae/grammar.d.ts +0 -2
- package/dist/flavors/asme/grammar.d.ts +0 -2
- package/dist/flavors/astm/grammar.d.ts +0 -2
- package/dist/flavors/bsi/grammar.d.ts +0 -4
- package/dist/flavors/cen_cenelec/grammar.d.ts +0 -4
- package/dist/flavors/cie/grammar.d.ts +0 -5
- package/dist/flavors/csa/grammar.d.ts +0 -6
- package/dist/flavors/evs/grammar.d.ts +0 -2
- package/dist/flavors/evs/grammar.js +0 -68
- package/dist/flavors/gost/grammar.d.ts +0 -2
- package/dist/flavors/gost/grammar.js +0 -46
- package/dist/flavors/idf/grammar.d.ts +0 -2
- package/dist/flavors/iec/grammar.d.ts +0 -3
- package/dist/flavors/iec/grammar.js +0 -234
- package/dist/flavors/ieee/grammar.d.ts +0 -2
- package/dist/flavors/ieee/grammar.js +0 -777
- package/dist/flavors/iso/grammar.d.ts +0 -7
- package/dist/flavors/iso/grammar.js +0 -282
- package/dist/flavors/itu/grammar.d.ts +0 -4
- package/dist/flavors/itu/grammar.js +0 -276
- package/dist/flavors/nist/grammar.d.ts +0 -2
- package/dist/flavors/nist/grammar.js +0 -342
- package/dist/flavors/oiml/grammar.d.ts +0 -2
- package/dist/flavors/oiml/grammar.js +0 -206
- package/vendor/parg/csv.json +0 -1
- package/vendor/parg/ini.json +0 -1
- package/vendor/parg/json.json +0 -1
- package/vendor/parg/lua.json +0 -1
- package/vendor/parg/toml.json +0 -1
package/vendor/parg/json.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"bindings":null,"version":"1.0.0","grammar":"Json","shape":"parsanol-tree/v2","binding_version":1,"entries":{"main":{"root":"json","grammar":{"atoms":[{"Entity":{"atom":6}},{"Re":{"pattern":"[ ]"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Alternative":{"atoms":[1,2,3,4]}},{"Repetition":{"atom":5,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":111}},{"Entity":{"atom":110}},{"Str":{"pattern":"{"}},{"Entity":{"atom":6}},{"Entity":{"atom":98}},{"Entity":{"atom":39}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[ !]"}},{"Re":{"pattern":"[\\x23-\\x5b]"}},{"Re":{"pattern":"[\\x5d-\\u{10ffff}]"}},{"Re":{"pattern":"[\\\\]"}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[\\\\]"}},{"Re":{"pattern":"[/]"}},{"Re":{"pattern":"[b]"}},{"Re":{"pattern":"[f]"}},{"Re":{"pattern":"[n]"}},{"Re":{"pattern":"[r]"}},{"Re":{"pattern":"[t]"}},{"Re":{"pattern":"[u]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x46]"}},{"Re":{"pattern":"[\\x61-\\x66]"}},{"Alternative":{"atoms":[27,28,29]}},{"Repetition":{"atom":30,"min":4,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[26,31]}},{"Alternative":{"atoms":[18,19,20,21,22,23,24,25,32]}},{"Sequence":{"atoms":[17,33]}},{"Alternative":{"atoms":[14,15,16,34]}},{"Repetition":{"atom":35,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\"]"}},{"Sequence":{"atoms":[13,36,37]}},{"Named":{"name":"string","atom":38}},{"Entity":{"atom":6}},{"Str":{"pattern":":"}},{"Entity":{"atom":6}},{"Entity":{"atom":96}},{"Entity":{"atom":95}},{"Str":{"pattern":"["}},{"Entity":{"atom":6}},{"Entity":{"atom":83}},{"Entity":{"atom":39}},{"Entity":{"atom":79}},{"Re":{"pattern":"[\\-]"}},{"Repetition":{"atom":50,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":59}},{"Re":{"pattern":"[0]"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Entity":{"atom":56}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":55,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[54,57]}},{"Alternative":{"atoms":[53,58]}},{"Entity":{"atom":64}},{"Re":{"pattern":"[.]"}},{"Entity":{"atom":56}},{"Repetition":{"atom":62,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[61,63]}},{"Repetition":{"atom":60,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":76}},{"Re":{"pattern":"[e]"}},{"Re":{"pattern":"[E]"}},{"Alternative":{"atoms":[67,68]}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[70,71]}},{"Repetition":{"atom":72,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":56}},{"Repetition":{"atom":74,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[69,73,75]}},{"Repetition":{"atom":66,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[51,52,65,77]}},{"Named":{"name":"number","atom":78}},{"Re":{"pattern":"(?i:true)"}},{"Re":{"pattern":"(?i:false)"}},{"Re":{"pattern":"(?i:null)"}},{"Alternative":{"atoms":[8,44,48,49,80,81,82]}},{"Entity":{"atom":6}},{"Str":{"pattern":","}},{"Entity":{"atom":6}},{"Entity":{"atom":83}},{"Sequence":{"atoms":[84,85,86,87]}},{"Repetition":{"atom":88,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[47,89]}},{"Repetition":{"atom":90,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[45,46,91,92,93]}},{"Named":{"name":"array","atom":94}},{"Alternative":{"atoms":[8,44,48,49,80,81,82]}},{"Sequence":{"atoms":[12,40,41,42,43]}},{"Named":{"name":"member","atom":97}},{"Entity":{"atom":6}},{"Str":{"pattern":","}},{"Entity":{"atom":6}},{"Entity":{"atom":98}},{"Sequence":{"atoms":[99,100,101,102]}},{"Repetition":{"atom":103,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[11,104]}},{"Repetition":{"atom":105,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":6}},{"Str":{"pattern":"}"}},{"Sequence":{"atoms":[9,10,106,107,108]}},{"Named":{"name":"object","atom":109}},{"Alternative":{"atoms":[8,44,48,49,80,81,82]}},{"Entity":{"atom":6}},{"Sequence":{"atoms":[0,7,112]}}],"root":113},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":[]},"default_entry":"main","render":{},"derive":{},"tests":[{"entry":"main","kind":"accept","input":"{}","expect":{}},{"entry":"main","kind":"accept","input":"[]","expect":{}},{"entry":"main","kind":"accept","input":"{\"a\": 1}","expect":{}},{"entry":"main","kind":"accept","input":"{\"a\": [1, true, null], \"b\": \"x\\nA\"}","expect":{}},{"entry":"main","kind":"accept","input":"[[[[[1]]]]]","expect":{}},{"entry":"main","kind":"accept","input":"-0.5e10","expect":{}},{"entry":"main","kind":"accept","input":"\"a\\tb\\\\c\\/d\"","expect":{}},{"entry":"main","kind":"accept","input":"\"A plain hex\"","expect":{}},{"entry":"main","kind":"accept","input":"{ \"nested\" : { \"deep\" : [ {\"x\" : 0} ] } }","expect":{}},{"entry":"main","kind":"reject","input":"{a: 1}","expect":{}},{"entry":"main","kind":"reject","input":"{'a': 1}","expect":{}},{"entry":"main","kind":"reject","input":"[1, 2,]","expect":{}},{"entry":"main","kind":"reject","input":"truex","expect":{}},{"entry":"main","kind":"reject","input":"01","expect":{}},{"entry":"main","kind":"reject","input":"+1","expect":{}},{"entry":"main","kind":"reject","input":"{\"a\": }","expect":{}},{"entry":"main","kind":"reject","input":"\"unterminated","expect":{}},{"entry":"main","kind":"reject","input":"{","expect":{}}],"docs":{"json":"A JSON text is a serialized value (RFC 8259 section 2: \"a JSON\ntext is a serialized value\"); parsers accept the value with\noptional surrounding whitespace.","string":"Strings (RFC 8259 section 7): the unescaped class excludes quote\nand backslash; the escape set is the nine two-char forms including\nthe u-hexquad.","number":"Numbers (RFC 8259 section 6): minus optional, int is zero or a\nnonzero-leading digit run, frac and exp optional."},"source":"# JSON (RFC 8259): the data-interchange grammar — the fleet's first\n# general-purpose data format flavor, and the shared corpus grammar for\n# the industry benchmark suite (parsanol-rs#526: every competitor engine\n# has a JSON grammar, so the comparison row is direct).\n#\n# Edition-2 notes: the object/array recursions are right-recursive\n# through their element lists (no left recursion). Whitespace is RFC ws\n# (space/tab/LF/CR), zero-or-more, handled positionally around the\n# structural tokens. The true/false/null faces are exact: the value\n# grammar's ordered choice plus the document-end anchor make \"truex\" a\n# reject without a trailing guard.\n\ngrammar Json version \"1.0.0\" edition 2 {\n ws = *( %x20 / %x09 / %x0A / %x0D )\n\n ## A JSON text is a serialized value (RFC 8259 section 2: \"a JSON\n ## text is a serialized value\"); parsers accept the value with\n ## optional surrounding whitespace.\n json = ws value ws\n\n value = object / array / string / number / %i\"true\" / %i\"false\" / %i\"null\"\n\n object = ( \"{\" ws [ member *( ws \",\" ws member ) ] ws \"}\" ) as object\n member = ( string ws \":\" ws value ) as member\n\n array = ( \"[\" ws [ value *( ws \",\" ws value ) ] ws \"]\" ) as array\n\n ## Strings (RFC 8259 section 7): the unescaped class excludes quote\n ## and backslash; the escape set is the nine two-char forms including\n ## the u-hexquad.\n string = ( %x22 *( %x20-21 / %x23-5B / %x5D-10FFFF / %x5C ( %x22 / %x5C / %x2F / %x62 / %x66 / %x6E / %x72 / %x74 / ( %x75 4*( %x30-39 / %x41-46 / %x61-66 ) ) ) ) %x22 ) as string\n\n ## Numbers (RFC 8259 section 6): minus optional, int is zero or a\n ## nonzero-leading digit run, frac and exp optional.\n number = ( [ %x2D ] int [ frac ] [ exp ] ) as number\n int = %x30 / ( %x31-39 *digit )\n frac = %x2E 1*digit\n exp = ( %x65 / %x45 ) [ %x2B / %x2D ] 1*digit\n digit = %x30-39\n\n ## Recovery (R2 declared resync): a corrupted value or member skips\n ## a deterministic junk run — every byte except the structural\n ## boundaries (quote, comma, close-bracket, close-brace) — and\n ## parsing resumes AT the boundary, so the enclosing list continues\n ## with its comma intact. The author owns the spans; no trial scan.\n resync value = 1*( %x00-21 / %x23-2B / %x2D-5C / %x5E-7C / %x7E-10FFFF )\n resync member = 1*( %x00-21 / %x23-2B / %x2D-5C / %x5E-7C / %x7E-10FFFF )\n\n entry main: json\n\n test {\n accept \"{}\"\n accept \"[]\"\n accept \"{\\\"a\\\": 1}\"\n accept \"{\\\"a\\\": [1, true, null], \\\"b\\\": \\\"x\\\\nA\\\"}\"\n accept \"[[[[[1]]]]]\"\n accept \"-0.5e10\"\n accept \"\\\"a\\\\tb\\\\\\\\c\\\\/d\\\"\"\n accept \"\\\"A plain hex\\\"\"\n accept \"{ \\\"nested\\\" : { \\\"deep\\\" : [ {\\\"x\\\" : 0} ] } }\"\n reject \"{a: 1}\"\n reject \"{'a': 1}\"\n reject \"[1, 2,]\"\n reject \"truex\"\n reject \"01\"\n reject \"+1\"\n reject \"{\\\"a\\\": }\"\n reject \"\\\"unterminated\"\n reject \"{\"\n }\n}\n","source_hash":"77903593f52c5db4d3ba2226b034e648aa0f14d9997f4f99261dfcfa08ec3d7a","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:604684b31fd1c7aad1a70beefa1f2cb42b44c15a39c1137f59093f1d83c45bba","checksum":"sha256:08f8287468d81cc0f8305174d21b4a33ebd502b35b9e179ee50bec3fa8607e98","validated":{"lint_errors":0,"lint_warnings":0,"tests_total":18,"tests_failures":0,"self_test":true}}
|
package/vendor/parg/lua.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"bindings":null,"version":"1.0.0","grammar":"Lua","shape":"parsanol-tree/v2","binding_version":1,"entries":{"main":{"root":"chunk","grammar":{"atoms":[{"Entity":{"atom":12}},{"Str":{"pattern":"--"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x20-\\u{10ffff}]"}},{"Alternative":{"atoms":[2,3]}},{"Repetition":{"atom":4,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Alternative":{"atoms":[7,8]}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,5,10]}},{"Named":{"name":"comment","atom":11}},{"Entity":{"atom":19}},{"Re":{"pattern":"[ ]"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Alternative":{"atoms":[14,15,16,17]}},{"Repetition":{"atom":18,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[0,13]}},{"Repetition":{"atom":20,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":19}},{"Entity":{"atom":548}},{"Entity":{"atom":545}},{"Entity":{"atom":26}},{"Re":{"pattern":"(?i:local)"}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":69}},{"Entity":{"atom":31}},{"Re":{"pattern":"(?i:and)"}},{"Entity":{"atom":33}},{"Re":{"pattern":"(?i:break)"}},{"Entity":{"atom":35}},{"Re":{"pattern":"(?i:do)"}},{"Entity":{"atom":37}},{"Re":{"pattern":"(?i:elseif)"}},{"Entity":{"atom":39}},{"Re":{"pattern":"(?i:else)"}},{"Entity":{"atom":41}},{"Re":{"pattern":"(?i:end)"}},{"Entity":{"atom":43}},{"Re":{"pattern":"(?i:false)"}},{"Entity":{"atom":45}},{"Re":{"pattern":"(?i:for)"}},{"Entity":{"atom":47}},{"Re":{"pattern":"(?i:function)"}},{"Entity":{"atom":49}},{"Re":{"pattern":"(?i:if)"}},{"Entity":{"atom":51}},{"Re":{"pattern":"(?i:in)"}},{"Entity":{"atom":26}},{"Entity":{"atom":54}},{"Re":{"pattern":"(?i:nil)"}},{"Entity":{"atom":56}},{"Re":{"pattern":"(?i:not)"}},{"Entity":{"atom":58}},{"Re":{"pattern":"(?i:or)"}},{"Entity":{"atom":60}},{"Re":{"pattern":"(?i:repeat)"}},{"Entity":{"atom":62}},{"Re":{"pattern":"(?i:return)"}},{"Entity":{"atom":64}},{"Re":{"pattern":"(?i:then)"}},{"Entity":{"atom":66}},{"Re":{"pattern":"(?i:true)"}},{"Entity":{"atom":68}},{"Re":{"pattern":"(?i:while)"}},{"Alternative":{"atoms":[30,32,34,36,38,40,42,44,46,48,50,52,53,55,57,59,61,63,65,67]}},{"Entity":{"atom":75}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[_]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[71,72,73,74]}},{"Lookahead":{"atom":70,"positive":false}},{"Sequence":{"atoms":[29,76]}},{"Lookahead":{"atom":77,"positive":false}},{"Entity":{"atom":87}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[_]"}},{"Alternative":{"atoms":[80,81,82]}},{"Entity":{"atom":75}},{"Repetition":{"atom":84,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[83,85]}},{"Named":{"name":"nametrain","atom":86}},{"Sequence":{"atoms":[78,79]}},{"Named":{"name":"name","atom":88}},{"Entity":{"atom":19}},{"Str":{"pattern":"="}},{"Entity":{"atom":19}},{"Entity":{"atom":542}},{"Entity":{"atom":541}},{"Entity":{"atom":534}},{"Entity":{"atom":527}},{"Entity":{"atom":514}},{"Entity":{"atom":507}},{"Entity":{"atom":498}},{"Entity":{"atom":488}},{"Re":{"pattern":"(?i:not)"}},{"Entity":{"atom":75}},{"Lookahead":{"atom":102,"positive":false}},{"Sequence":{"atoms":[101,103]}},{"Str":{"pattern":"#"}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[104,105,106]}},{"Entity":{"atom":19}},{"Sequence":{"atoms":[107,108]}},{"Repetition":{"atom":109,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":487}},{"Entity":{"atom":461}},{"Re":{"pattern":"(?i:nil)"}},{"Entity":{"atom":75}},{"Lookahead":{"atom":114,"positive":false}},{"Sequence":{"atoms":[113,115]}},{"Re":{"pattern":"(?i:true)"}},{"Entity":{"atom":75}},{"Lookahead":{"atom":118,"positive":false}},{"Sequence":{"atoms":[117,119]}},{"Re":{"pattern":"(?i:false)"}},{"Entity":{"atom":75}},{"Lookahead":{"atom":122,"positive":false}},{"Sequence":{"atoms":[121,123]}},{"Entity":{"atom":161}},{"Re":{"pattern":"[0]"}},{"Re":{"pattern":"[x]"}},{"Re":{"pattern":"[X]"}},{"Alternative":{"atoms":[127,128]}},{"Entity":{"atom":134}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x46]"}},{"Re":{"pattern":"[\\x61-\\x66]"}},{"Alternative":{"atoms":[131,132,133]}},{"Repetition":{"atom":130,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[126,129,135]}},{"Entity":{"atom":138}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Entity":{"atom":138}},{"Repetition":{"atom":139,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Entity":{"atom":138}},{"Repetition":{"atom":142,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[141,143]}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[e]"}},{"Re":{"pattern":"[E]"}},{"Alternative":{"atoms":[146,147]}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[149,150]}},{"Repetition":{"atom":151,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":138}},{"Repetition":{"atom":153,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[148,152,154]}},{"Repetition":{"atom":155,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[140,145,156]}},{"Repetition":{"atom":157,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[137,158]}},{"Alternative":{"atoms":[136,159]}},{"Named":{"name":"number","atom":160}},{"Entity":{"atom":186}},{"Re":{"pattern":"[\"]"}},{"Str":{"pattern":"\\"}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Sequence":{"atoms":[164,165]}},{"Re":{"pattern":"[ !]"}},{"Re":{"pattern":"[\\x23-\\x5b]"}},{"Re":{"pattern":"[\\x5d-\\u{10ffff}]"}},{"Alternative":{"atoms":[166,167,168,169]}},{"Repetition":{"atom":170,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\"]"}},{"Sequence":{"atoms":[163,171,172]}},{"Re":{"pattern":"[']"}},{"Str":{"pattern":"\\"}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Sequence":{"atoms":[175,176]}},{"Re":{"pattern":"[\\x20-\\x26]"}},{"Re":{"pattern":"[\\x28-\\x5b]"}},{"Re":{"pattern":"[\\x5d-\\u{10ffff}]"}},{"Alternative":{"atoms":[177,178,179,180]}},{"Repetition":{"atom":181,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[']"}},{"Sequence":{"atoms":[174,182,183]}},{"Alternative":{"atoms":[173,184]}},{"Named":{"name":"short_string","atom":185}},{"Entity":{"atom":195}},{"Str":{"pattern":"[["}},{"Re":{"pattern":"[\\x00-\\x5c]"}},{"Re":{"pattern":"[\\x5e-\\u{10ffff}]"}},{"Alternative":{"atoms":[189,190]}},{"Repetition":{"atom":191,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"]]"}},{"Sequence":{"atoms":[188,192,193]}},{"Named":{"name":"long_bracket","atom":194}},{"Entity":{"atom":457}},{"Entity":{"atom":47}},{"Entity":{"atom":19}},{"Entity":{"atom":455}},{"Str":{"pattern":"("}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Str":{"pattern":","}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Sequence":{"atoms":[203,204,205,206]}},{"Repetition":{"atom":207,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[202,208]}},{"Repetition":{"atom":209,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Str":{"pattern":")"}},{"Entity":{"atom":19}},{"Entity":{"atom":453}},{"Re":{"pattern":"[ ]"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Entity":{"atom":12}},{"Alternative":{"atoms":[215,216,217,218,219]}},{"Repetition":{"atom":220,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[24,221]}},{"Repetition":{"atom":222,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":451}},{"Sequence":{"atoms":[25,27,28,90,91,92,93]}},{"Entity":{"atom":47}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Entity":{"atom":233}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[200,201,210,211,212,213,214,231]}},{"Named":{"name":"function_body","atom":232}},{"Sequence":{"atoms":[226,227,228,229,230]}},{"Entity":{"atom":278}},{"Entity":{"atom":49}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Named":{"name":"exp","atom":94}},{"Entity":{"atom":19}},{"Entity":{"atom":64}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Repetition":{"atom":224,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":254}},{"Entity":{"atom":62}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Sequence":{"atoms":[247,248]}},{"Repetition":{"atom":249,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[246,250]}},{"Entity":{"atom":33}},{"Alternative":{"atoms":[251,252]}},{"Named":{"name":"last_statement","atom":253}},{"Entity":{"atom":19}},{"Sequence":{"atoms":[245,255]}},{"Repetition":{"atom":256,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[223,244,257]}},{"Entity":{"atom":19}},{"Entity":{"atom":37}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Entity":{"atom":64}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Sequence":{"atoms":[259,260,261,262,263,264,265,266]}},{"Repetition":{"atom":267,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":19}},{"Entity":{"atom":39}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Sequence":{"atoms":[269,270,271,272]}},{"Repetition":{"atom":273,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[236,237,238,240,241,242,243,268,274,275,276]}},{"Named":{"name":"if_block","atom":277}},{"Entity":{"atom":289}},{"Entity":{"atom":68}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Entity":{"atom":35}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[280,281,282,283,284,285,286,287]}},{"Named":{"name":"while_block","atom":288}},{"Entity":{"atom":314}},{"Entity":{"atom":45}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Str":{"pattern":"="}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Str":{"pattern":","}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Str":{"pattern":","}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Sequence":{"atoms":[302,303,304,305]}},{"Repetition":{"atom":306,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Entity":{"atom":35}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[291,292,293,294,295,296,297,298,299,300,301,307,308,309,310,311,312]}},{"Named":{"name":"numeric_for","atom":313}},{"Entity":{"atom":333}},{"Entity":{"atom":45}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Str":{"pattern":","}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Entity":{"atom":51}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Entity":{"atom":35}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331]}},{"Named":{"name":"generic_for","atom":332}},{"Entity":{"atom":35}},{"Entity":{"atom":19}},{"Entity":{"atom":258}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[334,335,336,337]}},{"Entity":{"atom":359}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Entity":{"atom":356}},{"Entity":{"atom":19}},{"Str":{"pattern":"."}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Sequence":{"atoms":[343,344,345,346]}},{"Entity":{"atom":19}},{"Str":{"pattern":"["}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[348,349,350,351,352,353]}},{"Alternative":{"atoms":[347,354]}},{"Named":{"name":"suffix_member","atom":355}},{"Repetition":{"atom":342,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[340,341,357]}},{"Named":{"name":"var","atom":358}},{"Entity":{"atom":19}},{"Str":{"pattern":"="}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Sequence":{"atoms":[339,360,361,362,363]}},{"Entity":{"atom":449}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Entity":{"atom":356}},{"Repetition":{"atom":368,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":19}},{"Entity":{"atom":442}},{"Entity":{"atom":19}},{"Str":{"pattern":":"}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Entity":{"atom":436}},{"Str":{"pattern":"("}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Str":{"pattern":","}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Sequence":{"atoms":[381,382,383,384]}},{"Repetition":{"atom":385,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[380,386]}},{"Repetition":{"atom":387,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[378,379,388,389,390]}},{"Entity":{"atom":432}},{"Str":{"pattern":"{"}},{"Entity":{"atom":19}},{"Entity":{"atom":414}},{"Str":{"pattern":"["}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Str":{"pattern":"]"}},{"Entity":{"atom":19}},{"Str":{"pattern":"="}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Sequence":{"atoms":[396,397,398,399,400,401,402,403,404]}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Str":{"pattern":"="}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Sequence":{"atoms":[406,407,408,409,410]}},{"Entity":{"atom":239}},{"Alternative":{"atoms":[405,411,412]}},{"Named":{"name":"field","atom":413}},{"Entity":{"atom":19}},{"Entity":{"atom":419}},{"Str":{"pattern":","}},{"Str":{"pattern":";"}},{"Alternative":{"atoms":[417,418]}},{"Entity":{"atom":19}},{"Entity":{"atom":414}},{"Sequence":{"atoms":[415,416,420,421]}},{"Repetition":{"atom":422,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":19}},{"Entity":{"atom":419}},{"Repetition":{"atom":425,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[395,423,424,426]}},{"Repetition":{"atom":427,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Str":{"pattern":"}"}},{"Sequence":{"atoms":[393,394,428,429,430]}},{"Named":{"name":"tablector","atom":431}},{"Entity":{"atom":186}},{"Entity":{"atom":195}},{"Alternative":{"atoms":[391,392,433,434]}},{"Named":{"name":"args","atom":435}},{"Sequence":{"atoms":[372,373,374,375,376,377]}},{"Entity":{"atom":19}},{"Entity":{"atom":436}},{"Sequence":{"atoms":[438,439]}},{"Alternative":{"atoms":[437,440]}},{"Named":{"name":"suffix_call","atom":441}},{"Entity":{"atom":19}},{"Entity":{"atom":356}},{"Entity":{"atom":442}},{"Alternative":{"atoms":[444,445]}},{"Repetition":{"atom":446,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[366,367,369,370,371,443,447]}},{"Named":{"name":"call_statement","atom":448}},{"Alternative":{"atoms":[225,234,235,279,290,315,338,364,365]}},{"Named":{"name":"statement","atom":450}},{"Repetition":{"atom":224,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[223,452,257]}},{"Sequence":{"atoms":[200,201,210,211,212,213,214,231]}},{"Named":{"name":"function_body","atom":454}},{"Sequence":{"atoms":[197,198,199]}},{"Named":{"name":"function_def","atom":456}},{"Entity":{"atom":432}},{"Entity":{"atom":89}},{"Alternative":{"atoms":[116,120,124,125,162,187,196,458,459]}},{"Named":{"name":"simple_e","atom":460}},{"Entity":{"atom":19}},{"Str":{"pattern":"."}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Sequence":{"atoms":[463,464,465]}},{"Str":{"pattern":"["}},{"Entity":{"atom":19}},{"Entity":{"atom":239}},{"Entity":{"atom":19}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[467,468,469,470,471]}},{"Entity":{"atom":19}},{"Str":{"pattern":":"}},{"Entity":{"atom":19}},{"Entity":{"atom":89}},{"Entity":{"atom":19}},{"Entity":{"atom":436}},{"Sequence":{"atoms":[473,474,475,476,477,478]}},{"Entity":{"atom":19}},{"Entity":{"atom":436}},{"Sequence":{"atoms":[480,481]}},{"Alternative":{"atoms":[466,472,479,482]}},{"Sequence":{"atoms":[462,483]}},{"Repetition":{"atom":484,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[112,485]}},{"Named":{"name":"postfix_e","atom":486}},{"Sequence":{"atoms":[110,111]}},{"Entity":{"atom":19}},{"Str":{"pattern":"*"}},{"Str":{"pattern":"/"}},{"Str":{"pattern":"%%"}},{"Alternative":{"atoms":[490,491,492]}},{"Entity":{"atom":19}},{"Entity":{"atom":488}},{"Sequence":{"atoms":[489,493,494,495]}},{"Repetition":{"atom":496,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[100,497]}},{"Entity":{"atom":19}},{"Str":{"pattern":"+"}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[500,501]}},{"Entity":{"atom":19}},{"Entity":{"atom":498}},{"Sequence":{"atoms":[499,502,503,504]}},{"Repetition":{"atom":505,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[99,506]}},{"Entity":{"atom":19}},{"Str":{"pattern":".."}},{"Entity":{"atom":19}},{"Entity":{"atom":507}},{"Sequence":{"atoms":[508,509,510,511]}},{"Repetition":{"atom":512,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[98,513]}},{"Entity":{"atom":19}},{"Str":{"pattern":"=="}},{"Str":{"pattern":"~="}},{"Str":{"pattern":"<="}},{"Str":{"pattern":">="}},{"Str":{"pattern":"<"}},{"Str":{"pattern":">"}},{"Alternative":{"atoms":[516,517,518,519,520,521]}},{"Entity":{"atom":19}},{"Entity":{"atom":514}},{"Sequence":{"atoms":[515,522,523,524]}},{"Repetition":{"atom":525,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[97,526]}},{"Entity":{"atom":19}},{"Entity":{"atom":31}},{"Entity":{"atom":19}},{"Entity":{"atom":527}},{"Sequence":{"atoms":[528,529,530,531]}},{"Repetition":{"atom":532,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[96,533]}},{"Entity":{"atom":19}},{"Entity":{"atom":58}},{"Entity":{"atom":19}},{"Entity":{"atom":534}},{"Sequence":{"atoms":[535,536,537,538]}},{"Repetition":{"atom":539,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[95,540]}},{"Named":{"name":"exp","atom":94}},{"Sequence":{"atoms":[25,27,28,90,91,92,93]}},{"Alternative":{"atoms":[543,234,235,279,290,315,338,364,365]}},{"Named":{"name":"statement","atom":544}},{"Sequence":{"atoms":[24,221]}},{"Repetition":{"atom":546,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[547,452,257]}},{"Repetition":{"atom":23,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Sequence":{"atoms":[21,22,549,550]}}],"root":551},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule kw_any: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 16 and 17 are order-dependent (shared first bytes; ordered choice is decisive)","rule kw_any: branches 18 and 19 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"main","render":{},"derive":{},"tests":[{"entry":"main","kind":"accept","input":"x = 1","expect":{}},{"entry":"main","kind":"accept","input":"local y = 2","expect":{}},{"entry":"main","kind":"accept","input":"t = {1, 2, x = 3, ['k'] = 4}","expect":{}},{"entry":"main","kind":"accept","input":"function f(a, b) return a + b end","expect":{}},{"entry":"main","kind":"accept","input":"g = function (x) return x end","expect":{}},{"entry":"main","kind":"accept","input":"if x then y() elseif z then w() else v() end","expect":{}},{"entry":"main","kind":"accept","input":"while i < 10 do i = i + 1 end","expect":{}},{"entry":"main","kind":"accept","input":"for i = 1, 10 do print(i) end","expect":{}},{"entry":"main","kind":"accept","input":"for k, v in pairs(t) do print(k, v) end","expect":{}},{"entry":"main","kind":"accept","input":"s = 'hello\\nworld'","expect":{}},{"entry":"main","kind":"accept","input":"s = \"a\\\"b\"","expect":{}},{"entry":"main","kind":"accept","input":"s = [[long]]","expect":{}},{"entry":"main","kind":"accept","input":"n = 0xFF","expect":{}},{"entry":"main","kind":"accept","input":"-- a comment\nx = 1 -- trailing","expect":{}},{"entry":"main","kind":"accept","input":"m = t.field:method(1)(2).rest","expect":{}},{"entry":"main","kind":"accept","input":"return a or b and not c","expect":{}},{"entry":"main","kind":"accept","input":"a = b .. 'x' * 2 - 1 / #t","expect":{}},{"entry":"main","kind":"accept","input":"do local z = 3 end","expect":{}},{"entry":"main","kind":"reject","input":"x = ","expect":{}},{"entry":"main","kind":"reject","input":"= 1","expect":{}},{"entry":"main","kind":"reject","input":"if then end","expect":{}},{"entry":"main","kind":"reject","input":"t = {,}","expect":{}},{"entry":"main","kind":"reject","input":"end","expect":{}},{"entry":"main","kind":"reject","input":"for = 1","expect":{}},{"entry":"main","kind":"reject","input":"x = 0x","expect":{}},{"entry":"main","kind":"reject","input":"s = 'unterminated","expect":{}},{"entry":"main","kind":"reject","input":"t = [[unclosed","expect":{}}],"docs":{"namechar":"Keyword characters and names. A name excludes the reserved words\nvia a negative lookahead over the keyword list at the START.","comment":"Comments: line-scoped by construction (0x0A/0x0D are below the\n0x20 floor of the run), newline optional at end of input.","hexdig":"Numerals: hex (0x/0X) or decimal with optional fraction and\nexponent.","short_string":"Short strings: single or double quoted, backslash escapes any\nsingle char; long brackets: [[ ... ]] with ]] excluded from the\nrun (the first close ends it).","exp":"Expressions: the precedence chain, flat chains per level.","block":"Statements."},"source":"# Lua (subset): the general-purpose programming-language flavor of the\n# rs#531 breadth program — after json/csv/ini, this proves PARG covers\n# statement-oriented syntax (blocks, precedence chains, keyword\n# guards, comments, multiple string forms), not only data formats.\n#\n# Subset (acceptance-complete for the shapes it declares): local and\n# global assignments (single-name locals), function definitions and\n# calls (call and member suffix chains), table constructors with\n# array/record/indexed fields, if/elseif/else, while, numeric and\n# generic for, do-blocks, return/break, the full operator precedence\n# chain (or/and/comparison/concat/additive/multiplicative/unary/ # length), short strings ('' and \"\") with backslash escapes, long\n# brackets [[ ]], decimal and hex numerals, -- line comments.\n#\n# Acceptance is the gate. Two documented supersets: an expression\n# statement accepts any expression (Lua restricts it to calls and\n# assignments — the subset accepts the superset); flat precedence\n# chains accept the same strings as Lua, with associativity a\n# tree-shape matter outside the subset's scope.\n\ngrammar Lua version \"1.0.0\" edition 2 {\n ws = *( %x20 / %x09 / %x0A / %x0D )\n nl = %x0A / %x0D\n\n ## Keyword characters and names. A name excludes the reserved words\n ## via a negative lookahead over the keyword list at the START.\n namechar = %x41-5A / %x61-7A / %x5F / %x30-39\n nametrain = ( ( %x41-5A / %x61-7A / %x5F ) *( namechar ) ) as nametrain\n\n kw_and = %i\"and\"\n kw_break = %i\"break\"\n kw_do = %i\"do\"\n kw_elseif = %i\"elseif\"\n kw_else = %i\"else\"\n kw_end = %i\"end\"\n kw_false = %i\"false\"\n kw_for = %i\"for\"\n kw_function = %i\"function\"\n kw_if = %i\"if\"\n kw_in = %i\"in\"\n kw_local = %i\"local\"\n kw_nil = %i\"nil\"\n kw_not = %i\"not\"\n kw_or = %i\"or\"\n kw_repeat = %i\"repeat\"\n kw_return = %i\"return\"\n kw_then = %i\"then\"\n kw_true = %i\"true\"\n kw_while = %i\"while\"\n kw_any = ( kw_and / kw_break / kw_do / kw_elseif / kw_else / kw_end / kw_false / kw_for / kw_function / kw_if / kw_in / kw_local / kw_nil / kw_not / kw_or / kw_repeat / kw_return / kw_then / kw_true / kw_while )\n\n name = ( !( kw_any !namechar ) nametrain ) as name\n\n ## Comments: line-scoped by construction (0x0A/0x0D are below the\n ## 0x20 floor of the run), newline optional at end of input.\n comment = ( \"--\" *( %x09 / %x20-10FFFF ) [ nl ] ) as comment\n\n ## Numerals: hex (0x/0X) or decimal with optional fraction and\n ## exponent.\n hexdig = %x30-39 / %x41-46 / %x61-66\n digit = %x30-39\n number = ( %x30 ( %x78 / %x58 ) 1*hexdig / digit [ *digit [ \".\" 1*digit ] [ ( %x65 / %x45 ) [ %x2B / %x2D ] 1*digit ] ] ) as number\n\n ## Short strings: single or double quoted, backslash escapes any\n ## single char; long brackets: [[ ... ]] with ]] excluded from the\n ## run (the first close ends it).\n short_string = ( %x22 *( \"\\\\\" ( %x00-10FFFF ) / %x20-21 / %x23-5B / %x5D-10FFFF ) %x22 / %x27 *( \"\\\\\" ( %x00-10FFFF ) / %x20-26 / %x28-5B / %x5D-10FFFF ) %x27 ) as short_string\n long_bracket = ( \"[[\" *( %x00-5C / %x5E-10FFFF ) \"]]\" ) as long_bracket\n\n ## Expressions: the precedence chain, flat chains per level.\n exp = ( or_e ) as exp\n or_e = and_e *( ws kw_or ws and_e )\n and_e = cmp_e *( ws kw_and ws cmp_e )\n cmp_e = bnot_e *( ws ( \"==\" / \"~=\" / \"<=\" / \">=\" / \"<\" / \">\" ) ws bnot_e )\n bnot_e = add_e *( ws \"..\" ws add_e )\n add_e = mul_e *( ws ( \"+\" / \"-\" ) ws mul_e )\n mul_e = unary_e *( ws ( \"*\" / \"/\" / \"%%\" ) ws unary_e )\n unary_e = *( ( %i\"not\" !namechar / \"#\" / \"-\" ) ws ) postfix_e\n postfix_e = ( simple_e *( ws ( \".\" ws name / \"[\" ws exp ws \"]\" / ws \":\" ws name ws args / ws args ) ) ) as postfix_e\n\n args = ( \"(\" ws [ exp *( ws \",\" ws exp ) ] ws \")\" / tablector / short_string / long_bracket ) as args\n\n simple_e = ( %i\"nil\" !namechar / %i\"true\" !namechar / %i\"false\" !namechar / number / short_string / long_bracket / function_def / tablector / name ) as simple_e\n\n function_def = ( kw_function ws function_body ) as function_def\n function_body = ( \"(\" ws [ name *( ws \",\" ws name ) ] ws \")\" ws block kw_end ) as function_body\n\n tablector = ( \"{\" ws [ field *( ws fieldsep ws field ) ws [ fieldsep ] ] ws \"}\" ) as tablector\n fieldsep = \",\" / \";\"\n field = ( \"[\" ws exp ws \"]\" ws \"=\" ws exp / name ws \"=\" ws exp / exp ) as field\n\n ## Statements.\n block = *( statement 1*( %x20 / %x09 / %x0A / %x0D / comment ) ) [ statement ] [ last_statement ws ]\n statement = ( kw_local ws name ws \"=\" ws exp / kw_function ws name ws function_body / if_block / while_block / numeric_for / generic_for / kw_do ws block kw_end / var ws \"=\" ws exp / call_statement ) as statement\n var = ( name ws *( suffix_member ) ) as var\n call_statement = ( name ws *( suffix_member ) ws suffix_call ws *( suffix_member / suffix_call ) ) as call_statement\n suffix_member = ( ws \".\" ws name / ws \"[\" ws exp ws \"]\" ) as suffix_member\n suffix_call = ( ws \":\" ws name ws args / ws args ) as suffix_call\n\n if_block = ( kw_if ws exp ws kw_then ws block *( ws kw_elseif ws exp ws kw_then ws block ) [ ws kw_else ws block ] ws kw_end ) as if_block\n while_block = ( kw_while ws exp ws kw_do ws block kw_end ) as while_block\n numeric_for = ( kw_for ws name ws \"=\" ws exp ws \",\" ws exp [ ws \",\" ws exp ] ws kw_do ws block kw_end ) as numeric_for\n generic_for = ( kw_for ws name ws \",\" ws name ws kw_in ws exp ws kw_do ws block kw_end ) as generic_for\n last_statement = ( kw_return [ ws exp ] / kw_break ) as last_statement\n\n chunk = *( comment ws ) ws [ block ] ws\n\n entry main: chunk\n\n test {\n accept \"x = 1\"\n accept \"local y = 2\"\n accept \"t = {1, 2, x = 3, ['k'] = 4}\"\n accept \"function f(a, b) return a + b end\"\n accept \"g = function (x) return x end\"\n accept \"if x then y() elseif z then w() else v() end\"\n accept \"while i < 10 do i = i + 1 end\"\n accept \"for i = 1, 10 do print(i) end\"\n accept \"for k, v in pairs(t) do print(k, v) end\"\n accept \"s = 'hello\\\\nworld'\"\n accept \"s = \\\"a\\\\\\\"b\\\"\"\n accept \"s = [[long]]\"\n accept \"n = 0xFF\"\n accept \"-- a comment\\nx = 1 -- trailing\"\n accept \"m = t.field:method(1)(2).rest\"\n accept \"return a or b and not c\"\n accept \"a = b .. 'x' * 2 - 1 / #t\"\n accept \"do local z = 3 end\"\n reject \"x = \"\n reject \"= 1\"\n reject \"if then end\"\n reject \"t = {,}\"\n reject \"end\"\n reject \"for = 1\"\n reject \"x = 0x\"\n reject \"s = 'unterminated\"\n reject \"t = [[unclosed\"\n }\n}","source_hash":"0b0886d65994dc8f30b6408c4a597eac924b00a29fb0f1745ece476bb66b8ba2","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:a41a62cb388f5d9b36187d97b8646bd44b7876ebd7573048182c5af1a6b5279c","checksum":"sha256:8d4dcb204ff8751684b49786e1210eb4fc5c98b2354370eadcde74b4518b4098","validated":{"lint_errors":0,"lint_warnings":10,"tests_total":27,"tests_failures":0,"self_test":true}}
|
package/vendor/parg/toml.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"bindings":null,"version":"1.0.0","grammar":"Toml","shape":"parsanol-tree/v2","binding_version":1,"entries":{"main":{"root":"toml","grammar":{"atoms":[{"Entity":{"atom":19}},{"Re":{"pattern":"[ ]"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Entity":{"atom":17}},{"Str":{"pattern":"#"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x20-\\u{10ffff}]"}},{"Alternative":{"atoms":[7,8]}},{"Repetition":{"atom":9,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":14}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Alternative":{"atoms":[12,13]}},{"Repetition":{"atom":11,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[6,10,15]}},{"Named":{"name":"comment","atom":16}},{"Alternative":{"atoms":[1,2,3,4,5]}},{"Repetition":{"atom":18,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":0,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":325}},{"Entity":{"atom":82}},{"Str":{"pattern":"[["}},{"Entity":{"atom":28}},{"Re":{"pattern":"[ ]"}},{"Re":{"pattern":"[\\x09]"}},{"Alternative":{"atoms":[25,26]}},{"Repetition":{"atom":27,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":71}},{"Entity":{"atom":63}},{"Entity":{"atom":39}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[_]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[32,33,34,35,36]}},{"Repetition":{"atom":37,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"bare_key","atom":38}},{"Entity":{"atom":52}},{"Re":{"pattern":"[\"]"}},{"Str":{"pattern":"\\"}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Sequence":{"atoms":[42,43]}},{"Re":{"pattern":"[ !]"}},{"Re":{"pattern":"[\\x23-\\x5b]"}},{"Re":{"pattern":"[\\x5d-\\u{10ffff}]"}},{"Alternative":{"atoms":[44,45,46,47]}},{"Repetition":{"atom":48,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\"]"}},{"Sequence":{"atoms":[41,49,50]}},{"Named":{"name":"basic_string","atom":51}},{"Entity":{"atom":61}},{"Re":{"pattern":"[']"}},{"Re":{"pattern":"[\\x20-\\x26]"}},{"Re":{"pattern":"[\\x28-\\u{10ffff}]"}},{"Alternative":{"atoms":[55,56]}},{"Repetition":{"atom":57,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[']"}},{"Sequence":{"atoms":[54,58,59]}},{"Named":{"name":"literal_string","atom":60}},{"Alternative":{"atoms":[31,40,53]}},{"Named":{"name":"simple_key","atom":62}},{"Entity":{"atom":28}},{"Str":{"pattern":"."}},{"Entity":{"atom":28}},{"Entity":{"atom":63}},{"Sequence":{"atoms":[64,65,66,67]}},{"Repetition":{"atom":68,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[30,69]}},{"Named":{"name":"key","atom":70}},{"Entity":{"atom":28}},{"Str":{"pattern":"]]"}},{"Sequence":{"atoms":[23,24,29,72,73]}},{"Str":{"pattern":"["}},{"Entity":{"atom":28}},{"Entity":{"atom":71}},{"Entity":{"atom":28}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[75,76,77,78,79]}},{"Alternative":{"atoms":[74,80]}},{"Named":{"name":"table_header","atom":81}},{"Entity":{"atom":323}},{"Entity":{"atom":71}},{"Entity":{"atom":28}},{"Str":{"pattern":"="}},{"Entity":{"atom":28}},{"Entity":{"atom":321}},{"Entity":{"atom":119}},{"Entity":{"atom":102}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[\\x00-\\x21]"}},{"Re":{"pattern":"[\\x23-\\u{10ffff}]"}},{"Alternative":{"atoms":[94,95]}},{"Repetition":{"atom":96,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[\"]"}},{"Re":{"pattern":"[\"]"}},{"Sequence":{"atoms":[91,92,93,97,98,99,100]}},{"Named":{"name":"ml_basic_string","atom":101}},{"Entity":{"atom":115}},{"Re":{"pattern":"[']"}},{"Re":{"pattern":"[']"}},{"Re":{"pattern":"[']"}},{"Re":{"pattern":"[\\x00-\\x26]"}},{"Re":{"pattern":"[\\x28-\\u{10ffff}]"}},{"Alternative":{"atoms":[107,108]}},{"Repetition":{"atom":109,"min":0,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[']"}},{"Re":{"pattern":"[']"}},{"Re":{"pattern":"[']"}},{"Sequence":{"atoms":[104,105,106,110,111,112,113]}},{"Named":{"name":"ml_literal_string","atom":114}},{"Entity":{"atom":52}},{"Entity":{"atom":61}},{"Alternative":{"atoms":[90,103,116,117]}},{"Named":{"name":"string","atom":118}},{"Entity":{"atom":124}},{"Re":{"pattern":"(?i:true)"}},{"Re":{"pattern":"(?i:false)"}},{"Alternative":{"atoms":[121,122]}},{"Named":{"name":"bool","atom":123}},{"Entity":{"atom":175}},{"Entity":{"atom":137}},{"Entity":{"atom":128}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":127,"min":4,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\-]"}},{"Entity":{"atom":128}},{"Repetition":{"atom":131,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\-]"}},{"Entity":{"atom":128}},{"Repetition":{"atom":134,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[129,130,132,133,135]}},{"Named":{"name":"full_date","atom":136}},{"Re":{"pattern":"[T]"}},{"Entity":{"atom":166}},{"Entity":{"atom":128}},{"Repetition":{"atom":140,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[:]"}},{"Entity":{"atom":128}},{"Repetition":{"atom":143,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[:]"}},{"Entity":{"atom":128}},{"Repetition":{"atom":146,"min":2,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Entity":{"atom":128}},{"Repetition":{"atom":149,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[148,150]}},{"Repetition":{"atom":151,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[Z]"}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[154,155]}},{"Entity":{"atom":128}},{"Repetition":{"atom":157,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[:]"}},{"Entity":{"atom":128}},{"Repetition":{"atom":160,"min":2,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[156,158,159,161]}},{"Alternative":{"atoms":[153,162]}},{"Repetition":{"atom":163,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[141,142,144,145,147,152,164]}},{"Named":{"name":"full_time","atom":165}},{"Sequence":{"atoms":[126,138,139]}},{"Entity":{"atom":137}},{"Re":{"pattern":"[ ]"}},{"Entity":{"atom":166}},{"Sequence":{"atoms":[168,169,170]}},{"Entity":{"atom":137}},{"Entity":{"atom":166}},{"Alternative":{"atoms":[167,171,172,173]}},{"Named":{"name":"date_time","atom":174}},{"Entity":{"atom":319}},{"Str":{"pattern":"["}},{"Entity":{"atom":185}},{"Re":{"pattern":"[ ]"}},{"Re":{"pattern":"[\\x09]"}},{"Re":{"pattern":"[\\x0a]"}},{"Re":{"pattern":"[\\x0d]"}},{"Entity":{"atom":17}},{"Alternative":{"atoms":[179,180,181,182,183]}},{"Repetition":{"atom":184,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":303}},{"Entity":{"atom":204}},{"Str":{"pattern":"{"}},{"Entity":{"atom":28}},{"Entity":{"atom":192}},{"Sequence":{"atoms":[84,85,86,87,88]}},{"Named":{"name":"keyval","atom":191}},{"Entity":{"atom":28}},{"Str":{"pattern":","}},{"Entity":{"atom":28}},{"Entity":{"atom":192}},{"Entity":{"atom":28}},{"Sequence":{"atoms":[194,195,196,197]}},{"Repetition":{"atom":198,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[190,193,199]}},{"Repetition":{"atom":200,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"}"}},{"Sequence":{"atoms":[188,189,201,202]}},{"Named":{"name":"inline_table","atom":203}},{"Entity":{"atom":249}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[206,207]}},{"Repetition":{"atom":208,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":244}},{"Entity":{"atom":218}},{"Entity":{"atom":128}},{"Re":{"pattern":"[_]"}},{"Repetition":{"atom":213,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":128}},{"Sequence":{"atoms":[214,215]}},{"Repetition":{"atom":216,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[212,217]}},{"Str":{"pattern":"."}},{"Entity":{"atom":128}},{"Repetition":{"atom":220,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[e]"}},{"Re":{"pattern":"[E]"}},{"Alternative":{"atoms":[222,223]}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[225,226]}},{"Repetition":{"atom":227,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":218}},{"Sequence":{"atoms":[224,228,229]}},{"Repetition":{"atom":230,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[211,219,221,231]}},{"Entity":{"atom":218}},{"Re":{"pattern":"[e]"}},{"Re":{"pattern":"[E]"}},{"Alternative":{"atoms":[234,235]}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[237,238]}},{"Repetition":{"atom":239,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":218}},{"Sequence":{"atoms":[233,236,240,241]}},{"Alternative":{"atoms":[232,242]}},{"Named":{"name":"decfloat","atom":243}},{"Re":{"pattern":"(?i:inf)"}},{"Re":{"pattern":"(?i:nan)"}},{"Alternative":{"atoms":[210,245,246]}},{"Sequence":{"atoms":[209,247]}},{"Named":{"name":"float","atom":248}},{"Entity":{"atom":301}},{"Re":{"pattern":"[+]"}},{"Re":{"pattern":"[\\-]"}},{"Alternative":{"atoms":[251,252]}},{"Repetition":{"atom":253,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[0]"}},{"Re":{"pattern":"[x]"}},{"Re":{"pattern":"[X]"}},{"Alternative":{"atoms":[256,257]}},{"Entity":{"atom":270}},{"Entity":{"atom":264}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Re":{"pattern":"[\\x41-\\x46]"}},{"Re":{"pattern":"[\\x61-\\x66]"}},{"Alternative":{"atoms":[261,262,263]}},{"Re":{"pattern":"[_]"}},{"Repetition":{"atom":265,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":264}},{"Sequence":{"atoms":[266,267]}},{"Repetition":{"atom":268,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[260,269]}},{"Sequence":{"atoms":[255,258,259]}},{"Re":{"pattern":"[0]"}},{"Re":{"pattern":"[o]"}},{"Re":{"pattern":"[O]"}},{"Alternative":{"atoms":[273,274]}},{"Entity":{"atom":283}},{"Re":{"pattern":"[\\x30-\\x37]"}},{"Re":{"pattern":"[_]"}},{"Repetition":{"atom":278,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[\\x30-\\x37]"}},{"Sequence":{"atoms":[279,280]}},{"Repetition":{"atom":281,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[277,282]}},{"Sequence":{"atoms":[272,275,276]}},{"Re":{"pattern":"[0]"}},{"Re":{"pattern":"[b]"}},{"Re":{"pattern":"[B]"}},{"Alternative":{"atoms":[286,287]}},{"Entity":{"atom":296}},{"Re":{"pattern":"[01]"}},{"Re":{"pattern":"[_]"}},{"Repetition":{"atom":291,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[01]"}},{"Sequence":{"atoms":[292,293]}},{"Repetition":{"atom":294,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[290,295]}},{"Sequence":{"atoms":[285,288,289]}},{"Entity":{"atom":218}},{"Alternative":{"atoms":[271,284,297,298]}},{"Sequence":{"atoms":[254,299]}},{"Named":{"name":"integer","atom":300}},{"Alternative":{"atoms":[89,120,125,176,187,205,250]}},{"Named":{"name":"value","atom":302}},{"Entity":{"atom":185}},{"Str":{"pattern":","}},{"Entity":{"atom":185}},{"Entity":{"atom":303}},{"Entity":{"atom":185}},{"Sequence":{"atoms":[305,306,307,308]}},{"Repetition":{"atom":309,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Entity":{"atom":185}},{"Sequence":{"atoms":[311,312]}},{"Repetition":{"atom":313,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[186,304,310,314]}},{"Repetition":{"atom":315,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[177,178,316,317]}},{"Named":{"name":"array","atom":318}},{"Alternative":{"atoms":[89,120,125,176,187,205,250]}},{"Named":{"name":"value","atom":320}},{"Sequence":{"atoms":[84,85,86,87,88]}},{"Named":{"name":"keyval","atom":322}},{"Alternative":{"atoms":[22,83]}},{"Named":{"name":"expr_line","atom":324}},{"Entity":{"atom":19}},{"Entity":{"atom":325}},{"Sequence":{"atoms":[326,327]}},{"Repetition":{"atom":328,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[21,329]}},{"Repetition":{"atom":330,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":19}},{"Repetition":{"atom":332,"min":0,"max":1,"tag":"Repetition"}},{"Sequence":{"atoms":[20,331,333]}}],"root":334},"bindings":[]}},"preprocess":{},"tables":{},"lint":{"order_warnings":[]},"default_entry":"main","render":{},"derive":{},"tests":[{"entry":"main","kind":"accept","input":"k = 1","expect":{}},{"entry":"main","kind":"accept","input":"key = \"value\"","expect":{}},{"entry":"main","kind":"accept","input":"lit = 'raw text'","expect":{}},{"entry":"main","kind":"accept","input":"flag = true","expect":{}},{"entry":"main","kind":"accept","input":"big = 1_000_000","expect":{}},{"entry":"main","kind":"accept","input":"hex = 0xFF","expect":{}},{"entry":"main","kind":"accept","input":"oct = 0o755","expect":{}},{"entry":"main","kind":"accept","input":"bin = 0b1010","expect":{}},{"entry":"main","kind":"accept","input":"f1 = 3.14","expect":{}},{"entry":"main","kind":"accept","input":"f2 = -2.5e10","expect":{}},{"entry":"main","kind":"accept","input":"f3 = inf","expect":{}},{"entry":"main","kind":"accept","input":"f4 = nan","expect":{}},{"entry":"main","kind":"accept","input":"dt = 1979-05-27T07:32:00Z","expect":{}},{"entry":"main","kind":"accept","input":"dt2 = 1979-05-27T00:32:00.999999-07:00","expect":{}},{"entry":"main","kind":"accept","input":"d = 1979-05-27","expect":{}},{"entry":"main","kind":"accept","input":"t = 07:32:00","expect":{}},{"entry":"main","kind":"accept","input":"[table]\nk = 1","expect":{}},{"entry":"main","kind":"accept","input":"[[items]]\nk = 1\n[[items]]\nk = 2","expect":{}},{"entry":"main","kind":"accept","input":"[a.b.c]\nk = 1","expect":{}},{"entry":"main","kind":"accept","input":"\"quoted key\" = 1","expect":{}},{"entry":"main","kind":"accept","input":"arr = [1, 2, 3]","expect":{}},{"entry":"main","kind":"accept","input":"arr = [\n 1, # one\n 2,\n]","expect":{}},{"entry":"main","kind":"accept","input":"inline = { a = 1, b = \"x\" }","expect":{}},{"entry":"main","kind":"accept","input":"ml = \"\"\"\nline one\nline two\n\"\"\"","expect":{}},{"entry":"main","kind":"accept","input":"ml = '''\nraw line\n'''","expect":{}},{"entry":"main","kind":"accept","input":"# a comment\nk = 1 # trailing","expect":{}},{"entry":"main","kind":"accept","input":"esc = \"a\\nb\"","expect":{}},{"entry":"main","kind":"reject","input":"k = ","expect":{}},{"entry":"main","kind":"reject","input":"= 1","expect":{}},{"entry":"main","kind":"reject","input":"k = 0x","expect":{}},{"entry":"main","kind":"accept","input":"k = [1, 2,]","expect":{}},{"entry":"main","kind":"reject","input":"k = { a = 1, }","expect":{}},{"entry":"main","kind":"reject","input":"[unclosed","expect":{}},{"entry":"main","kind":"reject","input":"k = \"unterminated","expect":{}},{"entry":"main","kind":"reject","input":"k = tru","expect":{}},{"entry":"main","kind":"reject","input":"[a]]","expect":{}},{"entry":"main","kind":"reject","input":"k = 1.2.3","expect":{}}],"docs":{"line_sep":"Structure: expression lines separated by newline/comment runs.","value":"Values.","string":"Strings. Multi-line forms open with two quotes; the content run\nexcludes the quote character (the documented restriction).","integer":"Numbers. Underscores allowed between digits in every base.","date_time":"Date-times (RFC 3339 shapes) and their local prefixes.","array":"Arrays: newlines, comments and trailing commas allowed.","inline_table":"Inline tables: single-line, no trailing comma."},"source":"# TOML (subset): the configuration-language flavor of the rs#531\n# breadth program — after json/csv/ini/lua, the deepest data-format\n# grammar: table headers, dotted keys, five value kinds with their\n# numeric bases, four string forms, arrays with embedded comments and\n# newlines, inline tables.\n#\n# Subset (acceptance-complete for the shapes it declares):\n# bare/quoted/dotted keys, [table] and [[array-of-tables]] headers,\n# key = value pairs; basic strings (\"...\" with escapes), multi-line\n# basic strings (\"\"\"...\"\"\"), literal strings ('...'), multi-line\n# literal strings ('''...'''); integers (decimal with underscores,\n# 0x/0o/0b, signed), floats (fraction/exponent, inf, nan), booleans;\n# offset and local date-times, local dates and times (RFC 3339\n# shapes); arrays with newlines, comments and trailing commas;\n# inline tables. # comments.\n#\n# Two documented restrictions (UNDER-acceptance, safe for the gate):\n# multi-line strings may not contain their quote character (TOML\n# allows one or two); UTF-16 surrogate escapes \\uD... are accepted as\n# escape sequences but not combined.\n\ngrammar Toml version \"1.0.0\" edition 2 {\n ws = *( %x20 / %x09 )\n nl = %x0A / %x0D\n aw = *( %x20 / %x09 / %x0A / %x0D / comment )\n comment = ( \"#\" *( %x09 / %x20-10FFFF ) [ nl ] ) as comment\n\n ## Structure: expression lines separated by newline/comment runs.\n line_sep = 1*( %x20 / %x09 / %x0A / %x0D / comment )\n toml = *( line_sep ) [ expr_line *( line_sep expr_line ) ] *1( line_sep )\n expr_line = ( table_header / keyval ) as expr_line\n\n keyval = ( key ws \"=\" ws value ) as keyval\n table_header = ( \"[[\" ws key ws \"]]\" / \"[\" ws key ws \"]\" ) as table_header\n key = ( simple_key *( ws \".\" ws simple_key ) ) as key\n simple_key = ( bare_key / basic_string / literal_string ) as simple_key\n bare_key = ( 1*( %x41-5A / %x61-7A / %x30-39 / %x5F / %x2D ) ) as bare_key\n\n ## Values.\n value = ( string / bool / date_time / array / inline_table / float / integer ) as value\n bool = ( %i\"true\" / %i\"false\" ) as bool\n\n ## Strings. Multi-line forms open with two quotes; the content run\n ## excludes the quote character (the documented restriction).\n string = ( ml_basic_string / ml_literal_string / basic_string / literal_string ) as string\n basic_string = ( %x22 *( \"\\\\\" ( %x00-10FFFF ) / %x20-21 / %x23-5B / %x5D-10FFFF ) %x22 ) as basic_string\n literal_string = ( %x27 *( %x20-26 / %x28-10FFFF ) %x27 ) as literal_string\n ml_basic_string = ( %x22 %x22 %x22 *( %x00-21 / %x23-10FFFF ) %x22 %x22 %x22 ) as ml_basic_string\n ml_literal_string = ( %x27 %x27 %x27 *( %x00-26 / %x28-10FFFF ) %x27 %x27 %x27 ) as ml_literal_string\n\n ## Numbers. Underscores allowed between digits in every base.\n integer = ( [ %x2B / %x2D ] ( %x30 ( %x78 / %x58 ) hexnum / %x30 ( %x6F / %x4F ) octnum / %x30 ( %x62 / %x42 ) binnum / decnum ) ) as integer\n hexnum = hexdig *( [ %x5F ] hexdig )\n octnum = %x30-37 *( [ %x5F ] %x30-37 )\n binnum = %x30-31 *( [ %x5F ] %x30-31 )\n decnum = digit *( [ %x5F ] digit )\n float = ( [ %x2B / %x2D ] ( decfloat / %i\"inf\" / %i\"nan\" ) ) as float\n decfloat = ( decnum \".\" 1*digit [ ( %x65 / %x45 ) [ %x2B / %x2D ] decnum ] / decnum ( %x65 / %x45 ) [ %x2B / %x2D ] decnum ) as decfloat\n\n ## Date-times (RFC 3339 shapes) and their local prefixes.\n date_time = ( full_date %x54 full_time / full_date %x20 full_time / full_date / full_time ) as date_time\n full_date = ( 4*digit %x2D 2*digit %x2D 2*digit ) as full_date\n full_time = ( 2*digit %x3A 2*digit %x3A 2*digit [ \".\" 1*digit ] [ ( %x5A / ( %x2B / %x2D ) 2*digit %x3A 2*digit ) ] ) as full_time\n\n ## Arrays: newlines, comments and trailing commas allowed.\n array = ( \"[\" aw [ value aw *( \",\" aw value aw ) [ \",\" aw ] ] \"]\" ) as array\n\n ## Inline tables: single-line, no trailing comma.\n inline_table = ( \"{\" ws [ keyval ws *( \",\" ws keyval ws ) ] \"}\" ) as inline_table\n\n digit = %x30-39\n hexdig = %x30-39 / %x41-46 / %x61-66\n\n entry main: toml\n\n test {\n accept \"k = 1\"\n accept \"key = \\\"value\\\"\"\n accept \"lit = 'raw text'\"\n accept \"flag = true\"\n accept \"big = 1_000_000\"\n accept \"hex = 0xFF\"\n accept \"oct = 0o755\"\n accept \"bin = 0b1010\"\n accept \"f1 = 3.14\"\n accept \"f2 = -2.5e10\"\n accept \"f3 = inf\"\n accept \"f4 = nan\"\n accept \"dt = 1979-05-27T07:32:00Z\"\n accept \"dt2 = 1979-05-27T00:32:00.999999-07:00\"\n accept \"d = 1979-05-27\"\n accept \"t = 07:32:00\"\n accept \"[table]\nk = 1\"\n accept \"[[items]]\nk = 1\n[[items]]\nk = 2\"\n accept \"[a.b.c]\nk = 1\"\n accept \"\\\"quoted key\\\" = 1\"\n accept \"arr = [1, 2, 3]\"\n accept \"arr = [\n 1, # one\n 2,\n]\"\n accept \"inline = { a = 1, b = \\\"x\\\" }\"\n accept \"ml = \\\"\\\"\\\"\nline one\nline two\n\\\"\\\"\\\"\"\n accept \"ml = '''\nraw line\n'''\"\n accept \"# a comment\nk = 1 # trailing\"\n accept \"esc = \\\"a\\\\nb\\\"\"\n reject \"k = \"\n reject \"= 1\"\n reject \"k = 0x\"\n accept \"k = [1, 2,]\"\n reject \"k = { a = 1, }\"\n reject \"[unclosed\"\n reject \"k = \\\"unterminated\"\n reject \"k = tru\"\n reject \"[a]]\"\n reject \"k = 1.2.3\"\n }\n\n\n\n\n}\n","source_hash":"469dcbad6193660910963eef44857e7c206080eea83ad649e2cd436ea134791e","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:e9a24feb2a44ae8198a987ceaba28c35f71228d94a588bccce886119fbf04555","checksum":"sha256:bafa48788da62009b030ab168a27082cd684f766cf15365075fce7578d42e9e3","validated":{"lint_errors":0,"lint_warnings":0,"tests_total":37,"tests_failures":0,"self_test":true}}
|