diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 17:16:40 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 17:17:04 +0000 |
| commit | d2461482caf9e93d6e2bc7ff17567102f635211a (patch) | |
| tree | c302d1a2e7cb829b6ed006c905db0b8bbf45f57a /src/main.c | |
| parent | f9b1992795142a073cd5dc1794350fc64e9aa695 (diff) | |
Fixed some things. Next thing will be tests.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#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) { |
