Safe Haskell | None |
---|---|
Language | Haskell98 |
Parsing logic for the Morte language
- exprFromText :: Text -> Either ParseError Expr
- prettyParseError :: ParseError -> Text
- data ParseError = ParseError {}
- data ParseMessage
Parser
exprFromText :: Text -> Either ParseError Expr Source
Parse an Expr
from Text
or return a ParseError
if parsing fails
Errors
prettyParseError :: ParseError -> Text Source
Pretty-print a ParseError
data ParseError Source
Structured type for parsing errors