yi-0.6.5.0: The Haskell-Scriptable Editor

Safe HaskellSafe-Infered

Parser.Incremental

Synopsis

Documentation

type Process token result = Zip token (result :< ())Source

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

run :: Process s a -> [s] -> (a, [String])Source

Run a process (in case you do not need the incremental interface)

mkProcess :: forall s a. Parser s a -> Process s aSource

Make a parser into a process.

profile :: Steps s r -> ProfileSource

pushSyms :: forall s r. [s] -> Zip s r -> Zip s rSource

Push some symbols.

pushEof :: forall s r. Zip s r -> Zip s rSource

Push eof

evalL :: forall s output. Zip s output -> Zip s outputSource

evalR :: Zip token (a :< rest) -> (a, [String])Source

feedZ :: Maybe [s] -> Zip s r -> Zip s rSource

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 

countWidth :: Zip s r -> IntSource

fullLog :: Zip s output -> ([String], Tree LogEntry)Source

evalL' :: Zip s output -> Zip s outputSource