mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:56:48 +03:00
9 lines
189 B
Plaintext
9 lines
189 B
Plaintext
Parser.Guard.text
|
|
: ∀(A: *) ∀(text: String) ∀(then: (Parser A))
|
|
(Parser.Guard A)
|
|
= λA λtext λthen
|
|
(Parser.Guard.new
|
|
A
|
|
(Parser.skip Bool (Parser.test text))
|
|
then
|
|
) |