Earley-0.12.1.0: Parsing all context-free grammars using Earley's algorithm.

Safe HaskellNone
LanguageHaskell2010

Text.Earley.Derived

Description

Derived operators.

Synopsis

Documentation

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.

symbol :: Eq t => t -> Prod r e t t Source #

Deprecated: Use token instead

namedSymbol :: Eq t => t -> Prod r e t t Source #

Deprecated: Use namedToken instead

word :: Eq t => [t] -> Prod r e t [t] Source #

Deprecated: Use list or listLike instead