Compiler.Parse.Variable
This module provides parsers for Gren variables and identifiers.
Use this to parse lowercase variable names. It will fail if the variable is one of the reserved words.
String.Parser.run lowerCase Compiler.Parse.Context.empty source
Words which successfully parses as variables, but which are reserved by the
language spec. This includes words like if, when, import etc.
Use this to parse uppercase variable names (like type constructors).
String.Parser.run upperCase Compiler.Parse.Context.empty source
Use this to parse foreign uppercase variables (like Maybe.Just).
String.Parser.run foreignUpper Compiler.Parse.Context.empty source
Use this to parse foreign variables (like List.map or Maybe.Just).
String.Parser.run foreignVar Compiler.Parse.Context.empty source
The result of using a foreign* parser. Sometimes you will get an actual
foreign (qualified) var. Sometimes you just get an upper-case identifier.
Convert a foreign variable to its string representation.
Errors
The kind of errors that can happen while parsing variables.
Returns a human-readable description of an Error.