mjplusplus
v0.4.1
|
#include <parser.hpp>
Public Member Functions | |
Parser (lexer::Lexer &lexer, shptr< ErrorReporter > errorReporter) | |
bool | start () |
shptr< ast::Program > | getRoot () |
Parser::Parser | ( | lexer::Lexer & | lexer, |
shptr< ErrorReporter > | errorReporter | ||
) |
Constructor to the parser, needs at least a lexer. Since it's going to be handimplemented, the grammar is implicitly defined in parse*() functions below
lexer | instance of a lexer providing the tokens |
shptr<ast::Program> Parser::getRoot | ( | ) |
Reference to parsed Program
bool Parser::start | ( | ) |
Generic function to start the parser