Idris2Doc : Text.Parse.Core

Text.Parse.Core

(source)

Definitions

dataRes : Bool-> (t : Type) ->List (Boundedt) ->Type->Type->Type->Type
  Result of running a parser.

Totality: total
Visibility: public export
Constructors:
Fail : Bool->List1 (Bounded (InnerErrore)) ->Resbttsstateea
Succ : state->Boundeda-> (toks : List (Boundedt)) ->Suffixbtoksts->Resbttsstateea

Hint: 
FailParse (Resbttsstatee) e
merge : Boundedz->Resbttssea->Resbttssea
Totality: total
Visibility: public export
succ : Resbttssea->SuffixTruetsts'->Resb1tts'sea
Totality: total
Visibility: export
0inf : Bool->Type->Type
Totality: total
Visibility: public export
dataGrammar : Bool->Type->Type->Type->Type->Type
Totality: total
Visibility: public export
Constructors:
Lift : (state-> (ts : List (Boundedt)) ->Resbttsstateea) ->Grammarbstatetea
AppEat : GrammarTruestatete (a->b) -> Inf (Grammarb2statetea) ->GrammarTruestateteb
App : Grammarb1statete (a->b) ->Grammarb2statetea->Grammar (b1|| Delay b2) stateteb
BindEat : GrammarTruestatetea-> Inf (a->Grammarb2stateteb) ->GrammarTruestateteb
(>>=) : Grammarb1statetea-> (a->Grammarb2stateteb) ->Grammar (b1|| Delay b2) stateteb
ThenEat : GrammarTruestatetea-> Inf (Grammarb2stateteb) ->GrammarTruestateteb
(>>) : Grammarb1statetea->Grammarb2stateteb->Grammar (b1|| Delay b2) stateteb
Alt : Grammarb1statetea-> Lazy (Grammarb2statetea) ->Grammar (b1&& Delay b2) statetea
Bounds : Grammarbstatetea->Grammarbstatete (Boundeda)
Try : Grammarbstatetea->Grammarbstatetea

Hints:
FailParse (Grammarbstatete) e
Functor (Grammarbste)
(<|>) : Grammarb1statetea-> Lazy (Grammarb2statetea) ->Grammar (b1&& Delay b2) statetea
Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 2
pure : a->GrammarFalsestatetea
Totality: total
Visibility: public export
(<*>) : Grammarb1statete (a->b) ->infb1 (Grammarb2statetea) ->Grammar (b1|| Delay b2) stateteb
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 3
(*>) : Grammarb1statetea->Grammarb2stateteb->Grammar (b1|| Delay b2) stateteb
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 3
(<*) : Grammarb1statetea->Grammarb2stateteb->Grammar (b1|| Delay b2) statetea
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 3
nextIs : Lazy e-> (t->Bool) ->GrammarFalsestet
  Check whether the next token satisfies a predicate

Totality: total
Visibility: public export
peek : GrammarFalsestet
  Look at the next token in the input

Totality: total
Visibility: public export
readHead : (t->Either (InnerErrore) a) ->GrammarTruestea
  Look at the next token in the input

Totality: total
Visibility: public export
terminal : Interpolationt=> (t->Maybea) ->GrammarTruestea
  Look at the next token in the input

Totality: total
Visibility: public export
is : Interpolationt=>Eqt=>t->GrammarTrueste ()
  Look at the next token in the input

Totality: total
Visibility: public export
option : a->Grammarbstatetea->GrammarFalsestatetea
  Optionally parse a thing, with a default value if the grammar doesn't
match. May match the empty input.

Totality: total
Visibility: export
optional : Grammarbstatetea->GrammarFalsestatete (Maybea)
  Optionally parse a thing, with a default value if the grammar doesn't
match. May match the empty input.

Totality: total
Visibility: export
some : GrammarTruestea->GrammarTrueste (List1a)
Totality: total
Visibility: public export
many : GrammarTruestea->GrammarFalseste (Lista)
Totality: total
Visibility: public export
someTill : Grammarbstex->GrammarTruestea->GrammarTrueste (List1a)
  Parse one or more instances of `p` until `end` succeeds, returning the
list of values from `p`. Guaranteed to consume input.

Totality: total
Visibility: export
manyTill : Grammarbstex->GrammarTruestea->Grammarbste (Lista)
  Parse zero or more instances of `p` until `end` succeeds, returning the
list of values from `p`. Guaranteed to consume input if `end` consumes.

Totality: total
Visibility: export
afterSome : GrammarTruestex->Grammarbstea->GrammarTruestea
  Parse one or more instance of `skip` until `p` is encountered,
returning its value.

Totality: total
Visibility: export
afterMany : GrammarTruestex->Grammarbstea->Grammarbstea
  Parse zero or more instance of `skip` until `p` is encountered,
returning its value.

Totality: total
Visibility: export
sepBy1 : GrammarTruestes->Grammarbstea->Grammarbste (List1a)
  Parse one or more things, each separated by another thing.

Totality: total
Visibility: export
sepBy : GrammarTruestes->Grammarbstea->GrammarFalseste (Lista)
  Parse zero or more things, each separated by another thing. May
match the empty input.

Totality: total
Visibility: export
sepEndBy1 : GrammarTruestes->Grammarbstea->Grammarbste (List1a)
  Parse one or more instances of `p` separated by and optionally terminated by
`sep`.

Totality: total
Visibility: export
sepEndBy : GrammarTruestes->Grammarbstea->GrammarFalseste (Lista)
  Parse zero or more instances of `p`, separated by and optionally terminated
by `sep`. Will not match a separator by itself.

Totality: total
Visibility: export
endBy1 : GrammarTruestes->Grammarbstea->GrammarTrueste (List1a)
  Parse one or more instances of `p`, separated and terminated by `sep`.

Totality: total
Visibility: export
endBy : GrammarTruestes->Grammarbstea->GrammarFalseste (Lista)
Totality: total
Visibility: export
between : GrammarTruestel->GrammarTruester->Grammarbstea->GrammarTruestea
  Parse an instance of `p` that is between `left` and `right`.

Totality: total
Visibility: export
parse : Grammarbstatetea->state->List (Boundedt) ->Either (List1 (Bounded (InnerErrore))) (state, (a, List (Boundedt)))
Totality: total
Visibility: export
lexFull : Interpolationt=>Origin->Tokenizeret-> (t->Bool) ->String->Either (Bounded (InnerErrore)) (List (Boundedt))
  Given a tokenizer and an input string, return a list of recognised tokens.

This fails with an error if not the whole input is consumed.

Totality: total
Visibility: export
lexAndParse : Interpolationt=>Origin->Tokenizeret-> (t->Bool) ->Grammarbstatetea->state->String->Either (List1 (FileContext, InnerErrore)) (state, a)
Totality: total
Visibility: export