hnock
Version 0.4.0 revision 0 uploaded by JaredTobin.
Package meta
- Synopsis
- A Nock interpreter.
- Description
A Nock interpreter.
From the shell, simply pipe Nock expressions into the hnock executable:
$ echo '*[[[4 5] [6 14 15]] [0 7]]' | hnock [14 15]
For playing around in GHCi, import the Nock library and use hnock to parse and evaluate Nock expressions:
*Nock> hnock "*[[[4 5] [6 14 15]] [0 7]]" [14 15]
To evaluate raw nock Nouns, i.e. to compute nock(a) for some noun a, use the nock function:
*Nock> let expression = hnock "[[[4 5] [6 14 15]] [0 7]]" *Nock> expression [[[4 5] [6 [14 15]]] [0 7]] *Nock> nock expression [14 15]
- Author
- Jared Tobin
- Bug reports
- n/a
- Category
- Language
- Copyright
- n/a
- Homepage
- https://github.com/jtobin/hnock
- Maintainer
- jared@jtobin.io
- Package URL
- n/a
- Stability
- n/a