You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nudt-compiler-cpp/include/utils/CLI.h

15 lines
307 B

// 简易命令行解析:支持帮助、输入文件与输出阶段选择。
#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);