diff options
| author | hyphz <drmoose94@gmail.com> | 2017-07-18 17:56:42 +0100 | 
|---|---|---|
| committer | hyphz <drmoose94@gmail.com> | 2017-07-18 17:56:42 +0100 | 
| commit | 5ab5cb9800822d607be2c6ac943377811db98158 (patch) | |
| tree | 3c804707822744c20da1de54ff60fc8c3197781b /forth.html.markdown | |
| parent | 62102d02992f83b3a1fb745a39f36332dd4435b7 (diff) | |
| parent | 6e7c5c793327f4a63b13e555894597915ca91fda (diff) | |
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'forth.html.markdown')
| -rw-r--r-- | forth.html.markdown | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/forth.html.markdown b/forth.html.markdown index b4a5581b..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 ) @@ -54,7 +54,7 @@ Forth, but most of what is written here should work elsewhere.  3 dup -          \ duplicate the top item (1st now equals 2nd): 3 - 3  2 5 swap /       \ swap the top with the second element:        5 / 2  6 4 5 rot .s     \ rotate the top 3 elements:                   4 5 6 -4 0 drop 2 /     \ remove the top item (dont print to screen):  4 / 2 +4 0 drop 2 /     \ remove the top item (don't print to screen):  4 / 2  1 2 3 nip .s     \ remove the second item (similar to drop):    1 3  \ ---------------------- More Advanced Stack Manipulation ---------------------- | 
