Module passerine::compiler::parse[][src]


Constructs an AST from a token stream. Note that this struct should not be controlled manually, use the parse function instead.


We’re using a Pratt parser, so this little enum defines different precedence levels. Each successive level is higher, so, for example, * > +.


Simple function that parses a token stream into an AST. Exposes the functionality of the Parser.