Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroflag authored Feb 18, 2025
1 parent d5a43f2 commit 93b61c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,26 @@ However, this performance difference is expected to improve in the future.
* The majority of the Equinox words are macros (immediate words), including the arithmetic operators and stack manipulation words.
* In the current version user defined immediate words are not supported.

## Syntax That Fits on a Postcard

#### Example:

```forth
alias: 2^n 2 swap #( math.pow 2 1 )
\ define a local word
:: sum-of-pows ( -- n ) 0 10 0 do i 2^n + loop ;
var map
{ $key [ 1 2 sums-of-pows ] } -> map
map.key 3 @ .
map.key 1 42 !
\ define a Lua callback
: love.keypressed (: key :)
key $escape = if #( os.exit ) then ;
```

## Documentation
* [Core](doc/core.md)
* [Variables](doc/vars.md)
Expand Down

0 comments on commit 93b61c5

Please sign in to comment.