Skip to content

lukechampine/nock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nock

GoDoc Go Report Card

go get github.com/lukechampine/nock

nock implements a simple Nock interpreter, according the spec available at https://urbit.org/docs/nock/definition.

This interpreter assumes that its input is well-formed, and does not support atoms larger than a machine int.

Example

decrement := nock.Parse(`[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]]`)
program := nock.Cell(nock.Atom(42), decrement)
result := nock.Nock(program)
println(result) // 41

About

A simple Nock interpreter in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages