From d2461482caf9e93d6e2bc7ff17567102f635211a Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 11 Jan 2026 17:16:40 +0000 Subject: Fixed some things. Next thing will be tests. --- src/main.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a455943..33333be 100644 --- a/src/main.c +++ b/src/main.c @@ -1,12 +1,12 @@ +#include "codegen/codegen.h" +#include "parser/parser.h" +#include "plugins/plugin_manager.h" +#include "repl/repl.h" +#include "zprep.h" #include #include #include #include -#include "zprep.h" -#include "parser/parser.h" -#include "codegen/codegen.h" -#include "repl/repl.h" -#include "plugins/plugin_manager.h" // Forward decl for LSP int lsp_main(int argc, char **argv); @@ -79,8 +79,8 @@ int main(int argc, char **argv) } else if (command[0] == '-') { - // implicit build or run? assume build if starts with flag, but usually command first - // If file provided directly: "zc file.zc" -> build + // implicit build or run? assume build if starts with flag, but usually + // command first If file provided directly: "zc file.zc" -> build if (strchr(command, '.')) { // treat as filename @@ -234,7 +234,8 @@ int main(int argc, char **argv) } // Checking mode? - // analyze(root); // Implicit in parsing or separate step? Assuming separate if check_mode + // analyze(root); // Implicit in parsing or separate step? Assuming separate + // if check_mode if (g_config.mode_check) { -- cgit v1.2.3