Feat: documentation, UI/UX
This commit is contained in:
@@ -13,8 +13,7 @@ Use `:` to start a definition and `;` to end it:
|
||||
This creates a word called `double` that duplicates the top value and adds it to itself. Now you can use it:
|
||||
|
||||
```forth
|
||||
3 double ;; leaves 6 on the stack
|
||||
5 double ;; leaves 10 on the stack
|
||||
3 double print ;; leaves 6 on the stack
|
||||
```
|
||||
|
||||
The definition is simple: everything between `:` and `;` becomes the body of the word.
|
||||
|
||||
Reference in New Issue
Block a user