HaLeX-1.2.2: HaLeX enables modelling, manipulation and animation of regular languages
Language.HaLex.Parser
type Parser s r = [s] -> [(r, [s])] Source #
symbol :: Eq a => a -> Parser a a Source #
satisfy :: (s -> Bool) -> Parser s s Source #
token :: Eq s => [s] -> Parser s [s] Source #
succeed :: a -> Parser s a Source #
(<|>) :: Parser s a -> Parser s a -> Parser s a infixl 3 Source #
(<*>) :: (t -> [(t4 -> t2, t1)]) -> (t1 -> [(t4, t3)]) -> t -> [(t2, t3)] infixl 4 Source #
(<$>) :: (t3 -> t1) -> (t -> [(t3, t2)]) -> t -> [(t1, t2)] Source #