yi-0.6.5.0: The Haskell-Scriptable Editor

Safe HaskellSafe-Infered

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

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 

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