Safe Haskell | Safe-Inferred |
---|
Provides a nondeterministic ChParser
instance.
Documentation
A nondeterministic parsing monad. Works by keeping multiple forks until they fail. May return multiple solutions. First parameter should be an instance of MonadPlus
and Foldable
.
feedForkerT1 :: (MonadPlus m, Foldable m) => Char -> ForkerT m a -> ForkerT m aSource
Feed the ForkerT
with a single input character.