Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdan/forth.rkt
A forth interpreter written in Racket
https://github.com/jdan/forth.rkt
forth racket stack
Last synced: about 1 month ago
JSON representation
A forth interpreter written in Racket
- Host: GitHub
- URL: https://github.com/jdan/forth.rkt
- Owner: jdan
- License: mit
- Created: 2021-09-04T14:52:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-05T00:48:13.000Z (over 3 years ago)
- Last Synced: 2024-11-08T13:41:03.803Z (3 months ago)
- Topics: forth, racket, stack
- Language: Racket
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## forth.rkt
A [forth](https://en.wikipedia.org/wiki/Forth_(programming_language)) interpreter written in Racket.
### example
```rkt
(eval
'(: fac
dup 0 =
[ drop 1 ] ; return 1
[ dup 1 - ; n, n-1
fac ; n, fac(n-1)
* ] ; n * fac(n-1)
if \;10 fac))
; => '(3628800))
```### inspo
https://factorcode.org/