diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-08 23:57:26 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-08 23:57:26 +1000 |
| commit | e62b66dd08ca445d1f7e5b802a503ad3ec83b2df (patch) | |
| tree | 8cdb4ee09d1eefe096f51d6c9150dc361d08ccb9 /Compiler/CompilerOptions.cs | |
| parent | 33e1c5fc6e37549b4eba833ae7e534f9da250b10 (diff) | |
added branching to compiler and comment generation
Diffstat (limited to 'Compiler/CompilerOptions.cs')
| -rw-r--r-- | Compiler/CompilerOptions.cs | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
