Myst::Parser
Inherits Myst::Lexer / Reference / Object
Constructors
Class methods
Instance methods
Returns true if the given identifier is modified (i.e., ends with a
? or !).
Parse the entirety of the given source. Currently, this assumes valid input and will only end when an EOF is encountered.
Arithmetic is left-associative. 1 - 1 - 1 must be parsed as
((1 - 1) - 1) to follow mathematic precedence and give the right result
of -2, rather than (1 - (1 - 1)), which would yield 0.
A code block is a set of expressions contained by some other expression. For example, the body of a method definition.
If a Def has parameters, they must be parenthesized. If the token after the opening parenthesis is a closing one, then there are no parameters.
This should use parse_type_path to avoid nested looping in this method.
Skip through whitespace tokens, but only if the current token is already a whitespace token.