From 921952f852652e282a56b09928697255698c65bf Mon Sep 17 00:00:00 2001 From: Jesse Paroz Date: Sun, 1 Jan 2017 13:46:13 +1000 Subject: Use forth syntax highlighting --- forth.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forth.html.markdown') diff --git a/forth.html.markdown b/forth.html.markdown index 55d755b2..09f3beb0 100644 --- a/forth.html.markdown +++ b/forth.html.markdown @@ -12,7 +12,7 @@ such as Open Firmware. It's also used by NASA. Note: This article focuses predominantly on the Gforth implementation of Forth, but most of what is written here should work elsewhere. -``` +```forth \ This is a comment ( This is also a comment but it's only used when defining words ) -- cgit v1.2.3 From 6b8264756b574be0af84e0a8a104cfa75c0027bb Mon Sep 17 00:00:00 2001 From: "Joseph Gabriel J. Adaoag" Date: Fri, 13 Oct 2017 16:20:14 +0800 Subject: Fix tuck definition --- forth.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forth.html.markdown') diff --git a/forth.html.markdown b/forth.html.markdown index 09f3beb0..ff094017 100644 --- a/forth.html.markdown +++ b/forth.html.markdown @@ -59,7 +59,7 @@ Forth, but most of what is written here should work elsewhere. \ ---------------------- More Advanced Stack Manipulation ---------------------- -1 2 3 4 tuck \ duplicate the top item into the second slot: 1 2 4 3 4 ok +1 2 3 4 tuck \ duplicate the top item below the second slot: 1 2 4 3 4 ok 1 2 3 4 over \ duplicate the second item to the top: 1 2 3 4 3 ok 1 2 3 4 2 roll \ *move* the item at that position to the top: 1 3 4 2 ok 1 2 3 4 2 pick \ *duplicate* the item at that position to the top: 1 2 3 4 2 ok -- cgit v1.2.3