SyntaxMacros-1.0.3: Syntax Macros in the form of an EDSL

Safe HaskellSafe-Infered

Language.Grammars.SyntaxMacros.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

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.