Idris2Doc : Text.Parse.Syntax

Text.Parse.Syntax

(source)

Definitions

pure : a->GrammarFalsetea
Totality: total
Visibility: public export
(<*>) : Grammarb1te (a->b) ->Grammarb2tea->Grammar (b1|| Delay b2) teb
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 3
(*>) : Grammarb1te () ->Grammarb2tea->Grammar (b1|| Delay b2) tea
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 3
seqt : Grammarbte () ->GrammarTruetea->GrammarTruetea
  Version of `(*>)` specialized for strict second grammars

Totality: total
Visibility: public export
(<*) : Grammarb1tea->Grammarb2te () ->Grammar (b1|| Delay b2) tea
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 3
before : Interpolationt=>Eqt=>Grammarbtea->t->GrammarTruetea
  Drops the given token after parsing the given grammar

Totality: total
Visibility: public export
after : Interpolationt=>Eqt=>t->Grammarbtea->GrammarTruetea
  Drops the given token before parsing the given grammar

Totality: total
Visibility: public export
between : Interpolationt=>Eqt=>t->t->Grammarbtea->GrammarTruetea
  Wrapps the given grammar between an opening and closing token.

Note: This fails with an `Unclosed` exception if the end of
input is reached without closing the opening token.

Totality: total
Visibility: public export
optional : Grammarbtea->GrammarFalsete (Maybea)
Totality: total
Visibility: public export
manyOnto : (InnerErrore->Bool) ->GrammarTruetea->SnocLista->AccGrammarFalsete (Lista)
Totality: total
Visibility: public export
manyF : (InnerErrore->Bool) ->GrammarTruetea->GrammarFalsete (Lista)
  Runs the given parser zero or more times, accumulating the
results in a list.

Note: This will fail in case of a fatal error, which allows for
more fine-grained control over whether a parser is successful
or not.

Totality: total
Visibility: public export
many : GrammarTruetea->GrammarFalsete (Lista)
  Runs the given parser zero or more times, accumulating the
results in a list.

Note: This will never fail, even if the given parser fails
with an error that should be fatal. User `manyF` to
have the ability to specify fatal errors.

Totality: total
Visibility: public export
someF : (InnerErrore->Bool) ->GrammarTruetea->GrammarTruete (List1a)
  Runs the given parser one or more times, accumulating the
results in a non-empty list.

Note: This will fail in case of a fatal error, even when parsing
the tail of the list, which allows for
more fine-grained control over whether a parser is successful
or not.

Totality: total
Visibility: public export
some : GrammarTruetea->GrammarTruete (List1a)
  Runs the given parser one or more times, accumulating the
results in a non-empty list.

Note: User `manyF` for the ability to specify fatal errors.

Totality: total
Visibility: public export
sepByF1 : (InnerErrore->Bool) ->Grammarbte () ->GrammarTruetea->GrammarTruete (List1a)
  Runs the given parser one or more times, separating occurences with
the given separator.

Note: This will fail in case of a fatal error, even when parsing
the tail of the list, which allows for
more fine-grained control over whether a parser is successful
or not.

Consider using `sepByExact1` for better error behavior,
if the separator consists of a single, constant token.

Totality: total
Visibility: public export
sepByExact1 : Interpolationt=>Eqt=>Eqe=>t->GrammarTruetea->GrammarTruete (List1a)
  Like `sepBy1` but with better error behavior:
If the separator was recognized, this fails instead of
aborting with a partial list.

Totality: total
Visibility: public export