mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 16:25:54 +03:00
34 lines
704 B
Plaintext
34 lines
704 B
Plaintext
Kind.Term.parser.op2
|
|
: (Parser.Guard Kind.PreTerm)
|
|
= (Parser.Guard.text
|
|
Kind.PreTerm
|
|
"#("
|
|
(Kind.Term.parser.bind
|
|
_
|
|
(Parser.text "#(")
|
|
λ_
|
|
(Kind.Term.parser.bind
|
|
_
|
|
Kind.Oper.parser
|
|
λopr
|
|
(Kind.Term.parser.bind
|
|
Kind.PreTerm
|
|
Kind.Term.parser
|
|
λfst
|
|
(Kind.Term.parser.bind
|
|
_
|
|
Kind.Term.parser
|
|
λsnd
|
|
(Kind.Term.parser.bind
|
|
Unit
|
|
(Parser.text ")")
|
|
λ_
|
|
(Kind.Term.parser.pure
|
|
λscp (Kind.op2 opr (fst scp) (snd scp))
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |