Added usage spec in main.c for SagittariusC.

This commit is contained in:
Creeper Lv
2026-05-25 16:20:29 +10:00
parent eb27f05927
commit 0eb5a94cbb
+11 -1
View File
@@ -1,5 +1,15 @@
#include "../../Headers/SagittariusC/SagittariusC.h" #include "../../Headers/SagittariusC/SagittariusC.h"
/**
* Usage:
* SagittariusC [options] <input_file_0> <input_file_1> ... [options]
* Options:
* -I <include_path>: Add an include path for resolving #include directives in Sagittarius C source files. Can be specified multiple times for multiple include paths.
* -o <output_file>: 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 <assembler_path>: 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) { int main(int ac, char** av) {
return 0; return 0;