From 0eb5a94cbbe697e646b760c5540f010a839eddc6 Mon Sep 17 00:00:00 2001 From: Creeper Lv Date: Mon, 25 May 2026 16:20:29 +1000 Subject: [PATCH] Added usage spec in main.c for SagittariusC. --- Source/SagittariusC/main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Source/SagittariusC/main.c b/Source/SagittariusC/main.c index d8fca76..2c13788 100644 --- a/Source/SagittariusC/main.c +++ b/Source/SagittariusC/main.c @@ -1,5 +1,15 @@ #include "../../Headers/SagittariusC/SagittariusC.h" - +/** + * Usage: + * SagittariusC [options] ... [options] + * Options: + * -I : Add an include path for resolving #include directives in Sagittarius C source files. Can be specified multiple times for multiple include paths. + * -o : Specify the output file for the compiled Sagittarius program. If not provided, the output file will be named after the first input file with a .out extension. + * -bt only build the tree, no tree finalization or code generation will be performed, and the tree will be written to the output file. + * -f start from finalize only, all input files should be tree files generated by the -bt option, and the compiler will perform tree finalization. If -bt is used together with -f, the compiler will poutput the finalized tree. + * -s only generate assembly code skipping assembler stage. + * -assembler : Specify the path to the assembler executable for assembling generated assembly code into a Sagittarius program. If not provided, the compiler will look for an assembler named "SagittariusAssembler" in the system PATH. + */ int main(int ac, char** av) { return 0;