commit 9d746f24b221bd854e590227a89be6a1bd88a748 parent 6140a3c153f2d8ef486f115317640243bbb255da Author: neau <neau@web> Date: Wed, 22 Jun 2022 00:29:55 +0200 empty web commit Diffstat:
| M | stack-based.mdwn | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/stack-based.mdwn b/stack-based.mdwn @@ -6,9 +6,9 @@ Stack machines are arguably the simplest kind architecture. Their LIFO structure From these primitives, the basic stack operations can be created: -* DROP a b Discard top item. -* NIP a c Discard second item. -* SWAP a c b Bring second item to top. -* ROT b c a Bring third item to top. -* DUP a b c c Copy top item. -* OVER a b c b Copy second item to top. +* DROP(a b) Discard top item. +* NIP(a c) Discard second item. +* SWAP(a c b) Bring second item to top. +* ROT(b c a) Bring third item to top. +* DUP(a b c c) Copy top item. +* OVER(a b c b) Copy second item to top.