mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:56:48 +03:00
8 lines
243 B
Plaintext
8 lines
243 B
Plaintext
Kind.Term.parse
|
|
: ∀(code: String)
|
|
Kind.Term
|
|
= λcode
|
|
let P = λx(Kind.Term)
|
|
let done = λcode λterm (term (List.nil Kind.Binder))
|
|
let fail = λerror (Kind.hol "error" (List.nil Kind.Term))
|
|
(~(Kind.Term.parser code) P done fail) |