Idris2Doc : Text.Lex.Tokenizer

Text.Lex.Tokenizer

(source)

Definitions

dataTokenizer : Type->Type->Type
  Description of a language's tokenization rule.

Totality: total
Visibility: public export
Constructors:
Direct : TokTrueett->Tokenizerett
  Use this for fast, direct lexing of constant tokens.
Note: It is assumed that the lexed characters do *NOT* contain
any line breaks.
Compose : TokTruee (tt, tag) -> Inf (tag->Tokenizerett) -> (tag->TokTrueett) ->Tokenizerett
(<|>) : Tokenizerett-> Lazy (Tokenizerett) ->Tokenizerett
choiceMap : (a->Tokenizerett) -> (as : Lista) -> {auto0_ : NonEmptyas} ->Tokenizerett
Totality: total
Visibility: export
choice : (rs : List (Tokenizerett)) -> {auto0_ : NonEmptyrs} ->Tokenizerett
Totality: total
Visibility: export
recordTokRes : Bool->ListChar->Type->Type->Type
  Result of running a `Tokenizer` repeatedly over a
sequence of characters.

Totality: total
Visibility: public export
Constructor: 
TR : Position->SnocList (Boundeda) ->Mayber-> (rem : ListChar) -> (0_ : Suffixstrictremcs) ->TokResstrictcsra

Projections:
.pos : TokResstrictcsra->Position
.reason : TokResstrictcsra->Mayber
.rem : TokResstrictcsra->ListChar
0.suf : ({rec:0} : TokResstrictcsra) ->Suffixstrict (rem{rec:0}) cs
.toks : TokResstrictcsra->SnocList (Boundeda)
.pos : TokResstrictcsra->Position
Totality: total
Visibility: public export
pos : TokResstrictcsra->Position
Totality: total
Visibility: public export
.toks : TokResstrictcsra->SnocList (Boundeda)
Totality: total
Visibility: public export
toks : TokResstrictcsra->SnocList (Boundeda)
Totality: total
Visibility: public export
.reason : TokResstrictcsra->Mayber
Totality: total
Visibility: public export
reason : TokResstrictcsra->Mayber
Totality: total
Visibility: public export
.rem : TokResstrictcsra->ListChar
Totality: total
Visibility: public export
rem : TokResstrictcsra->ListChar
Totality: total
Visibility: public export
0.suf : ({rec:0} : TokResstrictcsra) ->Suffixstrict (rem{rec:0}) cs
Totality: total
Visibility: public export
0suf : ({rec:0} : TokResstrictcsra) ->Suffixstrict (rem{rec:0}) cs
Totality: total
Visibility: public export
lex : Interpolationa=>Tokenizerea-> (s : String) ->TokResFalse (unpacks) (Bounded (InnerErrore)) a
  Given a tokenizer and an input string, return a list of recognised tokens,
and the line, column, and remainder of the input at the first point in the string
where there are no recognised tokens.

Totality: total
Visibility: export