Struct ketos::parser::Parser [] [src]

pub struct Parser<'a, 'lex> { /* fields omitted */ }

Parses a stream of tokens into an expression.

Methods

impl<'a, 'lex> Parser<'a, 'lex>
[src]

Creates a new Parser using the given Lexer. Identifiers received from the lexer will be inserted into the given context.

Skips the "shebang" line of a source file.

Parses an expression from the input stream.

Parses a single expression from the input stream. If any tokens remain after the expression, an error is returned.

Parse a series of expressions from the input stream.

Returns a borrowed reference to the contained Lexer.