Update README.md

This commit is contained in:
Attila Magyar 2021-06-19 21:08:32 +02:00 committed by GitHub
parent c7c3153a77
commit d8087e23d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,10 +2,21 @@
FCL is the programming language of an Android app called Forth Calculator. It is a Forth dialect with optional local variables, complex data structures, quotations and Java interoperability. FCL is the programming language of an Android app called Forth Calculator. It is a Forth dialect with optional local variables, complex data structures, quotations and Java interoperability.
```forth ```forth
: fib ( n1 n2 -- n1 n2 n3 ) 2dup + ; : fib ( n1 n2 -- n1 n2 n3 ) 2dup + ;
: nfib ( n -- .. ) -> n ( local variable ) : nfib ( n -- .. ) -> n ( local variable )
0 1 n { fib } times ; ( quotation ) 0 1 n { fib } times ; ( quotation )
``` ```
Besides all the high-level features, FCL supports the traditional Forth programming structures and uses the same compilation model (compile/interpret mode, dictionary, immediate words, etc.) as traditional Forth systems.
## The Syntax
## Locals
## Maps
## List
## HTTP