mirror of
https://github.com/zeroflag/fcl.git
synced 2025-01-12 20:01:25 +01:00
Update README.md
This commit is contained in:
parent
e99faa675a
commit
ba61adf5c9
1 changed files with 2 additions and 4 deletions
|
@ -3,10 +3,8 @@
|
||||||
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 ( n -- n* ) -> n ( local variable )
|
||||||
|
0 1 { 2dup + } n times ; ( quotation )
|
||||||
: nfib ( n -- n* ) -> n ( local variable )
|
|
||||||
0 1 { fib } n 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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue