Compiler.Parse.Expression
This module provides parsers for Gren expressions.
parser :
Parser Context Error Expression
Use this to parse expressions.
String.Parser.run parser Compiler.Parse.Context.empty source
type Error
= ExpectedChar Char
| ExpectedKeyword String
| VariableError Error
| NumberError Error
| StringError Error
| PatternError Error
| TypeError Error
| WildcardAttempt
| ExpectedLowerVariable Expression
| NameMismatch ({ first : String, second : String })
| IndentError
| BadOperator String
| InvalidOperatorChar
| SpaceError Error
| OperatorError Error
| InternalError
The kind of errors that can happen while parsing expressions.
errorToString :
Error -> String
Returns a human-readable description of an Error.
letDefNamedParser :
Parser Context Error (Located DefineRecord)
Use this to parse named let definitions.
String.Parser.run letDefNamedParser Compiler.Parse.Context.empty source