symantic-parser-0.1.0.20210201: Parser combinators statically optimized and staged via typed meta-programming
Safe HaskellNone
LanguageHaskell2010

Symantic.Parser.Grammar.View

Synopsis

Type ViewGrammar

newtype ViewGrammar (showName :: Bool) a Source #

Constructors

ViewGrammar 

Instances

Instances details
ShowLetName sN letName => Letable letName (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

def :: letName -> ViewGrammar sN a -> ViewGrammar sN a Source #

ref :: Bool -> letName -> ViewGrammar sN a Source #

Satisfiable tok (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

satisfy :: [ErrorItem tok] -> TermGrammar (tok -> Bool) -> ViewGrammar sN tok Source #

item :: ViewGrammar sN tok Source #

Lookable (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

look :: ViewGrammar sN a -> ViewGrammar sN a Source #

negLook :: ViewGrammar sN a -> ViewGrammar sN () Source #

eof :: ViewGrammar sN () Source #

Foldable (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

chainPre :: ViewGrammar sN (a -> a) -> ViewGrammar sN a -> ViewGrammar sN a Source #

chainPost :: ViewGrammar sN a -> ViewGrammar sN (a -> a) -> ViewGrammar sN a Source #

Matchable (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

conditional :: Eq a => ViewGrammar sN a -> [TermGrammar (a -> Bool)] -> [ViewGrammar sN b] -> ViewGrammar sN b -> ViewGrammar sN b Source #

match :: Eq a => ViewGrammar sN a -> [TermGrammar a] -> (TermGrammar a -> ViewGrammar sN b) -> ViewGrammar sN b -> ViewGrammar sN b Source #

Selectable (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

branch :: ViewGrammar sN (Either a b) -> ViewGrammar sN (a -> c) -> ViewGrammar sN (b -> c) -> ViewGrammar sN c Source #

Alternable (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Applicable (ViewGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

(<$>) :: TermGrammar (a -> b) -> ViewGrammar sN a -> ViewGrammar sN b Source #

(<&>) :: ViewGrammar sN a -> TermGrammar (a -> b) -> ViewGrammar sN b Source #

(<$) :: TermGrammar a -> ViewGrammar sN b -> ViewGrammar sN a Source #

($>) :: ViewGrammar sN a -> TermGrammar b -> ViewGrammar sN b Source #

pure :: TermGrammar a -> ViewGrammar sN a Source #

(<*>) :: ViewGrammar sN (a -> b) -> ViewGrammar sN a -> ViewGrammar sN b Source #

liftA2 :: TermGrammar (a -> b -> c) -> ViewGrammar sN a -> ViewGrammar sN b -> ViewGrammar sN c Source #

(<*) :: ViewGrammar sN a -> ViewGrammar sN b -> ViewGrammar sN a Source #

(*>) :: ViewGrammar sN a -> ViewGrammar sN b -> ViewGrammar sN b Source #

(<**>) :: ViewGrammar sN a -> ViewGrammar sN (a -> b) -> ViewGrammar sN b Source #

Show (ViewGrammar sN a) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

showsPrec :: Int -> ViewGrammar sN a -> ShowS #

show :: ViewGrammar sN a -> String #

showList :: [ViewGrammar sN a] -> ShowS #

IsString (ViewGrammar sN a) Source # 
Instance details

Defined in Symantic.Parser.Grammar.View

Methods

fromString :: String -> ViewGrammar sN a #