From e62b66dd08ca445d1f7e5b802a503ad3ec83b2df Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:57:26 +1000 Subject: added branching to compiler and comment generation --- Compiler/CompilerOptions.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Compiler/CompilerOptions.cs (limited to 'Compiler/CompilerOptions.cs') diff --git a/Compiler/CompilerOptions.cs b/Compiler/CompilerOptions.cs new file mode 100644 index 0000000..c1f5c3a --- /dev/null +++ b/Compiler/CompilerOptions.cs @@ -0,0 +1,15 @@ +namespace Q1.Compiler; + +using CommandLine; + +public class CompilerOptions +{ + [Option('i', "input", Required = true, HelpText = "Input file to compile.")] + public string InputFile { get; set; } + + [Option('o', "output", Required = true, HelpText = "Output file to write the compiled code.")] + public string OutputFile { get; set; } + + [Option('c', "comment-compilation", Required = false, HelpText = "Comments to preserve in the compiled result")] + public CommentCompilationMode CommentCompilationMode { get; set; } = CommentCompilationMode.UserDefined; +} \ No newline at end of file -- cgit v1.3.1