mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
25 lines
501 B
Plaintext
25 lines
501 B
Plaintext
Kind.Term.parser.slf
|
|
: (Parser.Guard Kind.PreTerm)
|
|
= (Parser.Guard.text
|
|
Kind.PreTerm
|
|
"$"
|
|
(Kind.Term.parser.bind
|
|
Unit
|
|
(Parser.text "$")
|
|
λ_
|
|
(Kind.Term.parser.bind
|
|
String
|
|
Parser.name
|
|
λnam
|
|
(Kind.Term.parser.bind
|
|
Kind.PreTerm
|
|
Kind.Term.parser
|
|
λbod
|
|
(Kind.Term.parser.pure
|
|
λscp
|
|
(Kind.slf nam λx (bod (Kind.Scope.extend nam x scp)))
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |