15 lines
301 B
C++
15 lines
301 B
C++
// 简易命令行解析:支持帮助、输入文件和 AST DOT 导出。
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct CLIOptions {
|
|
std::string input;
|
|
std::string ast_dot_output;
|
|
bool emit_ast = true;
|
|
bool emit_ir = true;
|
|
bool show_help = false;
|
|
};
|
|
|
|
CLIOptions ParseCLI(int argc, char** argv);
|