summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-11 17:16:40 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-11 17:17:04 +0000
commitd2461482caf9e93d6e2bc7ff17567102f635211a (patch)
treec302d1a2e7cb829b6ed006c905db0b8bbf45f57a /src/main.c
parentf9b1992795142a073cd5dc1794350fc64e9aa695 (diff)
Fixed some things. Next thing will be tests.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 9 insertions, 8 deletions
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 <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)
{