run : IParser e a -> IBuffer n -> Either e a Tries to parse a byte vector into a value.
Totality: total
Visibility: exportrunString : IParser e a -> String -> Either e a Like `run` but processes a UTF-8 string instead.
Totality: total
Visibility: exportrunBytes : IParser e a -> ByteString -> Either e a Like `run` but processes a `ByteString` instead.
Totality: total
Visibility: exportrunList : IParser e a -> List ByteString -> Either e a Like `run` but processes a `ByteString` instead.
Totality: total
Visibility: exportparse : IParser (BBErr e) a -> Origin -> IBuffer n -> Either (ParseError e) a Like `run` but fails with a proper parse error
including error bounds and highlighting of
the section where an error occurred.
Totality: total
Visibility: exportparseString : IParser (BBErr e) a -> Origin -> String -> Either (ParseError e) a Like `parse` but processes a UTF-8 string instead.
Totality: total
Visibility: exportparseBytes : IParser (BBErr e) a -> Origin -> ByteString -> Either (ParseError e) a Like `parse` but processes a `ByteString` instead.
Totality: total
Visibility: exportrecord LexState : IParser e a -> Type Lexing state.
This encapsulates the current state as well as
the remainder of the previous chunk that marks
the beginning of the current token.
Totality: total
Visibility: public export
Constructor: LST : p .lexer ltpe -> In ltpe -> PMachine sts p ltpe -> PByteTrans sts p ltpe -> PStep p ltpe -> LexState p
Projections:
.cur : ({rec:0} : LexState p) -> PByteTrans (sts {rec:0}) p (ltpe {rec:0}) .dfa : ({rec:0} : LexState p) -> PMachine (sts {rec:0}) p (ltpe {rec:0}) .lexer : ({rec:0} : LexState p) -> p .lexer (ltpe {rec:0}) 0 .ltpe : LexState p -> Type .stack : ({rec:0} : LexState p) -> In (ltpe {rec:0}) 0 .sts : LexState p -> Nat .tok : ({rec:0} : LexState p) -> PStep p (ltpe {rec:0})
0 .sts : LexState p -> Nat- Totality: total
Visibility: public export 0 sts : LexState p -> Nat- Totality: total
Visibility: public export 0 .ltpe : LexState p -> Type- Totality: total
Visibility: public export 0 ltpe : LexState p -> Type- Totality: total
Visibility: public export .lexer : ({rec:0} : LexState p) -> p .lexer (ltpe {rec:0})- Totality: total
Visibility: public export lexer : ({rec:0} : LexState p) -> p .lexer (ltpe {rec:0})- Totality: total
Visibility: public export .stack : ({rec:0} : LexState p) -> In (ltpe {rec:0})- Totality: total
Visibility: public export stack : ({rec:0} : LexState p) -> In (ltpe {rec:0})- Totality: total
Visibility: public export .dfa : ({rec:0} : LexState p) -> PMachine (sts {rec:0}) p (ltpe {rec:0})- Totality: total
Visibility: public export dfa : ({rec:0} : LexState p) -> PMachine (sts {rec:0}) p (ltpe {rec:0})- Totality: total
Visibility: public export .cur : ({rec:0} : LexState p) -> PByteTrans (sts {rec:0}) p (ltpe {rec:0})- Totality: total
Visibility: public export cur : ({rec:0} : LexState p) -> PByteTrans (sts {rec:0}) p (ltpe {rec:0})- Totality: total
Visibility: public export .tok : ({rec:0} : LexState p) -> PStep p (ltpe {rec:0})- Totality: total
Visibility: public export tok : ({rec:0} : LexState p) -> PStep p (ltpe {rec:0})- Totality: total
Visibility: public export init : IBuffer n -> (p : IParser e a) -> LexState p- Totality: total
Visibility: export 0 LoopRes : IParser e a -> Type Result of a partial lexing step: In such a step, we lex
till the end of a chunk of bytes, allowing for a remainder of
bytes that could not yet be identified as a tokens.
Totality: total
Visibility: public exportlastStep : (p : IParser e a) -> LexState p -> Either e a- Totality: total
Visibility: export stepState : IBuffer n -> (p : IParser e a) -> LexState p -> LoopRes p- Visibility: export