murder-1.3.2: MUtually Recursive Definitions Explicitly Represented

Safe HaskellNone

Language.Grammars.Murder.UUParsing

Synopsis

Documentation

newtype Const f a s Source

Constructors

C 

Fields

unC :: f a
 

compile :: Grammar a -> Parser aSource

The function compile generates a parser out of a closed grammar

compileKws :: Set String -> Grammar a -> Parser aSource

The function compileKws generates a parser out of a closed grammar, restricting the identifiers to not belong to the list of reserved words

mapEnv :: (forall a. f a s -> g a s) -> Env f s env -> Env g s envSource

data ParseResult a Source

Constructors

Ok a 
Rep a [Error LineCol] 

Instances

Show a => Show (ParseResult a) 

parse :: Parser a -> String -> ParseResult aSource

The function parse runs the parser for an input.