Idris2Doc : Text.ILex.Parser

Text.ILex.Parser

(source)

Reexports

importpublic Data.Prim.Bits32
importpublic Data.ByteString
importpublic Data.Linear.Ref1
importpublic Text.ByteBounds
importpublic Text.ParseError
importpublic Text.ILex.RExp
importpublic Text.ILex.Lexer

Definitions

recordArr32 : Bits32->Type->Type
Totality: total
Visibility: export
Constructor: 
A32 : AnyPtr->Arr32na

Projection: 
.ptr : Arr32na->AnyPtr
at : Arr32na->Indexn->a
Totality: total
Visibility: export
recordEntry : Bits32->Type->Type
Totality: total
Visibility: public export
Constructor: 
E : Indexn->a->Entryna

Projections:
.index : Entryna->Indexn
.value : Entryna->a
.index : Entryna->Indexn
Totality: total
Visibility: public export
index : Entryna->Indexn
Totality: total
Visibility: public export
.value : Entryna->a
Totality: total
Visibility: public export
value : Entryna->a
Totality: total
Visibility: public export
entry : Castt (Indexn) =>t->a->Entryna
Totality: total
Visibility: export
arr32 : (n : Bits32) ->a->List (Entryna) ->Arr32na
Totality: total
Visibility: export
0Lex1 : Type->Bits32-> (Type->Type) ->Type
Totality: total
Visibility: public export
interfaceHasBytes : (Type->Type) ->Type
  An interface for mutable parser stacks `s` that facilitates
parsing string tokens containing escape sequences.

Parameters: s
Constructor: 
MkHB

Methods:
prev : sq->RefqByteString
  Returns the remainder of the previous bytestring that should
be used as the beginning of the current token.
cur : sq->RefqByteString
  The byte vector currently being processed.
offset : sq->RefqNat
  Absolute start position of the current token from the beginning
of the whole byte stream processed so far.
relpos : sq->RefqInteger
  Start position of the current token relative to `cur`.

If this is negative, the current token will also include
`prev`. Reference `len` will still hold the full length
of the token.
len : sq->RefqNat
  Length of the current token
positions : sq->Refq (SnocListBytePos)
  Stack of positions used to keep track of the positions of
opening parentheses and brackets.

Implementation: 
HasBytes (DStackse)
prev : HasBytess=>sq->RefqByteString
  Returns the remainder of the previous bytestring that should
be used as the beginning of the current token.

Totality: total
Visibility: public export
cur : HasBytess=>sq->RefqByteString
  The byte vector currently being processed.

Totality: total
Visibility: public export
offset : HasBytess=>sq->RefqNat
  Absolute start position of the current token from the beginning
of the whole byte stream processed so far.

Totality: total
Visibility: public export
relpos : HasBytess=>sq->RefqInteger
  Start position of the current token relative to `cur`.

If this is negative, the current token will also include
`prev`. Reference `len` will still hold the full length
of the token.

Totality: total
Visibility: public export
len : HasBytess=>sq->RefqNat
  Length of the current token

Totality: total
Visibility: public export
positions : HasBytess=>sq->Refq (SnocListBytePos)
  Stack of positions used to keep track of the positions of
opening parentheses and brackets.

Totality: total
Visibility: public export
getBytes : HasBytess=>sq=>F1qByteString
  Returns the current substring of the byte vector
(corresponding to the position and length of the current
token).

The remainder of the previous bytestring is prefixed in case
we are currently at position zero.

Totality: total
Visibility: export
recordP1 : Type->Type->Type->Type
  A parser is a system of automata, where each
lexicographic token determines the next automaton
state plus lexer to use.

Totality: total
Visibility: public export
Constructor: 
P : Indexstates->F1q (stateq) ->Lex1qstatesstate-> (stateq->F1q (Maybea)) ->Arr32states (stateq->F1qe) -> (Indexstates->stateq->F1q (Eitherea)) ->HasBytesstate=>P1qea

Projections:
.chunk : ({rec:0} : P1qea) ->state{rec:0}q->F1q (Maybea)
.eoi : ({rec:0} : P1qea) ->Index (states{rec:0}) ->state{rec:0}q->F1q (Eitherea)
.err : ({rec:0} : P1qea) ->Arr32 (states{rec:0}) (state{rec:0}q->F1qe)
.hasb : ({rec:0} : P1qea) ->HasBytes (state{rec:0})
.init : ({rec:0} : P1qea) ->Index (states{rec:0})
.lex : ({rec:0} : P1qea) ->Lex1q (states{rec:0}) (state{rec:0})
0.state : P1qea->Type->Type
.states : P1qea->Bits32
.stck : ({rec:0} : P1qea) ->F1q (state{rec:0}q)
.states : P1qea->Bits32
Totality: total
Visibility: public export
states : P1qea->Bits32
Totality: total
Visibility: public export
0.state : P1qea->Type->Type
Totality: total
Visibility: public export
0state : P1qea->Type->Type
Totality: total
Visibility: public export
.init : ({rec:0} : P1qea) ->Index (states{rec:0})
Totality: total
Visibility: public export
init : ({rec:0} : P1qea) ->Index (states{rec:0})
Totality: total
Visibility: public export
.stck : ({rec:0} : P1qea) ->F1q (state{rec:0}q)
Totality: total
Visibility: public export
stck : ({rec:0} : P1qea) ->F1q (state{rec:0}q)
Totality: total
Visibility: public export
.lex : ({rec:0} : P1qea) ->Lex1q (states{rec:0}) (state{rec:0})
Totality: total
Visibility: public export
lex : ({rec:0} : P1qea) ->Lex1q (states{rec:0}) (state{rec:0})
Totality: total
Visibility: public export
.chunk : ({rec:0} : P1qea) ->state{rec:0}q->F1q (Maybea)
Totality: total
Visibility: public export
chunk : ({rec:0} : P1qea) ->state{rec:0}q->F1q (Maybea)
Totality: total
Visibility: public export
.err : ({rec:0} : P1qea) ->Arr32 (states{rec:0}) (state{rec:0}q->F1qe)
Totality: total
Visibility: public export
err : ({rec:0} : P1qea) ->Arr32 (states{rec:0}) (state{rec:0}q->F1qe)
Totality: total
Visibility: public export
.eoi : ({rec:0} : P1qea) ->Index (states{rec:0}) ->state{rec:0}q->F1q (Eitherea)
Totality: total
Visibility: public export
eoi : ({rec:0} : P1qea) ->Index (states{rec:0}) ->state{rec:0}q->F1q (Eitherea)
Totality: total
Visibility: public export
.hasb : ({rec:0} : P1qea) ->HasBytes (state{rec:0})
Totality: total
Visibility: public export
hasb : ({rec:0} : P1qea) ->HasBytes (state{rec:0})
Totality: total
Visibility: public export
0PST : P1qea->Type
Totality: total
Visibility: public export
0PIx : P1qea->Type
Totality: total
Visibility: public export
0PStep : P1qea->Type
Totality: total
Visibility: public export
0PRun : P1qea->Type
Totality: total
Visibility: public export
0PIgn : P1qea->Type
Totality: total
Visibility: public export
0PByteStep : Nat->P1qea->Type
  An array of arrays describing a lexer's state machine.

Totality: total
Visibility: public export
0PStepper : Nat->P1qea->Type
  An array of arrays describing a lexer's state machine.

Totality: total
Visibility: public export
arrFail : (0s : (Type->Type)) ->Arr32r (sq->F1qe) ->Indexr->sq->F1q (Eitherex)
Totality: total
Visibility: export
fail : (p : P1qea) ->PIxp->PSTp->F1q (Eitherex)
Totality: total
Visibility: export
0Parser1 : Type->Type->Type
Totality: total
Visibility: public export
lex1 : List (Entryr (DFAqrs)) ->Lex1qrs
Totality: total
Visibility: export