Safe Haskell | None |
---|
Parser utilities.
- module Text.Parsec
- type Parser k a = Eq k => ParsecT [Token k] (ParserState k) Identity a
- data ParserState k = ParseState {
- stateTokenShow :: k -> String
- stateFileName :: String
- runTokenParser :: Eq k => (k -> String) -> String -> Parser k a -> [Token k] -> Either ParseError a
- pTokMaybe :: (k -> Maybe a) -> Parser k a
- pTokAs :: Eq k => k -> t -> Parser k t
- pTok :: Eq k => k -> Parser k ()
Documentation
module Text.Parsec
type Parser k a = Eq k => ParsecT [Token k] (ParserState k) Identity aSource
A generic parser, parameterised over token and return types.
data ParserState k Source
A parser state that keeps track of the name of the source file.
ParseState | |
|