| Copyright | (c) The University of Glasgow 2002 |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | libraries@haskell.org |
| Stability | provisional |
| Portability | non-portable (uses Text.ParserCombinators.ReadP) |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
Text.ParserCombinators.ReadPrec
Description
This library defines parser combinators for precedence parsing.
prec ::Prec ->ReadPrec a ->ReadPrec aSource#
(prec n p) checks whether the precedence context is less than or equal ton, and
p in contextn.All are based directly on their similarly-namedReadP counterparts.
Look-ahead: returns the part of the input that is left, without consuming it.
(<++) ::ReadPrec a ->ReadPrec a ->ReadPrec aSource#
Local, exclusive, left-biased choice: If left parser locally produces any result at all, then right parser is not used.
Produced byHaddock version 2.20.0