Safe Haskell | None |
---|
Parsing logic for the Morte language
- exprFromText :: Text -> Either ParseError Expr
- typesFromText :: Text -> Either ParseError [Type]
- data ParseError = ParseError {}
- data ParseMessage
Parser
exprFromText :: Text -> Either ParseError ExprSource
Parse an Expr
from Text
or return a ParseError
if parsing fails
typesFromText :: Text -> Either ParseError [Type]Source
Parse a type definition from Text
or return a ParseError
if parsing
fails
Errors
data ParseError Source
Structured type for parsing errors
Show ParseError | |
Typeable ParseError | |
Exception ParseError | |
Buildable ParseError |
data ParseMessage Source
The specific parsing error
Lexing Text | Lexing failed, returning the remainder of the text |
Parsing Token [Token] | Parsing failed, returning the invalid token and the expected tokens |
Show ParseMessage |