Idris2Doc : Text.ILex.Runner

Text.ILex.Runner

(source)

Reexports

importpublic Text.ParseError
importpublic Text.FC
importpublic Text.ILex.Parser

Definitions

run : Parser1ea->IBuffern->Eitherea
  Tries to parse a byte vector into a value.

Totality: total
Visibility: export
runString : Parser1ea->String->Eitherea
  Like `run` but processes a UTF-8 string instead.

Totality: total
Visibility: export
runBytes : Parser1ea->ByteString->Eitherea
  Like `run` but processes a `ByteString` instead.

Totality: total
Visibility: export
runList : Parser1ea->ListByteString->Eitherea
  Like `run` but processes a `ByteString` instead.

Totality: total
Visibility: export
parse : Parser1 (BBErre) a->Origin->IBuffern->Either (ParseErrore) a
  Like `run` but fails with a proper parse error
including error bounds and highlighting of
the section where an error occurred.

Totality: total
Visibility: export
parseString : Parser1 (BBErre) a->Origin->String->Either (ParseErrore) a
  Like `parse` but processes a UTF-8 string instead.

Totality: total
Visibility: export
parseBytes : Parser1 (BBErre) a->Origin->ByteString->Either (ParseErrore) a
  Like `parse` but processes a `ByteString` instead.

Totality: total
Visibility: export
recordLexState : P1qea->Type
  Lexing state.

This encapsulates the current state as well as
the remainder of the previous chunk that marks
the beginning of the current token.

Totality: total
Visibility: public export
Constructor: 
LST : PIxp->PSTp->PStepperstsp->PByteStepstsp->PStepp->LexStatep

Projections:
.cur : ({rec:0} : LexStatep) ->PByteStep (sts{rec:0}) p
.dfa : ({rec:0} : LexStatep) ->PStepper (sts{rec:0}) p
.stack : LexStatep->PSTp
.state : LexStatep->PIxp
0.sts : LexStatep->Nat
.tok : LexStatep->PStepp
0.sts : LexStatep->Nat
Totality: total
Visibility: public export
0sts : LexStatep->Nat
Totality: total
Visibility: public export
.state : LexStatep->PIxp
Totality: total
Visibility: public export
state : LexStatep->PIxp
Totality: total
Visibility: public export
.stack : LexStatep->PSTp
Totality: total
Visibility: public export
stack : LexStatep->PSTp
Totality: total
Visibility: public export
.dfa : ({rec:0} : LexStatep) ->PStepper (sts{rec:0}) p
Totality: total
Visibility: public export
dfa : ({rec:0} : LexStatep) ->PStepper (sts{rec:0}) p
Totality: total
Visibility: public export
.cur : ({rec:0} : LexStatep) ->PByteStep (sts{rec:0}) p
Totality: total
Visibility: public export
cur : ({rec:0} : LexStatep) ->PByteStep (sts{rec:0}) p
Totality: total
Visibility: public export
.tok : LexStatep->PStepp
Totality: total
Visibility: public export
tok : LexStatep->PStepp
Totality: total
Visibility: public export
init : (p : P1qea) ->F1q (LexStatep)
Totality: total
Visibility: export
0LoopRes : P1qea->Type
  Result of a partial lexing step: In such a step, we lex
till the end of a chunk of bytes, allowing for a remainder of
bytes that could not yet be identified as a tokens.

Totality: total
Visibility: public export
lastStep : (p : P1qea) ->LexStatep->F1q (Eitherea)
Totality: total
Visibility: export
stepState : IBuffern-> (p : P1qea) ->LexStatep->LoopResp
Totality: total
Visibility: export