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
b0e8342f42
commit
c5e11a61ad
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ FCL is the programming language of an Android app called Forth Calculator. It is
|
||||||
```forth
|
```forth
|
||||||
: fib ( n1 n2 -- n1 n2 n3 ) 2dup + ;
|
: fib ( n1 n2 -- n1 n2 n3 ) 2dup + ;
|
||||||
|
|
||||||
: nfib ( n -- .. ) -> n ( local variable )
|
: nfib ( n -- n* ) -> n ( local variable )
|
||||||
0 1 { fib } n times ; ( quotation )
|
0 1 { fib } n times ; ( quotation )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ For example:
|
||||||
##### while loop
|
##### while loop
|
||||||
|
|
||||||
```forth
|
```forth
|
||||||
begin .. <bool> while <loop-body> repeat
|
begin <bool-exp> while <loop-body> repeat
|
||||||
```
|
```
|
||||||
For example:
|
For example:
|
||||||
```forth
|
```forth
|
||||||
|
|
Loading…
Reference in a new issue