uulib-0.9.23: Haskell Utrecht Tools Library

Safe HaskellNone
LanguageHaskell98

UU.Parsing.StateParser

Contents

Documentation

class StateParser p st | p -> st where Source #

Minimal complete definition

change

Methods

change :: (st -> st) -> p st Source #

set :: st -> p st Source #

get :: p st Source #

Instances
(InputState inp s p, OutputState out) => StateParser (AnaParser (inp, st) out s p) st Source # 
Instance details

Defined in UU.Parsing.StateParser

Methods

change :: (st -> st) -> AnaParser (inp, st) out s p st Source #

set :: st -> AnaParser (inp, st) out s p st Source #

get :: AnaParser (inp, st) out s p st Source #

Orphan instances

InputState inp s p => InputState (inp, state) s p Source # 
Instance details

Methods

splitStateE :: (inp, state) -> Either' (inp, state) s Source #

splitState :: (inp, state) -> (#s, (inp, state)#) Source #

getPosition :: (inp, state) -> p Source #

reportError :: Message s p -> (inp, state) -> (inp, state) Source #

insertSymbol :: s -> (inp, state) -> (inp, state) Source #

deleteSymbol :: s -> (inp, state) -> (inp, state) Source #