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