yi-0.7.2: The Haskell-Scriptable Editor

Safe HaskellNone

Yi.IncrementalParse

Synopsis

Documentation

recoverWith :: Parser s a -> Parser s aSource

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.

symbol :: forall s. (s -> Bool) -> Parser s sSource

eof :: forall s. Parser s ()Source

testNext :: (Maybe s -> Bool) -> Parser s ()Source

type State st token result = (st, Process token result)Source

type P s a = Parser s aSource

data Parser s a whereSource

Parser specification

Constructors

Look :: Parser s a -> (s -> Parser s a) -> Parser s a 
Yuck :: Parser s a -> Parser s a 
Enter :: String -> Parser s a -> Parser s a 

Instances

Monad (Parser s) 
Functor (Parser s) 
Applicative (Parser s) 
Alternative (Parser s) 

data AlexState lexerState Source

Lexer state

Constructors

AlexState 

Fields

stLexer :: lexerState
 
lookedOffset :: !Point
 
stPosn :: !Posn
 

Instances

Show lexerState => Show (AlexState lexerState) 

scanner :: forall st token result. Parser token result -> Scanner st token -> Scanner (State st token result) resultSource