fix(frontend): 修复部分实现
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// 将 ANTLR parse tree 翻译为极简 IR。
|
||||
// 将语法树翻译为极简 IR。
|
||||
// 实现拆分在 IRGenFunc/IRGenStmt/IRGenExp/IRGenDecl。
|
||||
|
||||
#pragma once
|
||||
@@ -32,7 +32,7 @@ class IRGenImpl {
|
||||
private:
|
||||
void GenFuncDef(SysYParser::FuncDefContext& func);
|
||||
void GenBlock(SysYParser::BlockContext& block);
|
||||
void GenStmt(SysYParser::StmtContext& stmt);
|
||||
bool GenStmt(SysYParser::StmtContext& stmt);
|
||||
void GenVarDecl(SysYParser::VarDeclContext& decl);
|
||||
void GenReturnStmt(SysYParser::ReturnStmtContext& ret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user