Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/