15 lines
307 B
C++
15 lines
307 B
C++
// 简易命令行解析:支持帮助、输入文件与输出阶段选择。
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct CLIOptions {
|
|
std::string input;
|
|
bool emit_parse_tree = false;
|
|
bool emit_ir = true;
|
|
bool emit_asm = false;
|
|
bool show_help = false;
|
|
};
|
|
|
|
CLIOptions ParseCLI(int argc, char** argv);
|