Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (22 sloc) 903 Bytes

Mynock

This is an interpreter for C. Guy Yarvin's Nock language, written in Haskell. (For a longer explanation of Yarvin's rationale for Nock, see Urbit: functional programming from scratch.)

For a simple Nock REPL, just load the Parser module in ghci:

ghci Parser.hs

and then use the "eval" function to parse and reduce Nock formulas:

> eval "=[1 *[3 1 1]]"
0
> eval "*[[4 5 6] 0 3]"
[5 6]

That's it! Enjoy.

Copyright

To the extent possible under law, Matt Brubeck has waived all copyright and related or neighboring rights to Mynock. This work is published from the United States.

Jump to Line
Something went wrong with that request. Please try again.