mirror of
https://github.com/zeroflag/fcl.git
synced 2025-01-11 20:01:10 +01:00
Update README.md
This commit is contained in:
parent
63f2d52a53
commit
03936643a1
1 changed files with 18 additions and 2 deletions
20
README.md
20
README.md
|
@ -120,13 +120,29 @@ For example:
|
|||
|
||||
Control structres are compile time words with no interpretation semantics.
|
||||
|
||||
|
||||
## Locals
|
||||
|
||||
## Maps
|
||||
```
|
||||
: example ( a b -- n )
|
||||
-> b -> a 42 -> c 0 => d
|
||||
a b + c * d !
|
||||
d @ ;
|
||||
```
|
||||
|
||||
There are two types of locals in FCL. Local constant `->` and local variable `=>`.
|
||||
|
||||
`-> name` loads the top of the stack into the local, called `name`.
|
||||
|
||||
`name` pushes the value of the local.
|
||||
|
||||
`=> name` loads the top of the stack into the local, called `name`.
|
||||
|
||||
`name` pushes the reference of the local. `name @` pushes the value of the local.
|
||||
|
||||
## List
|
||||
|
||||
## Maps
|
||||
|
||||
## Quotations
|
||||
|
||||
## HTTP
|
||||
|
|
Loading…
Reference in a new issue