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

Symantic.Parser.Grammar.Write

Synopsis

Type WriteGrammar

newtype WriteGrammar (showName :: Bool) a Source #

Instances

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

Defined in Symantic.Parser.Grammar.Write

Methods

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

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

Satisfiable tok (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Methods

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

item :: WriteGrammar sN tok Source #

Lookable (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Foldable (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Methods

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

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

Matchable (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Methods

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

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

Selectable (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Methods

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

Alternable (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Applicable (WriteGrammar sN) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Methods

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

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

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

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

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

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

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

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

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

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

IsString (WriteGrammar sN a) Source # 
Instance details

Defined in Symantic.Parser.Grammar.Write

Methods

fromString :: String -> WriteGrammar sN a #

Type WriteGrammarInh