fix(frontend): 修复部分实现
This commit is contained in:
9
src/frontend/SyntaxTreePrinter.h
Normal file
9
src/frontend/SyntaxTreePrinter.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
#include "antlr4-runtime.h"
|
||||
|
||||
// 以树状缩进形式打印语法树(仅保留关键节点/记号)。
|
||||
void PrintSyntaxTree(antlr4::tree::ParseTree* tree, antlr4::Parser* parser,
|
||||
std::ostream& os);
|
||||
Reference in New Issue
Block a user