This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// 包装 ANTLR4,提供简易的解析入口。
#pragma once
#include<memory>
#include<string>
#include"SysYLexer.h"
#include"SysYParser.h"
#include"antlr4-runtime.h"
structAntlrResult{
std::unique_ptr<antlr4::ANTLRInputStream>input;
std::unique_ptr<SysYLexer>lexer;
std::unique_ptr<antlr4::CommonTokenStream>tokens;
std::unique_ptr<SysYParser>parser;
antlr4::tree::ParseTree*tree=nullptr;// owned by parser