|
| Text.ParserCombinators.Parsec.Utils | | Portability | portable | | Stability | provisional | | Maintainer | John Goerzen <jgoerzen@complete.org> |
|
|
|
|
|
| Description |
| Written by John Goerzen, jgoerzen@complete.org
|
|
| Synopsis |
|
|
|
|
| Generalized Utilities
|
|
| These functions are generalized versions of
ones you might see in the Char parser.
|
|
|
|
|
|
|
| Generate (return) a GeneralizedToken.
|
|
|
| Retrieve the next token from a GeneralizedToken stream.
The given function should return the value to use, or Nothing
to cause an error.
|
|
|
| A shortcut to tokeng; the test here is just a function that returns
a Bool. If the result is true; return that value -- otherwise, an error.
|
|
|
| Matches one item in a list and returns it.
|
|
|
| Matches one item not in a list and returns it.
|
|
|
| Matches one specific token and returns it.
|
|
|
| Matches all items and returns them
|
|
| Other Utilities
|
|
|
| Running notMatching p msg will try to apply parser p.
If it fails, returns (). If it succeds, cause a failure and raise
the given error message. It will not consume input in either case.
|
|
| Produced by Haddock version 2.6.0 |