hsnock-0.5.1: Nock 5K interpreter.

Safe HaskellNone

Language.Nock5K

Contents

Description

Implementation of the Nock 5K spec.

Synopsis

Structures

data Noun Source

A noun is an atom or a cell. An atom is any natural number. A cell is an ordered pair of nouns.

Constructors

Atom !Integer 
!Noun :- !Noun 

Instances

type Nock = Either StringSource

Monad representing either a computed result or an error message.

Reduction

nock :: Noun -> Nock NounSource

  nock(a)           *a

Parser

REPL