Safe Haskell | None |
---|---|
Language | Haskell98 |
Morte.Parser
Description
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