Safe Haskell | None |
---|---|
Language | Haskell2010 |
- recoverWith :: Parser s a -> Parser s a
- symbol :: forall s. (s -> Bool) -> Parser s s
- eof :: forall s. Parser s ()
- lookNext :: Parser s (Maybe s)
- testNext :: (Maybe s -> Bool) -> Parser s ()
- type State st token result = (st, Process token result)
- type P s a = Parser s a
- data Parser s a where
- data AlexState lexerState :: * -> * = AlexState {
- stLexer :: lexerState
- lookedOffset :: !Point
- stPosn :: !Posn
- scanner :: forall st token result. Parser token result -> Scanner st token -> Scanner (State st token result) result
Documentation
recoverWith :: Parser s a -> Parser s a Source
Parse the same thing as the argument, but will be used only as backup. ie, it will be used only if disjuncted with a failing parser.
Parser specification
data AlexState lexerState :: * -> *
Lexer state