phino 0.0.170 → 0.0.171
raw patch · 17 files changed
+93/−93 lines, 17 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +5/−5
- phino.cabal +1/−1
- src/Sodg.hs +1/−1
- test-resources/sodg-packs/bottom-alone.yaml +2/−2
- test-resources/sodg-packs/bottom-argument.yaml +5/−5
- test-resources/sodg-packs/bottom-dispatch.yaml +8/−8
- test-resources/sodg-packs/bottom.yaml +5/−5
- test-resources/sodg-packs/empty-bytes-and-symbol.yaml +5/−5
- test-resources/sodg-packs/empty.yaml +1/−1
- test-resources/sodg-packs/nested-xi.yaml +8/−8
- test-resources/sodg-packs/not-formation.yaml +3/−3
- test-resources/sodg-packs/number.yaml +8/−8
- test-resources/sodg-packs/order.yaml +8/−8
- test-resources/sodg-packs/root-rho-delta-lambda.yaml +17/−17
- test-resources/sodg-packs/spelled-rho.yaml +3/−3
- test-resources/sodg-packs/two-arguments.yaml +6/−6
- test/CLISpec.hs +7/−7
README.md view
@@ -34,7 +34,7 @@ ```bash cabal update-cabal install --overwrite-policy=always phino-0.0.169+cabal install --overwrite-policy=always phino-0.0.170 phino --version ``` @@ -59,7 +59,7 @@ for the runner and puts it on the `PATH`: ```yaml-- uses: objectionary/phino@0.0.169+- uses: objectionary/phino@0.0.170 with: version-file: phino-version.txt - run: phino --version@@ -535,9 +535,9 @@ ```bash $ echo '⟦ x ↦ ξ.y, y ↦ ∅ ⟧' | phino sodg-F c0 x y-D c1 c0 y-P c0 x c1+F η0 x y+D η1 η0 y+P η0 x η1 ``` With `--drop-tests`, it skips the unit tests of every object, the attributes
phino.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: phino-version: 0.0.170+version: 0.0.171 license: MIT synopsis: Command-Line Manipulator of 𝜑-Calculus Expressions description: Please see the README on GitHub at <https://github.com/objectionary/phino#readme>
src/Sodg.hs view
@@ -134,7 +134,7 @@ sodg = either throwIO pure . commands vertex :: Int -> String-vertex idx = 'c' : show idx+vertex idx = 'η' : show idx printCommands :: [Command] -> String printCommands = concatMap ((++ "\n") . unwords . spelled)
test-resources/sodg-packs/bottom-alone.yaml view
@@ -3,5 +3,5 @@ --- input: '⊥' output: |- F c0- T c1+ F η0+ T η1
test-resources/sodg-packs/bottom-argument.yaml view
@@ -3,8 +3,8 @@ --- input: '⟦ a ↦ Φ.f( x ↦ ⊥ ) ⟧' output: |- F c0 a- D c1 c0 f- T c2- A c3 c1 x c2- P c0 a c3+ F η0 a+ D η1 η0 f+ T η2+ A η3 η1 x η2+ P η0 a η3
test-resources/sodg-packs/bottom-dispatch.yaml view
@@ -3,11 +3,11 @@ --- input: '⟦ x ↦ ⊥.foo, y ↦ ⊥( k ↦ ⟦⟧ ) ⟧' output: |- F c0 x y- T c1- D c2 c1 foo- P c0 x c2- T c3- F c4- A c5 c3 k c4- P c0 y c5+ F η0 x y+ T η1+ D η2 η1 foo+ P η0 x η2+ T η3+ F η4+ A η5 η3 k η4+ P η0 y η5
test-resources/sodg-packs/bottom.yaml view
@@ -3,8 +3,8 @@ --- input: '⟦ a ↦ ⟦ b ↦ ⊥ ⟧ ⟧' output: |- F c0 a- F c1 b- T c2- P c1 b c2- P c0 a c1+ F η0 a+ F η1 b+ T η2+ P η1 b η2+ P η0 a η1
test-resources/sodg-packs/empty-bytes-and-symbol.yaml view
@@ -3,8 +3,8 @@ --- input: '⟦ a ↦ ⟦ Δ ⤍ --, λ ⤍ 𝜎3 ⟧ ⟧' output: |- F c0 a- F c1- Δ c1 --- λ c1 𝜎3- P c0 a c1+ F η0 a+ F η1+ Δ η1 --+ λ η1 𝜎3+ P η0 a η1
test-resources/sodg-packs/empty.yaml view
@@ -3,4 +3,4 @@ --- input: '⟦⟧' output: |- F c0+ F η0
test-resources/sodg-packs/nested-xi.yaml view
@@ -3,11 +3,11 @@ --- input: '⟦ a ↦ ⟦ b ↦ ξ.c, c ↦ ξ ⟧, d ↦ ξ.a ⟧' output: |- F c0 a d- F c1 b c- D c2 c1 c- P c1 b c2- P c1 c c1- P c0 a c1- D c3 c0 a- P c0 d c3+ F η0 a d+ F η1 b c+ D η2 η1 c+ P η1 b η2+ P η1 c η1+ P η0 a η1+ D η3 η0 a+ P η0 d η3
test-resources/sodg-packs/not-formation.yaml view
@@ -3,6 +3,6 @@ --- input: 'Φ.foo.bar' output: |- F c0- D c1 c0 foo- D c2 c1 bar+ F η0+ D η1 η0 foo+ D η2 η1 bar
test-resources/sodg-packs/number.yaml view
@@ -3,11 +3,11 @@ --- input: '⟦ x ↦ 42 ⟧' output: |- F c0 x- D c1 c0 number- D c2 c0 bytes- F c3- Δ c3 40-45-00-00-00-00-00-00- A c4 c2 φ c3- A c5 c1 φ c4- P c0 x c5+ F η0 x+ D η1 η0 number+ D η2 η0 bytes+ F η3+ Δ η3 40-45-00-00-00-00-00-00+ A η4 η2 φ η3+ A η5 η1 φ η4+ P η0 x η5
test-resources/sodg-packs/order.yaml view
@@ -3,11 +3,11 @@ --- input: '⟦ order(qty, price) ↦ ⟦ cost ↦ ξ.qty.mul( x ↦ ξ.price ) ⟧ ⟧' output: |- F c0 order- F c1 qty price cost- D c2 c1 qty- D c3 c2 mul- D c4 c1 price- A c5 c3 x c4- P c1 cost c5- P c0 order c1+ F η0 order+ F η1 qty price cost+ D η2 η1 qty+ D η3 η2 mul+ D η4 η1 price+ A η5 η3 x η4+ P η1 cost η5+ P η0 order η1
test-resources/sodg-packs/root-rho-delta-lambda.yaml view
@@ -7,20 +7,20 @@ bar ↦ ⟦ z ↦ ∅, t ↦ ξ.ρ.z ⟧ ⟧ output: |- F c0 foo bar- F c1 x y- F c2- Δ c2 2A-- P c1 x c2- D c3 c0 bar- D c4 c1 x- A c5 c3 z c4- D c6 c5 t- P c1 y c6- λ c1 L_foo- P c0 foo c1- F c7 z t- D c8 c7 ρ- D c9 c8 z- P c7 t c9- P c0 bar c7+ F η0 foo bar+ F η1 x y+ F η2+ Δ η2 2A-+ P η1 x η2+ D η3 η0 bar+ D η4 η1 x+ A η5 η3 z η4+ D η6 η5 t+ P η1 y η6+ λ η1 L_foo+ P η0 foo η1+ F η7 z t+ D η8 η7 ρ+ D η9 η8 z+ P η7 t η9+ P η0 bar η7
test-resources/sodg-packs/spelled-rho.yaml view
@@ -3,6 +3,6 @@ --- input: '⟦ ρ ↦ ∅, φ ↦ ξ.ρ ⟧' output: |- F c0 ρ φ- D c1 c0 ρ- P c0 φ c1+ F η0 ρ φ+ D η1 η0 ρ+ P η0 φ η1
test-resources/sodg-packs/two-arguments.yaml view
@@ -3,9 +3,9 @@ --- input: '⟦ x ↦ Φ.f( a ↦ ξ.y, b ↦ Φ ), y ↦ ∅ ⟧' output: |- F c0 x y- D c1 c0 f- D c2 c0 y- A c3 c1 a c2- A c4 c3 b c0- P c0 x c4+ F η0 x y+ D η1 η0 f+ D η2 η0 y+ A η3 η1 a η2+ A η4 η3 b η0+ P η0 x η4
test/CLISpec.hs view
@@ -4922,30 +4922,30 @@ it "takes from stdin" $ withStdin "⟦ x ↦ ξ.y, y ↦ ∅ ⟧" $- testCLISucceeded ["sodg"] ["F c0 x y\nD c1 c0 y\nP c0 x c1\n"]+ testCLISucceeded ["sodg"] ["F η0 x y\nD η1 η0 y\nP η0 x η1\n"] it "takes from file" $- testCLISucceeded ["sodg", resource "foo.phi"] ["F c0 foo\nD c1 c0 org\nD c2 c1 eolang\nD c3 c2 x\nP c0 foo c3\n"]+ testCLISucceeded ["sodg", resource "foo.phi"] ["F η0 foo\nD η1 η0 org\nD η2 η1 eolang\nD η3 η2 x\nP η0 foo η3\n"] it "reads XMIR" $ withStdin "<object><o name=\"app\"><o name=\"x\" base=\"Φ.number\"/></o></object>" $- testCLISucceeded ["sodg", "--input=xmir"] ["F c0 app\nF c1 x\nD c2 c0 number\nP c1 x c2\nP c0 app c1\n"]+ testCLISucceeded ["sodg", "--input=xmir"] ["F η0 app\nF η1 x\nD η2 η0 number\nP η1 x η2\nP η0 app η1\n"] it "prints ⊥ as a terminator" $ withStdin "⟦ a ↦ ⊥ ⟧" $- testCLISucceeded ["sodg"] ["F c0 a\nT c1\nP c0 a c1\n"]+ testCLISucceeded ["sodg"] ["F η0 a\nT η1\nP η0 a η1\n"] it "drops the tests with --drop-tests" $ withStdin "⟦ a ↦ ⟦ x ↦ ∅, p🌵works ↦ ⟦ φ ↦ ξ.ρ.x ⟧, n🌵fails ↦ Φ.b ⟧ ⟧" $- testCLISucceeded ["sodg", "--drop-tests"] ["F c0 a\nF c1 x\nP c0 a c1\n"]+ testCLISucceeded ["sodg", "--drop-tests"] ["F η0 a\nF η1 x\nP η0 a η1\n"] it "drops the tests of XMIR with --drop-tests" $ withStdin "<object><o name=\"app\"><o name=\"x\" base=\"Φ.number\"/><o name=\"+works\"><o name=\"φ\" base=\"Φ.true\"/></o></o></object>" $- testCLISucceeded ["sodg", "--input=xmir", "--drop-tests"] ["F c0 app\nF c1 x\nD c2 c0 number\nP c1 x c2\nP c0 app c1\n"]+ testCLISucceeded ["sodg", "--input=xmir", "--drop-tests"] ["F η0 app\nF η1 x\nD η2 η0 number\nP η1 x η2\nP η0 app η1\n"] it "keeps the tests without --drop-tests" $ withStdin "⟦ p🌵works ↦ Φ.b ⟧" $- testCLISucceeded ["sodg"] ["F c0 p🌵works\nD c1 c0 b\nP c0 p🌵works c1\n"]+ testCLISucceeded ["sodg"] ["F η0 p🌵works\nD η1 η0 b\nP η0 p🌵works η1\n"] it "rejects an option of other commands" $ withStdin "⟦⟧" $