Safe Haskell | Safe-Inferred |
---|
Language.SQL.SimpleSQL.Parser
Description
This is the module with the parser functions.
- parseQueryExpr :: FilePath -> Maybe (Int, Int) -> String -> Either ParseError QueryExpr
- parseScalarExpr :: FilePath -> Maybe (Int, Int) -> String -> Either ParseError ScalarExpr
- parseQueryExprs :: FilePath -> Maybe (Int, Int) -> String -> Either ParseError [QueryExpr]
- data ParseError = ParseError {
- peErrorString :: String
- peFilename :: FilePath
- pePosition :: (Int, Int)
- peFormattedError :: String
Documentation
Arguments
:: FilePath | filename to use in errors |
-> Maybe (Int, Int) | line number and column number to use in errors |
-> String | the SQL source to parse |
-> Either ParseError QueryExpr |
Parses a query expr, trailing semicolon optional.
Arguments
:: FilePath | filename to use in errors |
-> Maybe (Int, Int) | line number and column number to use in errors |
-> String | the SQL source to parse |
-> Either ParseError ScalarExpr |
Parses a scalar expression.
Arguments
:: FilePath | filename to use in errors |
-> Maybe (Int, Int) | line number and column number to use in errors |
-> String | the SQL source to parse |
-> Either ParseError [QueryExpr] |
Parses a list of query exprs, with semi colons between them. The final semicolon is optional.
data ParseError Source
Type to represent parse errors.
Constructors
ParseError | |
Fields
|
Instances