| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Scrappy.Grep.DSL.Parser
Synopsis
- parseExpr :: String -> Either ParseError ParserExpr
- data ParseError
Documentation
parseExpr :: String -> Either ParseError ParserExpr Source #
Parse a DSL string into an AST
data ParseError #
The abstract data type ParseError represents parse errors. It
provides the source position (SourcePos) of the error
and a list of error messages (Message). A ParseError
can be returned by the function parse. ParseError is an
instance of the Show and Eq classes.
Instances
| Exception ParseError | Since: parsec-3.1.17.0 |
Defined in Text.Parsec.Error Methods toException :: ParseError -> SomeException # fromException :: SomeException -> Maybe ParseError # displayException :: ParseError -> String # | |
| Show ParseError | |
Defined in Text.Parsec.Error Methods showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS # | |
| Eq ParseError | |
Defined in Text.Parsec.Error | |