Earley-0.13.0.1: Parsing all context-free grammars using Earley's algorithm.
Text.Earley.Derived
Description
Derived operators.
satisfy :: (t -> Bool) -> Prod r e t t Source #
Match a token that satisfies the given predicate. Returns the matched token.
token :: Eq t => t -> Prod r e t t Source #
Match a single token.
namedToken :: Eq t => t -> Prod r t t t Source #
Match a single token and give it the name of the token.
list :: Eq t => [t] -> Prod r e t [t] Source #
Match a list of tokens in sequence.
listLike :: (Eq t, ListLike i t) => i -> Prod r e t i Source #
Match a ListLike of tokens in sequence.
ListLike