Idris2Doc : Text.ILex.FS

Text.ILex.FS

(source)

Reexports

importpublic FS.Posix
importpublic Text.ILex

Definitions

streamParseErr : Hasexes=>ELift1qf=> (e->ex) ->P1qea->PullfByteStringesx->Pullfaesx
  Converts a stream of byte strings to a list of tokens of
type `a`.

This can be used with any non-backtracking parsers, but for large
amounts of data, the mutable parser stack must accumulate completely
parsed values and emit them after every chunk of bytes has been
processed in order not to overflow system memory.

Totality: total
Visibility: export
streamParseFrom : Has (ByteErrore) es=>ELift1qf=>Origin->P1q (ByteBoundede) a->PullfByteStringesx->Pullfaesx
  Like `streamParseErr`, where the parse error is converted to
an error of type `ByteError e`.

Totality: total
Visibility: export
streamParse : Hasees=>ELift1qf=>P1qea->PullfByteStringesx->Pullfaesx
  Converts a stream of byte strings to a list of tokens of
type `a`.

This can be used with any non-backtracking parsers, but for large
amounts of data, the mutable parser stack must accumulate completely
parsed values and emit them after every chunk of bytes has been
processed.

Totality: total
Visibility: export
streamValErr : Hasexes=>ELift1qf=> (e->ex) -> Lazy a->P1qea->StreamfesByteString->Pullfoesa
  Runs a non-streaming parser to completion, emitting
the last (and only) emitted value or the given default value.

Totality: total
Visibility: export
streamValFrom : Has (ByteErrore) es=>ELift1qf=>Origin-> Lazy a->P1q (ByteBoundede) a->StreamfesByteString->Pullfoesa
Totality: total
Visibility: export
streamVal : Hasees=>ELift1qf=> Lazy a->P1qea->StreamfesByteString->Pullfoesa
Totality: total
Visibility: export
locError : PollHe=>HasErrnoes=>Has (ByteErrorx) es=>AsyncPulleoesa->AsyncPulleoesa
  Streams again the origin (if any) of a parsing error,
adding the content to the error in order to provide an
exact error location.

Attention: This will try and read the whole content of the
origin into memory! If you are streaming a truly huge file,
you will be better off with just accepting the less precise
error message with only the byte bounds of the erroneous token.

Totality: total
Visibility: export