A nock interpreter written in racket.
I don't know racket well but I use it for a PL course. I'm sure theres a way to package / test this interpreter properly. Maybe later.
The nock interpreter and naive tests are in nock.rkt
use:
- Install DrRacket
- Open
nock.rkt
- Play around with it in the REPL window
This repo also includes rkt_noun.py
which is just a script for converting regular noun syntax into the syntax needed for use in nock.rkt
use:
$python rkt_noun.py "[[11 22] [33 44] 55]"
(cell (cell 11 22) (cell (cell 33 44) 55))