CS代写 #ifndef COMPILERPARSER_H

#ifndef COMPILERPARSER_H
#define COMPILERPARSER_H

#include

Copyright By PowCoder代写 加微信 powcoder

#include

#include “ParseTree.h”
#include “Token.h”

class CompilerParser {
CompilerParser(std::vector tokens);

ParseTree* compileProgram();
ParseTree* compileClass();
ParseTree* compileClassVarDec();
ParseTree* compileSubroutine();
ParseTree* compileParameterList();
ParseTree* compileSubroutineBody();
ParseTree* compileVarDec();

ParseTree* compileStatements();
ParseTree* compileLet();
ParseTree* compileIf();
ParseTree* compileWhile();
ParseTree* compileDo();
ParseTree* compileReturn();

ParseTree* compileExpression();
ParseTree* compileTerm();
ParseTree* compileExpressionList();

class ParseException : public std::exception {
const char* what();

#endif /*COMPILERPARSER_H*/

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com