mirror of
https://github.com/russolsen/sallyforth
synced 2024-11-16 19:48:49 +01:00
Sync docs up with new code.
This commit is contained in:
parent
9bad7b958f
commit
5cdae26aeb
1 changed files with 3 additions and 3 deletions
|
@ -91,12 +91,12 @@ Use it wisely.
|
|||
|
||||
You can also define your own words. A word defintion starts with
|
||||
a colon, followed by the name of your new word, followed by
|
||||
the contents of your new word, followed by a semicolon.
|
||||
Keep in mind that everything -- including the colon and semicolon,
|
||||
the contents of your new word, enclosed in braces.
|
||||
Keep in mind that everything -- including the colon and the braces --
|
||||
needs to be set off with whitespace:
|
||||
|
||||
```
|
||||
: hello-world "Hello, world!" p ;
|
||||
: hello-world { "Hello, world!" p }
|
||||
```
|
||||
|
||||
Once your new word is defined you can use it like any other word:
|
||||
|
|
Loading…
Reference in a new issue