Idris2Doc : Text.ILex.State.Streaming

Text.ILex.State.Streaming

(source)

Definitions

recordState : Type->Type->Type->Bits32->Type->Type
  A parser state that can be use for streaming lists of values
such as declarations in a programming language.

The parser stack is stored in mutable field `stack_`, while
the values parsed so far are stored in `values_`.

In addition, support for working with nested block comments
is included. This is somewhat opinionated, but client code
can just ignore it and use an error lexer for the comment field.

Totality: total
Visibility: public export
Constructor: 
SS : (bufSize_ : Nat) ->ByteString->IBufferbufSize_->Nat->Nat->Refq (LTENatbufSize_) ->Refq (LTENatbufSize_) ->Refq (SnocListBytePos) ->Refqs->Refq (Indexr) ->Refq (SnocLista) ->Refq (SnocListString) ->Refq (Maybe (BBErre)) ->Indexr->RefqNat->Stateesarq

Projections:
.bufSize_ : Stateesarq->Nat
.comment : Stateesarq->Indexr
.curOffset_ : Stateesarq->Nat
.cur_ : ({rec:0} : Stateesarq) ->IBuffer (bufSize_{rec:0})
.depth : Stateesarq->RefqNat
.error_ : Stateesarq->Refq (Maybe (BBErre))
.from_ : ({rec:0} : Stateesarq) ->Refq (LTENat (bufSize_{rec:0}))
.positions_ : Stateesarq->Refq (SnocListBytePos)
.prevOffset_ : Stateesarq->Nat
.prev_ : Stateesarq->ByteString
.stack_ : Stateesarq->Refqs
.state_ : Stateesarq->Refq (Indexr)
.strings_ : Stateesarq->Refq (SnocListString)
.till_ : ({rec:0} : Stateesarq) ->Refq (LTENat (bufSize_{rec:0}))
.values_ : Stateesarq->Refq (SnocLista)

Hints:
HasBBErr (Stateesar) e
HasBytes (Stateesar)
HasStack (Stateesar) s
HasStringLits (Stateesar)
.bufSize_ : Stateesarq->Nat
Totality: total
Visibility: public export
bufSize_ : Stateesarq->Nat
Totality: total
Visibility: public export
.prev_ : Stateesarq->ByteString
Totality: total
Visibility: public export
prev_ : Stateesarq->ByteString
Totality: total
Visibility: public export
.cur_ : ({rec:0} : Stateesarq) ->IBuffer (bufSize_{rec:0})
Totality: total
Visibility: public export
cur_ : ({rec:0} : Stateesarq) ->IBuffer (bufSize_{rec:0})
Totality: total
Visibility: public export
.prevOffset_ : Stateesarq->Nat
Totality: total
Visibility: public export
prevOffset_ : Stateesarq->Nat
Totality: total
Visibility: public export
.curOffset_ : Stateesarq->Nat
Totality: total
Visibility: public export
curOffset_ : Stateesarq->Nat
Totality: total
Visibility: public export
.from_ : ({rec:0} : Stateesarq) ->Refq (LTENat (bufSize_{rec:0}))
Totality: total
Visibility: public export
from_ : ({rec:0} : Stateesarq) ->Refq (LTENat (bufSize_{rec:0}))
Totality: total
Visibility: public export
.till_ : ({rec:0} : Stateesarq) ->Refq (LTENat (bufSize_{rec:0}))
Totality: total
Visibility: public export
till_ : ({rec:0} : Stateesarq) ->Refq (LTENat (bufSize_{rec:0}))
Totality: total
Visibility: public export
.positions_ : Stateesarq->Refq (SnocListBytePos)
Totality: total
Visibility: public export
positions_ : Stateesarq->Refq (SnocListBytePos)
Totality: total
Visibility: public export
.stack_ : Stateesarq->Refqs
Totality: total
Visibility: public export
stack_ : Stateesarq->Refqs
Totality: total
Visibility: public export
.state_ : Stateesarq->Refq (Indexr)
Totality: total
Visibility: public export
state_ : Stateesarq->Refq (Indexr)
Totality: total
Visibility: public export
.values_ : Stateesarq->Refq (SnocLista)
Totality: total
Visibility: public export
values_ : Stateesarq->Refq (SnocLista)
Totality: total
Visibility: public export
.strings_ : Stateesarq->Refq (SnocListString)
Totality: total
Visibility: public export
strings_ : Stateesarq->Refq (SnocListString)
Totality: total
Visibility: public export
.error_ : Stateesarq->Refq (Maybe (BBErre))
Totality: total
Visibility: public export
error_ : Stateesarq->Refq (Maybe (BBErre))
Totality: total
Visibility: public export
.comment : Stateesarq->Indexr
Totality: total
Visibility: public export
comment : Stateesarq->Indexr
Totality: total
Visibility: public export
.depth : Stateesarq->RefqNat
Totality: total
Visibility: public export
depth : Stateesarq->RefqNat
Totality: total
Visibility: public export
init : Indexr->s-> (n : Nat) ->IBuffern->F1q (Stateesarq)
Totality: total
Visibility: export
pushValue : Stateesarq=>a->s->Indexr->F1q (Indexr)
Totality: total
Visibility: export
values : Stateesarq->F1q (Eitherx (Lista))
Totality: total
Visibility: export
valuesChunk : Stateesarq->F1q (Maybe (Lista))
Totality: total
Visibility: export