0 Res : Bool -> (t : Type) -> List (Bounded t) -> Type -> Type -> Type- Totality: total
Visibility: public export 0 Grammar : Bool -> Type -> Type -> Type -> Type- Totality: total
Visibility: public export 0 AccGrammar : Bool -> Type -> Type -> Type -> Type- Totality: total
Visibility: public export acc : AccGrammar b t e a -> Grammar b t e a Converts a grammar requiring a proof of accessibility to a regular
grammar.
Totality: total
Visibility: public exportswapOr : Grammar (x || Delay y) t e a -> Grammar (y || Delay x) t e a- Totality: total
Visibility: public export orSame : Grammar (x || Delay x) t e a -> Grammar x t e a- Totality: total
Visibility: public export orTrue : Grammar (x || Delay True) t e a -> Grammar True t e a- Totality: total
Visibility: public export orFalse : Grammar (x || Delay False) t e a -> Grammar x t e a- Totality: total
Visibility: public export swapAnd : Grammar (x && Delay y) t e a -> Grammar (y && Delay x) t e a- Totality: total
Visibility: public export andSame : Grammar (x && Delay x) t e a -> Grammar x t e a- Totality: total
Visibility: public export andTrue : Grammar (x && Delay True) t e a -> Grammar x t e a- Totality: total
Visibility: public export andFalse : Grammar (x && Delay False) t e a -> Grammar False t e a- Totality: total
Visibility: public export terminal : Interpolation t => (t -> Maybe a) -> Grammar True t e a Tries to convert the head of the list of tokens.
Fails with appropriate errors if the list is empty or the conversion
fails.
Totality: total
Visibility: public exportterminalE : (t -> Either e a) -> Grammar True t e a Like `terminal` but fails with a custom error if the conversion fails.
Totality: total
Visibility: public exportexact : Interpolation t => Eq t => t -> Grammar True t e () Tries to drop the given token from the head of the list of tokens.
Fails with appropriate errors if the list is empty or the token
at the head does not match.
Totality: total
Visibility: public exportpeek : Grammar False t e t Look at the next token without consuming any input.
Totality: total
Visibility: public exportnextIs : Interpolation t => (t -> Bool) -> Grammar False t e t Check whether the next token satisfies a predicate. Does not consume.
Totality: total
Visibility: public exportnextEquals : Interpolation t => Eq t => t -> Grammar False t e t Check whether the next token equals the given value. Does not consume.
Totality: total
Visibility: public exporttestParse : Show a => Interpolation e => Interpolation t => (Origin -> String -> Either (ParseError e) a) -> String -> IO () Utility for testing a parses and the error messages it produces
at the REPL.
Totality: total
Visibility: export