mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 16:36:13 +03:00
9 lines
206 B
Plaintext
9 lines
206 B
Plaintext
Kind.Book.parse
|
|
: ∀(code: String)
|
|
Kind.Book
|
|
= λcode
|
|
let P = λx(Kind.Book)
|
|
let done = λcode λbook book
|
|
let fail = λerror (String.Map.new Kind.Term)
|
|
(~(Kind.Book.parser code) P done fail)
|