Skip to content

Commit

Permalink
extend readme a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangj committed May 8, 2020
1 parent 4b63da5 commit 454467f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ def square (int :: int)
def ask ()
[7 square 7 - answer !]
; remove the minus sign if it has one
def abs (int :: int)
[this 0 < if:[0 alt -]]
```

The names of stack shuffling words are slightly different from most concatenative languages.
Expand All @@ -49,6 +45,17 @@ dropem | 2drop
nip | nip
tuck | tuck

Use `if` as a control structure

```
; remove the minus sign if it has one
def abs (int :: int)
[this 0 < if:[0 alt -]]
def max (int int :: int)
[them > if:[,] else:[nip]]
```

Null-nullable references are called addresses.

```
Expand Down

0 comments on commit 454467f

Please sign in to comment.