Update README.md

This commit is contained in:
Attila Magyar 2021-06-19 21:43:27 +02:00 committed by GitHub
parent 63f2d52a53
commit 03936643a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,13 +120,29 @@ For example:
Control structres are compile time words with no interpretation semantics. Control structres are compile time words with no interpretation semantics.
## Locals ## 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 ## List
## Maps
## Quotations ## Quotations
## HTTP ## HTTP