Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class (Enum unit, Monad m) => TlexContext mark unit m | m -> mark, m -> unit where Source #
tlexGetInputPart :: m (Maybe unit) Source #
Get a unit of current position from input, and move to next position.
tlexGetMark :: m mark Source #
Get a mark of current position.
Instances
Enum e => TlexContext (InputStringContext e) e (InputString e) Source # | |
Defined in Language.Lexer.Tlex.Data.InputString tlexGetInputPart :: InputString e (Maybe e) Source # tlexGetMark :: InputString e (InputStringContext e) Source # |
data TlexResult mark action Source #
TlexEndOfInput | No more inputs. |
TlexNotAccepted | Some inputs are available, but not accepted. |
TlexAccepted mark action | Accepted with a end position and an action. |
Instances
(Show mark, Show action) => Show (TlexResult mark action) Source # | |
Defined in Language.Lexer.Tlex.Runner showsPrec :: Int -> TlexResult mark action -> ShowS # show :: TlexResult mark action -> String # showList :: [TlexResult mark action] -> ShowS # | |
(Eq mark, Eq action) => Eq (TlexResult mark action) Source # | |
Defined in Language.Lexer.Tlex.Runner (==) :: TlexResult mark action -> TlexResult mark action -> Bool # (/=) :: TlexResult mark action -> TlexResult mark action -> Bool # |
runRunner :: Enum state => TlexContext mark unit m => Runner unit action -> state -> m (TlexResult mark action) Source #