Nock 5K interpreter in Haskell
Go to file
Steven Dee 2c33b12f83 Collapse the fas recursive cases together
This "obviously" works. Just in case, I've added a check.
2013-10-26 17:58:05 -04:00
Language Collapse the fas recursive cases together 2013-10-26 17:58:05 -04:00
hsnock.cabal Bump to 0.4.1 2013-10-26 16:37:27 -04:00
hsnock.lhs Clean things up a bit 2013-10-20 22:09:42 -04:00
README Add a real README 2013-10-21 10:12:27 -04:00
Setup.hs Cabal-ize and readline-ize 2013-10-20 18:43:55 -04:00
test.hs Collapse the fas recursive cases together 2013-10-26 17:58:05 -04:00

Usage:
./hsnock.lhs

Try forms like:
[42 1 0]
[42 0 1]
[[1 3 2] 0 3]
[42 [8 [1 0] 8 [1 6 [5 [0 7] 4 0 6] [0 6] 9 2 [0 2] [4 0 6] 0 7] 9 2 0 1]]
[[42 43] [8 [1 0] [8 [1 [6 [5 [0 6] [0 14]] [1 0] [6 [5 [0 6] [0 15]] [1 1] [9 2 [[0 2] [4 0 6] [0 7]]]]]] [9 2 0 1]]]]
[[43 42] [8 [1 0] [8 [1 [6 [5 [0 6] [0 14]] [1 0] [6 [5 [0 6] [0 15]] [1 1] [9 2 [[0 2] [4 0 6] [0 7]]]]]] [9 2 0 1]]]]

See also:
http://www.urbit.org/2013/08/22/Chapter-2-nock.html