Safe Haskell | None |
---|---|
Language | Haskell2010 |
Derived operators.
- satisfy :: (t -> Bool) -> Prod r e t t
- token :: Eq t => t -> Prod r e t t
- namedToken :: Eq t => t -> Prod r t t t
- list :: Eq t => [t] -> Prod r e t [t]
- listLike :: (Eq t, ListLike i t) => i -> Prod r e t i
- symbol :: Eq t => t -> Prod r e t t
- namedSymbol :: Eq t => t -> Prod r e t t
- word :: Eq t => [t] -> Prod r e t [t]
Documentation
satisfy :: (t -> Bool) -> Prod r e t t Source #
Match a token that satisfies the given predicate. Returns the matched token.
namedToken :: Eq t => t -> Prod r t t t Source #
Match a single token and give it the name of the token.
listLike :: (Eq t, ListLike i t) => i -> Prod r e t i Source #
Match a ListLike
of tokens in sequence.
namedSymbol :: Eq t => t -> Prod r e t t Source #
Deprecated: Use namedToken
instead