mjplusplus  v0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Parser Class Reference

#include <parser.hpp>

Public Member Functions

 Parser (lexer::Lexer &lexer, shptr< ErrorReporter > errorReporter)
 
bool start ()
 
shptr< ast::ProgramgetRoot ()
 

Constructor & Destructor Documentation

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

Parameters
lexerinstance of a lexer providing the tokens

Member Function Documentation

shptr<ast::Program> Parser::getRoot ( )

Reference to parsed Program

bool Parser::start ( )

Generic function to start the parser


The documentation for this class was generated from the following files: