Skip to content
Interpreter for the Nock language, written in Haskell
Haskell
Failed to load latest commit information.
Nock.hs
Parser.hs Allow 'variables' in Nock expressions. Jan 20, 2010
README.markdown Add a parser for Nock pseudocode. Jan 19, 2010

README.markdown

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.

Something went wrong with that request. Please try again.