Idris2Doc : Text.ILex.Dependent.Bytes

Text.ILex.Dependent.Bytes

(source)

Reexports

import public Data.ByteString
import public Text.ByteBounds
import public Text.ILex.RExp
import public Text.ILex.LTENat

Definitions

data Bytes : Nat -> Type
  An interface for mutable parser stacks `s` that facilitates
parsing string tokens containing escape sequences.

Totality: total
Visibility: public export
Constructor: 
BS : ByteString -> IBuffer n -> Nat -> Nat -> Bytes n
init : IBuffer n -> Bytes n
  Initializes a new parser stack.

Totality: total
Visibility: public export
newBytes : Nat -> ByteString -> IBuffer n -> Bytes n
Totality: total
Visibility: public export
record In : Type -> Type
Totality: total
Visibility: public export
Constructor: 
I : Bytes size -> LTENat size -> LTENat size -> a -> In a

Projections:
.bytes : ({rec:0} : In a) -> Bytes (size {rec:0})
.from : ({rec:0} : In a) -> LTENat (size {rec:0})
  Lower relative token bound (lower position in `cur`)
0 .size : In a -> Nat
.till : ({rec:0} : In a) -> LTENat (size {rec:0})
  Next relative token bound (upser position + 1 in `cur`)
.val : In a -> a
0 .size : In a -> Nat
Totality: total
Visibility: public export
0 size : In a -> Nat
Totality: total
Visibility: public export
.bytes : ({rec:0} : In a) -> Bytes (size {rec:0})
Totality: total
Visibility: public export
bytes : ({rec:0} : In a) -> Bytes (size {rec:0})
Totality: total
Visibility: public export
.from : ({rec:0} : In a) -> LTENat (size {rec:0})
  Lower relative token bound (lower position in `cur`)

Totality: total
Visibility: public export
from : ({rec:0} : In a) -> LTENat (size {rec:0})
  Lower relative token bound (lower position in `cur`)

Totality: total
Visibility: public export
.till : ({rec:0} : In a) -> LTENat (size {rec:0})
  Next relative token bound (upser position + 1 in `cur`)

Totality: total
Visibility: public export
till : ({rec:0} : In a) -> LTENat (size {rec:0})
  Next relative token bound (upser position + 1 in `cur`)

Totality: total
Visibility: public export
.val : In a -> a
Totality: total
Visibility: public export
val : In a -> a
Totality: total
Visibility: public export
getBytes : In a -> ByteString
  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
getString : In a -> String
Totality: total
Visibility: export
toFinalPos' : Bytes n -> a -> In a
Totality: total
Visibility: export
toFinalPos : In a -> In a
Totality: total
Visibility: export
startPos : In a -> BytePos
  Gets the absolute position of the
first byte of the current token.

Totality: total
Visibility: export
endPos : In a -> BytePos
  Gets the absolute position of the last byte of the current token.

Totality: total
Visibility: export
bounds : In a -> ByteBounds
  Gets the bounds of the current token.

Totality: total
Visibility: export
bounded : In a -> t -> ByteBounded t
  Computes the given value and pairs it with the token bounds.

Totality: total
Visibility: export
failHere : In a -> InnerError e -> BBErr e
  Like `failWith`, but generates the bounds of the error from the
current position and the bytes read until the error occurred.

Totality: total
Visibility: export
unexpectedInner : List String -> In a -> InnerError e
Totality: total
Visibility: export
unexpectedErr : List String -> In a -> BBErr e
Totality: total
Visibility: export
unclosedErr : ByteBounds -> String -> BBErr e
Totality: total
Visibility: export
failUnexpected : List String -> In a -> Either (BBErr e) x
Totality: total
Visibility: export
failUnclosed : ByteBounds -> String -> Either (BBErr e) x
Totality: total
Visibility: export