Update README.md

This commit is contained in:
Attila Magyar 2021-06-25 15:07:02 +02:00 committed by GitHub
parent 2ca31fe44c
commit 07f89b6ccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ In the loop body we use two more locals to name the output of the `/mod` which r
### Implementation notes ### Implementation notes
Local variable support is implemented in FCL itself. Locals are stored in a parameter stack. Both `->` and `=>` are immediate parsing words. They have both runtime and compilation semantics. They compile an inline *lookup word* within the enclosing word. The lookup word is removed from the dictionary after the compilation is finished. Local variable support is [implemented](main/src/main/res/raw/locals.forth) in FCL itself. Locals are stored in a parameter stack. Both `->` and `=>` are immediate parsing words. They have both runtime and compilation semantics. They compile an inline *lookup word* within the enclosing word. The lookup word is removed from the dictionary after the compilation is finished.
At runtime they load the top of the stack into the proper location of the parameter stack which is associated to the current local. At runtime they load the top of the stack into the proper location of the parameter stack which is associated to the current local.