amath 0.1.0 → 0.2.1

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.
@@ -0,0 +1 @@
1
+ {"artifact_kind":"parg-bindings","target":"python","binding_version":1,"grammar":"Pma","grammar_version":"1.0.0","grammar_source_hash":"18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828","shape":"parsanol-tree/v2","entries":{"document":{"bindings":[{"capture":"term","path":"term","type":"any","card":null,"preprocess":null}]}},"checksum":"sha256:cd5a863a1eec71f6a91c328cbc8a5f2e2795f7a570dcfd6c71770d69b42da948"}
@@ -0,0 +1 @@
1
+ {"artifact_kind":"parg-bindings","target":"rs","binding_version":1,"grammar":"Pma","grammar_version":"1.0.0","grammar_source_hash":"18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828","shape":"parsanol-tree/v2","entries":{"document":{"bindings":[{"capture":"term","path":"term","type":"any","card":null,"preprocess":null}]}},"checksum":"sha256:a28895c068870d21d09e6829674767d3325dc9c770244120cf1b7969aed451ae"}
@@ -0,0 +1 @@
1
+ {"artifact_kind":"parg-bindings","target":"ruby","binding_version":1,"grammar":"Pma","grammar_version":"1.0.0","grammar_source_hash":"18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828","shape":"parsanol-tree/v2","entries":{"document":{"bindings":[{"capture":"term","path":"term","type":"any","card":null,"preprocess":null}]}},"checksum":"sha256:51282eaa2312b3afe6f08a7d430e23138c3c6893647136e92a4767a673f99397"}
@@ -0,0 +1 @@
1
+ {"artifact_kind":"parg-bindings","target":"ts","binding_version":1,"grammar":"Pma","grammar_version":"1.0.0","grammar_source_hash":"18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828","shape":"parsanol-tree/v2","entries":{"document":{"bindings":[{"capture":"term","path":"term","type":"any","card":null,"preprocess":null}]}},"checksum":"sha256:f1955fdfeefc858963bb71d534880b8abf946a7308e533efeb183cb4fc3bba06"}
@@ -0,0 +1,20 @@
1
+ # Written by scripts/compile.rb. Envelope and binding checksums are Parsanol's
2
+ # own (PN 2); the sha256 lines are of the files' bytes.
3
+ artifact_checksum sha256:66e6429b3c8d092086aa189e823b61f4b0956ba2dc6c68a66db386f7d87326a0
4
+ compiler_version 1.5.1.0
5
+ source_hash sha256:18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828
6
+ artifacts/pma.json sha256:ffbb63a8f8f6a9456c586f0603d181088d61c294febd830d9e782b35383b691a
7
+ bindings_ruby_checksum sha256:51282eaa2312b3afe6f08a7d430e23138c3c6893647136e92a4767a673f99397 binding_version 1
8
+ artifacts/pma.bindings.ruby.json sha256:e533e9195597f9a8230afad293b4545aec7574465215d4196c11f59e3fcc5e66
9
+ bindings_rs_checksum sha256:a28895c068870d21d09e6829674767d3325dc9c770244120cf1b7969aed451ae binding_version 1
10
+ artifacts/pma.bindings.rs.json sha256:23fbb41ca7dc9ff3d8dbac39ad0cd0d1a0a1e91a782af2e628d272389c4c7d65
11
+ bindings_ts_checksum sha256:f1955fdfeefc858963bb71d534880b8abf946a7308e533efeb183cb4fc3bba06 binding_version 1
12
+ artifacts/pma.bindings.ts.json sha256:943a8a76f1701f6007c5932269a1b82b10bddefb5b2815c515dd743434bc1dd3
13
+ bindings_python_checksum sha256:cd5a863a1eec71f6a91c328cbc8a5f2e2795f7a570dcfd6c71770d69b42da948 binding_version 1
14
+ artifacts/pma.bindings.python.json sha256:48a29d73df2124287cefaa76d520f54ca49d1ec1d2c84c060910d27fe346cdf7
15
+ grammars/pma.parg sha256:18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828
16
+ data/vocabulary.json amath-vocabulary/v2 sha256:768016984baee3ea142b69f0f31f4b9e9255ddedea078d6c7fb1728dc718695c
17
+ registry_edition 1
18
+ asciiunits_artifact_checksum sha256:aa22618c80dc02f3fe1edf2c798dbe34aceae5f4d84524ff98f76a2b91af151d asciiunits 0.1.6
19
+ entries document
20
+ order_warnings 29
@@ -0,0 +1 @@
1
+ {"bindings":null,"version":"1.0.0","grammar":"Pma","shape":"parsanol-tree/v2","binding_version":1,"entries":{"document":{"root":"document","grammar":{"atoms":[{"Entity":{"atom":9}},{"Entity":{"atom":8}},{"Str":{"pattern":" "}},{"Str":{"pattern":"\t"}},{"Str":{"pattern":"\n"}},{"Str":{"pattern":"\r"}},{"Re":{"pattern":"[\\x0b]"}},{"Re":{"pattern":"[\\x0c]"}},{"Alternative":{"atoms":[2,3,4,5,6,7]}},{"Repetition":{"atom":1,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":358}},{"Entity":{"atom":352}},{"Str":{"pattern":"diff("}},{"Entity":{"atom":9}},{"Entity":{"atom":348}},{"Entity":{"atom":153}},{"Entity":{"atom":87}},{"Entity":{"atom":56}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":33}},{"Str":{"pattern":"-"}},{"Repetition":{"atom":21,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":32}},{"Entity":{"atom":25}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":24,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Entity":{"atom":25}},{"Repetition":{"atom":28,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,29]}},{"Repetition":{"atom":30,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[26,31]}},{"Sequence":{"atoms":[22,23]}},{"Named":{"name":"value","atom":20}},{"Entity":{"atom":9}},{"Str":{"pattern":"+/-"}},{"Named":{"name":"plus_minus","atom":36}},{"Entity":{"atom":9}},{"Entity":{"atom":32}},{"Named":{"name":"relative_magnitude","atom":39}},{"Str":{"pattern":"%"}},{"Entity":{"atom":9}},{"Entity":{"atom":51}},{"Str":{"pattern":"~"}},{"Entity":{"atom":49}},{"Str":{"pattern":"arcsine"}},{"Str":{"pattern":"triang"}},{"Str":{"pattern":"rect"}},{"Alternative":{"atoms":[46,47,48]}},{"Named":{"name":"distribution","atom":45}},{"Sequence":{"atoms":[44,50]}},{"Sequence":{"atoms":[42,43]}},{"Repetition":{"atom":52,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[18,19,34,35,37,38,40,41,53,54,55]}},{"Entity":{"atom":86}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":33}},{"Named":{"name":"value","atom":60}},{"Entity":{"atom":9}},{"Str":{"pattern":"+/-"}},{"Named":{"name":"plus_minus","atom":63}},{"Entity":{"atom":9}},{"Entity":{"atom":32}},{"Named":{"name":"magnitude","atom":66}},{"Entity":{"atom":9}},{"Entity":{"atom":51}},{"Sequence":{"atoms":[68,69]}},{"Repetition":{"atom":70,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Entity":{"atom":84}},{"Str":{"pattern":"e"}},{"Str":{"pattern":"+"}},{"Str":{"pattern":"-"}},{"Alternative":{"atoms":[76,77]}},{"Repetition":{"atom":78,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":25}},{"Repetition":{"atom":80,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[79,81]}},{"Named":{"name":"shared_exponent","atom":82}},{"Sequence":{"atoms":[75,83]}},{"Repetition":{"atom":74,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[58,59,61,62,64,65,67,71,72,73,85]}},{"Alternative":{"atoms":[17,57]}},{"Entity":{"atom":104}},{"Str":{"pattern":"ustd"}},{"Named":{"name":"uncertainty_class","atom":89}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":33}},{"Named":{"name":"value","atom":93}},{"Entity":{"atom":99}},{"Entity":{"atom":9}},{"Str":{"pattern":","}},{"Entity":{"atom":9}},{"Sequence":{"atoms":[96,97,98]}},{"Entity":{"atom":32}},{"Named":{"name":"magnitude","atom":100}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[90,91,92,94,95,101,102,103]}},{"Entity":{"atom":125}},{"Str":{"pattern":"uexp"}},{"Named":{"name":"uncertainty_class","atom":106}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":33}},{"Named":{"name":"value","atom":110}},{"Entity":{"atom":99}},{"Entity":{"atom":32}},{"Named":{"name":"magnitude","atom":113}},{"Entity":{"atom":99}},{"Entity":{"atom":32}},{"Named":{"name":"coverage_factor","atom":116}},{"Entity":{"atom":99}},{"Entity":{"atom":32}},{"Named":{"name":"coverage_probability","atom":119}},{"Sequence":{"atoms":[118,120]}},{"Repetition":{"atom":121,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[107,108,109,111,112,114,115,117,122,123,124]}},{"Entity":{"atom":152}},{"Str":{"pattern":"ucov"}},{"Named":{"name":"uncertainty_class","atom":127}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":33}},{"Named":{"name":"value","atom":131}},{"Entity":{"atom":99}},{"Entity":{"atom":32}},{"Named":{"name":"lower","atom":134}},{"Entity":{"atom":99}},{"Entity":{"atom":32}},{"Named":{"name":"upper","atom":137}},{"Entity":{"atom":99}},{"Entity":{"atom":32}},{"Named":{"name":"coverage_probability","atom":140}},{"Entity":{"atom":99}},{"Entity":{"atom":146}},{"Str":{"pattern":"shortest"}},{"Str":{"pattern":"symmetric"}},{"Alternative":{"atoms":[144,145]}},{"Named":{"name":"interval_kind","atom":143}},{"Sequence":{"atoms":[142,147]}},{"Repetition":{"atom":148,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[128,129,130,132,133,135,136,138,139,141,149,150,151]}},{"Alternative":{"atoms":[16,88,105,126]}},{"Entity":{"atom":9}},{"Entity":{"atom":346}},{"Str":{"pattern":"unit("}},{"Entity":{"atom":9}},{"Entity":{"atom":334}},{"Entity":{"atom":303}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Str":{"pattern":")"}},{"Entity":{"atom":8}},{"Str":{"pattern":"::"}},{"Alternative":{"atoms":[161,162,163,164]}},{"Lookahead":{"atom":165,"positive":false}},{"Entity":{"atom":168}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Sequence":{"atoms":[166,167]}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":291}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":279}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":267}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":255}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":243}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":231}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":219}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":9}},{"Entity":{"atom":207}},{"Entity":{"atom":169}},{"Entity":{"atom":8}},{"Repetition":{"atom":202,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Lookahead":{"atom":204,"positive":true}},{"Sequence":{"atoms":[203,205]}},{"Alternative":{"atoms":[201,206]}},{"Repetition":{"atom":200,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[198,199,208,209,210]}},{"Entity":{"atom":8}},{"Repetition":{"atom":212,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[214,215]}},{"Lookahead":{"atom":216,"positive":true}},{"Sequence":{"atoms":[213,217]}},{"Alternative":{"atoms":[197,211,218]}},{"Repetition":{"atom":196,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[194,195,220,221,222]}},{"Entity":{"atom":8}},{"Repetition":{"atom":224,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[226,227]}},{"Lookahead":{"atom":228,"positive":true}},{"Sequence":{"atoms":[225,229]}},{"Alternative":{"atoms":[193,223,230]}},{"Repetition":{"atom":192,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[190,191,232,233,234]}},{"Entity":{"atom":8}},{"Repetition":{"atom":236,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[238,239]}},{"Lookahead":{"atom":240,"positive":true}},{"Sequence":{"atoms":[237,241]}},{"Alternative":{"atoms":[189,235,242]}},{"Repetition":{"atom":188,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[186,187,244,245,246]}},{"Entity":{"atom":8}},{"Repetition":{"atom":248,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[250,251]}},{"Lookahead":{"atom":252,"positive":true}},{"Sequence":{"atoms":[249,253]}},{"Alternative":{"atoms":[185,247,254]}},{"Repetition":{"atom":184,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[182,183,256,257,258]}},{"Entity":{"atom":8}},{"Repetition":{"atom":260,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[262,263]}},{"Lookahead":{"atom":264,"positive":true}},{"Sequence":{"atoms":[261,265]}},{"Alternative":{"atoms":[181,259,266]}},{"Repetition":{"atom":180,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[178,179,268,269,270]}},{"Entity":{"atom":8}},{"Repetition":{"atom":272,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[274,275]}},{"Lookahead":{"atom":276,"positive":true}},{"Sequence":{"atoms":[273,277]}},{"Alternative":{"atoms":[177,271,278]}},{"Repetition":{"atom":176,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[174,175,280,281,282]}},{"Entity":{"atom":8}},{"Repetition":{"atom":284,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[286,287]}},{"Lookahead":{"atom":288,"positive":true}},{"Sequence":{"atoms":[285,289]}},{"Alternative":{"atoms":[173,283,290]}},{"Repetition":{"atom":172,"min":0,"max":null,"tag":"Repetition"}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[170,171,292,293,294]}},{"Entity":{"atom":8}},{"Repetition":{"atom":296,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[298,299]}},{"Lookahead":{"atom":300,"positive":true}},{"Sequence":{"atoms":[297,301]}},{"Alternative":{"atoms":[160,295,302]}},{"Repetition":{"atom":159,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"literal","atom":304}},{"Entity":{"atom":9}},{"Str":{"pattern":"::"}},{"Entity":{"atom":9}},{"Entity":{"atom":332}},{"Entity":{"atom":331}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Entity":{"atom":320}},{"Entity":{"atom":169}},{"Entity":{"atom":8}},{"Repetition":{"atom":315,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Lookahead":{"atom":317,"positive":true}},{"Sequence":{"atoms":[316,318]}},{"Alternative":{"atoms":[314,319]}},{"Repetition":{"atom":313,"min":0,"max":null,"tag":"Repetition"}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[312,321,322]}},{"Entity":{"atom":8}},{"Repetition":{"atom":324,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":169}},{"Str":{"pattern":"("}},{"Alternative":{"atoms":[326,327]}},{"Lookahead":{"atom":328,"positive":true}},{"Sequence":{"atoms":[325,329]}},{"Alternative":{"atoms":[311,323,330]}},{"Repetition":{"atom":310,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"quantity","atom":309}},{"Sequence":{"atoms":[305,306,307,308,333]}},{"Entity":{"atom":341}},{"Entity":{"atom":303}},{"Repetition":{"atom":336,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"literal","atom":337}},{"Str":{"pattern":""}},{"Named":{"name":"empty_list","atom":339}},{"Alternative":{"atoms":[338,340]}},{"Alternative":{"atoms":[158,335]}},{"Named":{"name":"unit","atom":342}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[156,157,343,344,345]}},{"Sequence":{"atoms":[15,154,155]}},{"Named":{"name":"uncertainty","atom":347}},{"Named":{"name":"diff","atom":14}},{"Entity":{"atom":9}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[12,13,349,350,351]}},{"Entity":{"atom":348}},{"Entity":{"atom":356}},{"Entity":{"atom":153}},{"Named":{"name":"uncertainty","atom":355}},{"Entity":{"atom":346}},{"Alternative":{"atoms":[11,353,354,357]}},{"Named":{"name":"term","atom":10}},{"Entity":{"atom":9}},{"Sequence":{"atoms":[0,359,360]}}],"root":361},"bindings":[{"capture":"term","path":"term","type":"any","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule interval_kind: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule measured_literal: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule measured: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule measured: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule measured: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule unit_chunk_0: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_0: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_1: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_1: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_2: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_2: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_3: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_3: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_4: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_4: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_5: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_5: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_6: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_6: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_7: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_chunk_7: branches 1 and 3 are order-dependent (first set not statically known)","rule unit_chunk_8: branches 1 and 2 are order-dependent (first set not statically known)","rule quantity_chunk_0: branches 1 and 2 are order-dependent (first set not statically known)","rule quantity_chunk_0: branches 1 and 3 are order-dependent (first set not statically known)","rule quantity_chunk_1: branches 1 and 2 are order-dependent (first set not statically known)","rule unit_plain: branches 1 and 2 are order-dependent (first set not statically known)","rule term: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule term: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule term: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"document","render":{},"derive":{},"tests":[],"docs":{},"source":"# Template for grammars/pma.parg, the grammar of pma (dialect P, \"plurimath\n# ascii\"). Do not edit the generated .parg by hand: edit this file or\n# data/vocabulary.json and run\n# ruby scripts/generate_grammar.rb\n# Placeholders (a name in double braces) are replaced by generated text.\n# Lines that start with `#!` are template-only notes and are not copied.\n#\n# GENERATED by scripts/generate_grammar.rb -- do not edit.\n# pma (dialect P) grammar, plurimath docs/pma.adoc (amath#16).\n# registry data/vocabulary.json amath-vocabulary/v2 edition 1 sha256:768016984baee3ea142b69f0f31f4b9e9255ddedea078d6c7fb1728dc718695c\n# unit(...) content: asciiunits 0.1.6 artifact sha256:aa22618c80dc02f3fe1edf2c798dbe34aceae5f4d84524ff98f76a2b91af151d\n# reserved words (terminals): unit ustd uexp ucov diff quantity\n#\n# Version 1 reads one term: a measured value (a measured literal or one of\n# the constructors ustd, uexp, ucov), optionally with a trailing unit(...),\n# a unit(...) on its own, or diff(...) of a measured value with its unit.\n# Whitespace may stand between tokens and never inside one. `ustd(`,\n# `uexp(`, `ucov(`, `unit(` and `diff(` are single tokens, so a reserved\n# word followed by whitespace matches nothing. The content of unit(...) is\n# captured as text and parsed by the asciiunits artifact (see\n# Amath::Pma); its brackets nest at most 8 deep. A unit may be\n# followed by `::` and one quantity name (the quantity assertion).\n\ngrammar Pma version \"1.0.0\" {\n any_char = %x00-10FFFF\n ws = \" \" / \"\\t\" / \"\\n\" / \"\\r\" / %x0B / %x0C\n sp = *(ws)\n digit = %x30-39\n pma_number = 1*(digit) [\".\" 1*(digit)]\n pma_value = [\"-\"] pma_number\n\n # Distribution tags: the registry's pma distribution names, longest first.\n distribution_name = \"arcsine\" / \"triang\" / \"rect\"\n distribution_tag = \"~\" (distribution_name) as distribution\n shared_exponent = \"e\" ([\"+\" / \"-\"] 1*(digit)) as shared_exponent\n interval_kind = \"shortest\" / \"symmetric\"\n\n # Measured literals: (v +/- u), (v +/- p%), with an optional tag inside\n # the bracket after the uncertainty; only the absolute form takes a\n # shared exponent.\n ml_relative = \"(\" sp (pma_value) as value sp (\"+/-\") as plus_minus sp (pma_number) as relative_magnitude \"%\" [sp distribution_tag] sp \")\"\n ml_absolute = \"(\" sp (pma_value) as value sp (\"+/-\") as plus_minus sp (pma_number) as magnitude [sp distribution_tag] sp \")\" [shared_exponent]\n measured_literal = ml_relative / ml_absolute\n\n # Constructors.\n ctor_sep = sp \",\" sp\n ustd_ctor = (\"ustd\") as uncertainty_class \"(\" sp (pma_value) as value ctor_sep (pma_number) as magnitude sp \")\"\n uexp_ctor = (\"uexp\") as uncertainty_class \"(\" sp (pma_value) as value ctor_sep (pma_number) as magnitude ctor_sep (pma_number) as coverage_factor [ctor_sep (pma_number) as coverage_probability] sp \")\"\n ucov_ctor = (\"ucov\") as uncertainty_class \"(\" sp (pma_value) as value ctor_sep (pma_number) as lower ctor_sep (pma_number) as upper ctor_sep (pma_number) as coverage_probability [ctor_sep (interval_kind) as interval_kind] sp \")\"\n measured = measured_literal / ustd_ctor / uexp_ctor / ucov_ctor\n\n # unit(...): the unit expression text, brackets balanced to a fixed depth.\n # A run of whitespace inside it is kept only before more content.\n unit_char = !(\"(\" / \")\" / ws / \"::\") any_char\n unit_chunk_0 = unit_char / \"(\" sp *(unit_chunk_1) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_1 = unit_char / \"(\" sp *(unit_chunk_2) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_2 = unit_char / \"(\" sp *(unit_chunk_3) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_3 = unit_char / \"(\" sp *(unit_chunk_4) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_4 = unit_char / \"(\" sp *(unit_chunk_5) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_5 = unit_char / \"(\" sp *(unit_chunk_6) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_6 = unit_char / \"(\" sp *(unit_chunk_7) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_7 = unit_char / \"(\" sp *(unit_chunk_8) sp \")\" / 1*(ws) &(unit_char / \"(\")\n unit_chunk_8 = unit_char / 1*(ws) &(unit_char)\n\n # The quantity assertion: `::` and a quantity name after the unit\n # expression, at most one. The name is text up to the closing bracket;\n # its own brackets balance one deep (unitsdb names such as\n # \"ratio logarithm (Np)\"). Whether the name is a unitsdb quantity is\n # checked by Amath::Pma, not here.\n quantity_chunk_0 = unit_char / \"(\" *(quantity_chunk_1) \")\" / 1*(ws) &(unit_char / \"(\")\n quantity_chunk_1 = unit_char / 1*(ws) &(unit_char)\n quantity_ref = 1*(quantity_chunk_0)\n unit_plain = (1*(unit_chunk_0)) as literal / \"\" as empty_list\n unit_asserted = (1*(unit_chunk_0)) as literal sp \"::\" sp (quantity_ref) as quantity\n unit_ctor = \"unit(\" sp (unit_asserted / unit_plain) as unit sp \")\"\n\n # A measured value carries its unit inside the uncertainty node, as the\n # dialect L \"unitsml(...)\" argument does.\n attached = (measured sp unit_ctor) as uncertainty\n bare = (measured) as uncertainty\n diff_ctor = \"diff(\" sp (attached) as diff sp \")\"\n term = diff_ctor / attached / bare / unit_ctor\n document = sp (term) as term sp\n}\n\nentry document: document\n\nbindings document { term -> term (any) }\n","source_hash":"18e952417a1ba8f3bb753c9d5ce1fb7d3d013018dea6e070c96717723fb34828","unicode_tables":"onigmo (Ruby 4.0.7)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:4f2408e726cc69da2bf005775a3ee2f9c6e07deaf36fed0138e2310dc953b366","checksum":"sha256:66e6429b3c8d092086aa189e823b61f4b0956ba2dc6c68a66db386f7d87326a0","validated":{"lint_errors":0,"lint_warnings":29,"tests_total":0,"tests_failures":0,"self_test":true},"byte_checksum":"sha256:c7101ddc1f33d2f9813a52a235441cf6b68c07deb07e9c570cb386e98918d8ab"}
@@ -0,0 +1,125 @@
1
+ schema_version: 1
2
+ dialect: pma
3
+ spec: plurimath docs/pma.adoc
4
+ contract: >-
5
+ Every accepted example of the specification. `term` is the typed model's
6
+ bound data (the term of Amath.parse(input, dialect: :pma)) with the source
7
+ texts as written; a measured value is an Uncertainty, its unit inside it.
8
+ cases:
9
+ - id: ctor.ustd
10
+ input: ustd(1.230, 0.004)
11
+ term: {uncertainty: {uncertainty_class: ustd, value: '1.230', magnitude: '0.004'}}
12
+ - id: ctor.ustd.negative
13
+ input: ustd(-1.230, 0.004)
14
+ term: {uncertainty: {uncertainty_class: ustd, value: '-1.230', magnitude: '0.004'}}
15
+ - id: ctor.uexp
16
+ input: uexp(10.0, 0.3, 2)
17
+ term: {uncertainty: {uncertainty_class: uexp, value: '10.0', magnitude: '0.3', coverage_factor: '2'}}
18
+ - id: ctor.uexp.probability
19
+ input: uexp(10.0, 0.3, 2, 0.95)
20
+ term: {uncertainty: {uncertainty_class: uexp, value: '10.0', magnitude: '0.3', coverage_factor: '2', coverage_probability: '0.95'}}
21
+ - id: ctor.uexp.zero_k
22
+ note: the grammar accepts it; Plurimath refuses k = 0 when it builds the node
23
+ input: uexp(1.0, 0.3, 0, 0.95)
24
+ term: {uncertainty: {uncertainty_class: uexp, value: '1.0', magnitude: '0.3', coverage_factor: '0', coverage_probability: '0.95'}}
25
+ - id: ctor.ucov
26
+ input: ucov(1.024, 0.983, 1.088, 0.95)
27
+ term: {uncertainty: {uncertainty_class: ucov, value: '1.024', lower: '0.983', upper: '1.088', coverage_probability: '0.95'}}
28
+ - id: ctor.ucov.shortest
29
+ input: ucov(1.024, 0.983, 1.088, 0.95, shortest)
30
+ term: {uncertainty: {uncertainty_class: ucov, value: '1.024', lower: '0.983', upper: '1.088', coverage_probability: '0.95', interval_kind: shortest}}
31
+ - id: ctor.ucov.symmetric
32
+ input: ucov(1.024, 0.983, 1.088, 0.95, symmetric)
33
+ term: {uncertainty: {uncertainty_class: ucov, value: '1.024', lower: '0.983', upper: '1.088', coverage_probability: '0.95', interval_kind: symmetric}}
34
+ - id: unit.quotient
35
+ input: unit(m/s^2)
36
+ term: {unit: {literal: m/s^2}}
37
+ - id: unit.product
38
+ input: unit(kg*m^2)
39
+ term: {unit: {literal: kg*m^2}}
40
+ - id: unit.nested_depth_8
41
+ input: unit((((((((m))))))))
42
+ term: {unit: {literal: (((((((m)))))))}}
43
+ - id: quantity.assertion
44
+ input: unit(J::energy)
45
+ term: {unit: {literal: J, quantity: 'q:energy'}}
46
+ - id: quantity.whole
47
+ note: the assertion binds the whole unit expression
48
+ input: unit(N*m::torque)
49
+ term: {unit: {literal: N*m, quantity: 'q:torque'}}
50
+ - id: quantity.spaced
51
+ input: 'unit( J :: energy )'
52
+ term: {unit: {literal: J, quantity: 'q:energy'}}
53
+ - id: quantity.name_with_brackets
54
+ note: a unitsdb name may hold brackets and spaces; the id is the unitsdb unitsml id
55
+ input: unit(J::ratio logarithm (Np))
56
+ term: {unit: {literal: J, quantity: 'q:logarithmic_decrement'}}
57
+ - id: quantity.attached
58
+ input: (10.3 +/- 0.2) unit(J::energy)
59
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2', unit: {literal: J, quantity: 'q:energy'}}}
60
+ - id: quantity.diff
61
+ input: diff((5.0 +/- 0.1) unit(K::thermodynamic temperature))
62
+ term: {diff: {uncertainty: {value: '5.0', plus_minus: +/-, magnitude: '0.1', unit: {literal: K, quantity: 'q:temperature'}}}}
63
+ - id: diff.kelvin
64
+ input: diff((5.0 +/- 0.1) unit(K))
65
+ term: {diff: {uncertainty: {value: '5.0', plus_minus: +/-, magnitude: '0.1', unit: {literal: K}}}}
66
+ - id: diff.celsius
67
+ input: diff((20.0 +/- 0.2) unit(degC))
68
+ term: {diff: {uncertainty: {value: '20.0', plus_minus: +/-, magnitude: '0.2', unit: {literal: degC}}}}
69
+ - id: measured.standard
70
+ input: (10.3 +/- 0.2)
71
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2'}}
72
+ - id: measured.negative
73
+ input: (-1.230 +/- 0.004)
74
+ term: {uncertainty: {value: '-1.230', plus_minus: +/-, magnitude: '0.004'}}
75
+ - id: measured.spaced
76
+ input: '( 10.3 +/- 0.2 )'
77
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2'}}
78
+ - id: exponent.plain
79
+ input: (3.85 +/- 0.23)e4
80
+ term: {uncertainty: {value: '3.85', plus_minus: +/-, magnitude: '0.23', shared_exponent: '4'}}
81
+ - id: exponent.plus
82
+ input: (3.85 +/- 0.23)e+4
83
+ term: {uncertainty: {value: '3.85', plus_minus: +/-, magnitude: '0.23', shared_exponent: '+4'}}
84
+ - id: exponent.minus
85
+ input: (1.024 +/- 0.003)e-3
86
+ term: {uncertainty: {value: '1.024', plus_minus: +/-, magnitude: '0.003', shared_exponent: '-3'}}
87
+ - id: relative.integer
88
+ input: (10.3 +/- 2%)
89
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, relative_magnitude: '2'}}
90
+ - id: relative.decimal
91
+ input: (10.3 +/- 0.5%)
92
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, relative_magnitude: '0.5'}}
93
+ - id: tag.rect
94
+ input: (10.3 +/- 0.2 ~rect)
95
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2', distribution: rect}}
96
+ - id: tag.triang.unit
97
+ input: (10.3 +/- 0.2 ~triang) unit(cm)
98
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2', distribution: triang, unit: {literal: cm}}}
99
+ - id: tag.arcsine.exponent
100
+ input: (3.85 +/- 0.23 ~arcsine)e4
101
+ term: {uncertainty: {value: '3.85', plus_minus: +/-, magnitude: '0.23', distribution: arcsine, shared_exponent: '4'}}
102
+ - id: tag.relative
103
+ input: (10.3 +/- 2% ~rect)
104
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, relative_magnitude: '2', distribution: rect}}
105
+ - id: tag.unspaced
106
+ input: (10.3 +/- 0.2~rect)
107
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2', distribution: rect}}
108
+ - id: attach.measured
109
+ input: (10.3 +/- 0.2) unit(cm)
110
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2', unit: {literal: cm}}}
111
+ - id: attach.unspaced
112
+ input: (10.3+/-0.2)unit(cm)
113
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, magnitude: '0.2', unit: {literal: cm}}}
114
+ - id: attach.exponent
115
+ input: (3.85 +/- 0.23)e4 unit(m)
116
+ term: {uncertainty: {value: '3.85', plus_minus: +/-, magnitude: '0.23', shared_exponent: '4', unit: {literal: m}}}
117
+ - id: attach.relative
118
+ input: (10.3 +/- 2%) unit(cm)
119
+ term: {uncertainty: {value: '10.3', plus_minus: +/-, relative_magnitude: '2', unit: {literal: cm}}}
120
+ - id: attach.ustd
121
+ input: ustd(1.230, 0.004) unit(g)
122
+ term: {uncertainty: {uncertainty_class: ustd, value: '1.230', magnitude: '0.004', unit: {literal: g}}}
123
+ - id: attach.uexp
124
+ input: uexp(100.02147, 0.00079, 2) unit(g)
125
+ term: {uncertainty: {uncertainty_class: uexp, value: '100.02147', magnitude: '0.00079', coverage_factor: '2', unit: {literal: g}}}
@@ -0,0 +1,67 @@
1
+ schema_version: 1
2
+ dialect: pma
3
+ spec: plurimath docs/pma.adoc
4
+ contract: Every refused example of the specification, and the forms it leaves
5
+ open, which version 1 refuses. Each is an Amath::ParseError with this
6
+ category and position (byte_offset, char_offset) on both engines.
7
+ cases:
8
+ - {id: ctor.arity.uexp, input: 'uexp(10.0, 0.3)', category: constructor-arity, byte_offset: 14, char_offset: 14}
9
+ - {id: ctor.arity.quoted_unit, input: 'ustd(1.230, 0.004, "unitsml(g)")', category: constructor-arity, byte_offset: 17, char_offset: 17}
10
+ - {id: ctor.argument.signed_magnitude, input: 'ustd(1.2, -0.1)', category: constructor-argument, byte_offset: 10, char_offset: 10}
11
+ - {id: ctor.argument.exponent, input: 'ustd(1.2e3, 0.1)', category: constructor-argument, byte_offset: 8, char_offset: 8}
12
+ - {id: ctor.argument.interval_kind, input: 'ucov(1.024, 0.983, 1.088, 0.95, probabilistically-symmetric)', category: constructor-argument, byte_offset: 30, char_offset: 30}
13
+ - {id: adjacency.reserved_word, input: 'ustd (1.2, 0.1)', category: adjacency, byte_offset: 4, char_offset: 4}
14
+ - {id: adjacency.exponent, input: '(3.85 +/- 0.23) e4', category: adjacency, byte_offset: 16, char_offset: 16}
15
+ - {id: adjacency.plus_minus, input: '(10.3 + / - 0.2)', category: adjacency, byte_offset: 6, char_offset: 6}
16
+ - {id: adjacency.diff, input: 'diff ((5.0 +/- 0.1) unit(K))', category: adjacency, byte_offset: 0, char_offset: 0}
17
+ - {id: reserved.ustd, input: 'ustd', category: reserved-word, byte_offset: 4, char_offset: 4}
18
+ - {id: reserved.unit, input: 'unit', category: reserved-word, byte_offset: 0, char_offset: 0}
19
+ - {id: reserved.quantity_call, input: 'quantity(x)', category: reserved-word, byte_offset: 0, char_offset: 0}
20
+ - {id: reserved.quantity, input: 'quantity', category: reserved-word, byte_offset: 0, char_offset: 0}
21
+ - {id: unit.quoted, input: 'unit("m")', category: unit-expression, byte_offset: 6, char_offset: 6}
22
+ - {id: unit.unknown, input: 'unit(furlongs)', category: unit-expression, byte_offset: 9, char_offset: 9}
23
+ - {id: unit.empty, input: 'unit()', category: unit-expression, byte_offset: 5, char_offset: 5}
24
+ - {id: unit.depth_9, input: 'unit(((((((((m))))))))))', category: unit-expression, byte_offset: 23, char_offset: 23}
25
+ - {id: unit.attached_unknown, input: '(10.3 +/- 0.2) unit(furlongs)', category: unit-expression, byte_offset: 24, char_offset: 24}
26
+ - {id: unit.non_ascii, input: 'unit(Ωfurlong)', category: unit-expression, byte_offset: 5, char_offset: 5}
27
+ - {id: attach.second_unit_non_ascii, input: '(10.3 +/- 0.2) unit(µm) unit(m)', category: unit-attachment, byte_offset: 25, char_offset: 24}
28
+ - {id: pm.plus_minus, input: '(10.3 +- 0.2)', category: plus-minus-spelling, byte_offset: 6, char_offset: 6}
29
+ - {id: pm.word, input: '(10.3 pm 0.2)', category: plus-minus-spelling, byte_offset: 6, char_offset: 6}
30
+ - {id: pm.sign, input: '(10.3 ± 0.2)', category: plus-minus-spelling, byte_offset: 6, char_offset: 6}
31
+ - {id: measured.signed_magnitude, input: '(10.3 +/- -0.2)', category: measured-literal, byte_offset: 10, char_offset: 10}
32
+ - {id: measured.letter, input: '(x +/- 0.2)', category: measured-literal, byte_offset: 1, char_offset: 1}
33
+ - {id: measured.unbracketed, input: '10.3 +/- 0.2', category: measured-literal, byte_offset: 0, char_offset: 0}
34
+ - {id: exponent.incomplete, input: '(3.85 +/- 0.23)e', category: shared-exponent, byte_offset: 15, char_offset: 15}
35
+ - {id: exponent.decimal, input: '(3.85 +/- 0.23)e4.5', category: shared-exponent, byte_offset: 17, char_offset: 17}
36
+ - {id: exponent.relative, input: '(3.85 +/- 2%)e4', category: shared-exponent, byte_offset: 13, char_offset: 13}
37
+ - {id: exponent.constructor, input: 'ustd((3.85, 0.23)e4)', category: shared-exponent, byte_offset: 5, char_offset: 5}
38
+ - {id: exponent.plain_number, input: '1.2e3', category: shared-exponent, byte_offset: 0, char_offset: 0}
39
+ - {id: relative.spaced, input: '(10.3 +/- 2 %)', category: relative, byte_offset: 12, char_offset: 12}
40
+ - {id: relative.signed, input: '(10.3 +/- -2%)', category: relative, byte_offset: 10, char_offset: 10}
41
+ - {id: relative.on_value, input: '(10.3% +/- 2)', category: relative, byte_offset: 5, char_offset: 5}
42
+ - {id: tag.renamed_u, input: '(10.3 +/- 0.2 ~U)', category: distribution-tag, byte_offset: 14, char_offset: 14}
43
+ - {id: tag.type_b, input: '(10.3 +/- 0.2 ~typeB)', category: distribution-tag, byte_offset: 14, char_offset: 14}
44
+ - {id: tag.spaced, input: '(10.3 +/- 0.2 ~ rect)', category: distribution-tag, byte_offset: 14, char_offset: 14}
45
+ - {id: tag.unknown, input: '(10.3 +/- 0.2 ~gauss)', category: distribution-tag, byte_offset: 14, char_offset: 14}
46
+ - {id: tag.outside, input: '(10.3 +/- 0.2) ~rect', category: distribution-tag, byte_offset: 15, char_offset: 15}
47
+ - {id: tag.before_plus_minus, input: '(10.3 ~rect +/- 0.2)', category: distribution-tag, byte_offset: 6, char_offset: 6}
48
+ - {id: tag.constructor, input: 'ustd(1.2, 0.1 ~rect)', category: distribution-tag, byte_offset: 14, char_offset: 14}
49
+ - {id: attach.second_unit, input: '(10.3 +/- 0.2) unit(cm) unit(m)', category: unit-attachment, byte_offset: 24, char_offset: 24}
50
+ - {id: attach.inside_constructor, input: 'ustd(1.230, 0.004, unit(g))', category: unit-attachment, byte_offset: 17, char_offset: 17}
51
+ - {id: attach.plain_number, input: '9.81 unit(m/s^2)', category: unit-attachment, byte_offset: 0, char_offset: 0}
52
+ - {id: attach.diff_plain_number, input: 'diff(5 unit(K))', category: unit-attachment, byte_offset: 5, char_offset: 5}
53
+ - {id: quantity.no_quantity, input: 'unit(J::)', category: quantity-assertion, byte_offset: 6, char_offset: 6}
54
+ - {id: quantity.no_unit, input: 'unit(::energy)', category: quantity-assertion, byte_offset: 5, char_offset: 5}
55
+ - {id: quantity.twice, input: 'unit(J::energy::work)', category: quantity-assertion, byte_offset: 14, char_offset: 14}
56
+ - {id: quantity.nested, input: 'unit((N::force)*m)', category: quantity-assertion, byte_offset: 5, char_offset: 5}
57
+ - {id: quantity.unknown, input: 'unit(J::nonsense)', category: quantity-assertion, byte_offset: 8, char_offset: 8}
58
+ - {id: quantity.outside_unit, input: '::energy', category: quantity-assertion, byte_offset: 0, char_offset: 0}
59
+ - {id: quantity.trailing_text, input: 'unit(J::energy x)', category: quantity-assertion, byte_offset: 8, char_offset: 8}
60
+ - {id: concise.plain, input: '10.3(2)', category: concise, byte_offset: 0, char_offset: 0}
61
+ - {id: concise.bracketed, input: '(10.3(2))', category: concise, byte_offset: 5, char_offset: 5}
62
+ - {id: concise.exponent, input: '(680(41))e-3', category: concise, byte_offset: 4, char_offset: 4}
63
+ - {id: concise.constructor, input: 'ustd(1.230(4))', category: concise, byte_offset: 10, char_offset: 10}
64
+ - {id: none.empty, input: '', category: no-production, byte_offset: 0, char_offset: 0}
65
+ - {id: none.expression, input: 'x + y', category: no-production, byte_offset: 0, char_offset: 0}
66
+ - {id: none.diff_without_unit, input: 'diff(ustd(1.0, 0.1))', category: no-production, byte_offset: 19, char_offset: 19}
67
+ - {id: none.two_terms, input: 'unit(m) unit(s)', category: unit-attachment, byte_offset: 8, char_offset: 8}
@@ -3,8 +3,8 @@ issue: https://github.com/plurimath/amath/issues/13
3
3
  contract: Original source leaves and optional shared_exponent; normalized_model_text
4
4
  is the exact-decimal consuming-reader expectation, not a transformed Amath slice.
5
5
  cases:
6
- - id: standard.positive
7
- input: ustd((3.85, 0.23)e4)
6
+ - id: standard.positive-r2
7
+ input: '"ustd((3.85, 0.23)e4)"'
8
8
  tree:
9
9
  uncertainty_class: ustd
10
10
  value: '3.85'
@@ -13,8 +13,8 @@ cases:
13
13
  normalized_model_text:
14
14
  value: '38500'
15
15
  magnitude: '2300'
16
- - id: standard.negative
17
- input: ustd((-3.850, 0.230)e+4)
16
+ - id: standard.negative-r2
17
+ input: '"ustd((-3.850, 0.230)e+4)"'
18
18
  tree:
19
19
  uncertainty_class: ustd
20
20
  value: '-3.850'
@@ -23,8 +23,8 @@ cases:
23
23
  normalized_model_text:
24
24
  value: '-38500'
25
25
  magnitude: '2300'
26
- - id: standard.leading_zeroes
27
- input: ustd((001.2300, 000.0040)e-2)
26
+ - id: standard.leading_zeroes-r2
27
+ input: '"ustd((001.2300, 000.0040)e-2)"'
28
28
  tree:
29
29
  uncertainty_class: ustd
30
30
  value: '001.2300'
@@ -33,8 +33,8 @@ cases:
33
33
  normalized_model_text:
34
34
  value: '0.012300'
35
35
  magnitude: '0.000040'
36
- - id: standard.zero_exponent
37
- input: ustd((1.230, 0.004)e0)
36
+ - id: standard.zero_exponent-r2
37
+ input: '"ustd((1.230, 0.004)e0)"'
38
38
  tree:
39
39
  uncertainty_class: ustd
40
40
  value: '1.230'
@@ -43,8 +43,8 @@ cases:
43
43
  normalized_model_text:
44
44
  value: '1.230'
45
45
  magnitude: '0.004'
46
- - id: concise.negative_exponent
47
- input: ustd(680(41)e-3)
46
+ - id: concise.negative_exponent-r2
47
+ input: '"ustd(680(41)e-3)"'
48
48
  tree:
49
49
  uncertainty_class: ustd
50
50
  value: '680'
@@ -53,8 +53,8 @@ cases:
53
53
  normalized_model_text:
54
54
  value: '0.680'
55
55
  magnitude: '0.041'
56
- - id: concise.zero_exponent
57
- input: ustd(1.230(4)e0)
56
+ - id: concise.zero_exponent-r2
57
+ input: '"ustd(1.230(4)e0)"'
58
58
  tree:
59
59
  uncertainty_class: ustd
60
60
  value: '1.230'
@@ -63,8 +63,8 @@ cases:
63
63
  normalized_model_text:
64
64
  value: '1.230'
65
65
  magnitude: '0.004'
66
- - id: concise.unit
67
- input: ustd(680(41)e-3, "unitsml(kg)")
66
+ - id: concise.unit-r2
67
+ input: '"ustd(680(41)e-3, "unitsml(kg)")"'
68
68
  tree:
69
69
  uncertainty_class: ustd
70
70
  value: '680'
@@ -74,8 +74,8 @@ cases:
74
74
  normalized_model_text:
75
75
  value: '0.680'
76
76
  magnitude: '0.041'
77
- - id: expanded.dimensionless_fields
78
- input: uexp((3.85, 0.23)e4, 2.00, 0.950, "unitsml(m)")
77
+ - id: expanded.dimensionless_fields-r2
78
+ input: '"uexp((3.85, 0.23)e4, 2.00, 0.950, "unitsml(m)")"'
79
79
  tree:
80
80
  uncertainty_class: uexp
81
81
  value: '3.85'
@@ -89,8 +89,8 @@ cases:
89
89
  magnitude: '2300'
90
90
  coverage_factor: '2.00'
91
91
  coverage_probability: '0.950'
92
- - id: expanded.negative_exponent
93
- input: uexp((100.02147, 0.00079)e-2, 2)
92
+ - id: expanded.negative_exponent-r2
93
+ input: '"uexp((100.02147, 0.00079)e-2, 2)"'
94
94
  tree:
95
95
  uncertainty_class: uexp
96
96
  value: '100.02147'
@@ -101,8 +101,8 @@ cases:
101
101
  value: '1.0002147'
102
102
  magnitude: '0.0000079'
103
103
  coverage_factor: '2'
104
- - id: interval.shared_exponent
105
- input: ucov((1.024, 0.983, 1.088)e-3, 0.95, shortest, "unitsml(V)")
104
+ - id: interval.shared_exponent-r2
105
+ input: '"ucov((1.024, 0.983, 1.088)e-3, 0.95, shortest, "unitsml(V)")"'
106
106
  tree:
107
107
  uncertainty_class: ucov
108
108
  value: '1.024'