ptera-core-0.1.0.0: A parser generator
Safe HaskellNone
LanguageHaskell2010

Language.Parser.Ptera.Machine.SRB.Builder

Documentation

type T start a = BuilderT start a Source #

type BuilderT start a = StateT (Context start a) Source #

data Context start a Source #

Instances

Instances details
Eq (Context start a) Source # 
Instance details

Defined in Language.Parser.Ptera.Machine.SRB.Builder

Methods

(==) :: Context start a -> Context start a -> Bool #

(/=) :: Context start a -> Context start a -> Bool #

(Enum start, Show start) => Show (Context start a) Source # 
Instance details

Defined in Language.Parser.Ptera.Machine.SRB.Builder

Methods

showsPrec :: Int -> Context start a -> ShowS #

show :: Context start a -> String #

showList :: [Context start a] -> ShowS #

type Vars varDoc = T VarNum (Var varDoc) Source #

type Alts altDoc a = T AltNum (Alt altDoc a) Source #

build :: Monad m => Vars varDoc -> Alts altDoc a -> BuilderT start a m () -> m (T start varDoc altDoc a) Source #

registerInitial :: Monad m => Enum start => start -> StateNum -> BuilderT start a m () Source #

addState :: Monad m => MState -> BuilderT s a m () Source #