• R/O
  • HTTP
  • SSH
  • HTTPS

Thun: Commit

Interpreter and library.


Commit MetaInfo

Révisiond0a253c503988e5a8f002f7e7d855e1753002c24 (tree)
l'heure2022-04-06 03:15:34
AuteurSimon Forman <sforman@hush...>
CommiterSimon Forman

Message de Log

Need to keep definition for ucons around

the Nim implementation has first and rest but not uncons.

Change Summary

Modification

--- a/implementations/Nim/defs.txt
+++ b/implementations/Nim/defs.txt
@@ -18,7 +18,7 @@ b [i] dip i
1818 binary unary popd
1919 ccccons ccons ccons
2020 ccons cons cons
21-clear stack bool [pop stack bool] loop
21+clear [] swaack pop
2222 cleave fork popdd
2323 clop cleave popdd
2424 codi cons dip
@@ -33,6 +33,7 @@ dupdd [dup] dipd
3333 dupdip dupd dip
3434 dupdipd dup dipd
3535 enstacken stack [clear] dip
36+first uncons pop
3637 flatten <{} [concat] step
3738 fork [i] app2
3839 fourth rest third
@@ -65,7 +66,7 @@ quoted [unit] dip
6566 range [0 <=] [1 - dup] anamorphism
6667 range_to_zero unit [down_to_zero] infra
6768 reco rest cons
68-rest [pop] infra
69+rest uncons popd
6970 reverse <{} shunt
7071 roll> swap swapd
7172 roll< swapd swap
--- a/implementations/defs.txt
+++ b/implementations/defs.txt
@@ -96,6 +96,7 @@ ternary binary popd
9696 third rest second
9797 tuck dup swapd
9898 unary nullary popd
99+uncons [first] [rest] cleave
99100 unit [] cons
100101 unquoted [i] dip
101102 unswons uncons swap
Afficher sur ancien navigateur de dépôt.