summaryrefslogtreecommitdiff
path: root/core/atas.c
diff options
context:
space:
mode:
authorIan M. <ian@aptel.org>2026-10-03 06:25:43 +0000
committerIan M. <ian@aptel.org>2026-10-03 06:25:43 +0000
commit34fc6119714b999bae5aaf08697453dca500f705 (patch)
tree0c03967204996f943d903b47f7b201ad73d6e817 /core/atas.c
parent8e838a73368d5f26fee796d6ddb065e21449e989 (diff)
frontend: Add lexer+parser groundwork
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'core/atas.c')
-rw-r--r--core/atas.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/atas.c b/core/atas.c
index 9585a26..623468f 100644
--- a/core/atas.c
+++ b/core/atas.c
@@ -5,7 +5,8 @@
#include <stdio.h>
#include <unistd.h>
-#include "atas/state.h"
+#include <atas/state.h>
+#include <atas/parser.h>
/*
* Display help options
@@ -39,6 +40,13 @@ atas_assemble(const char *in_file)
return;
}
+ error = atas_parse(&state);
+ if (error < 0) {
+ printf("failured occured in %s\n", in_file);
+ atas_state_destroy(&state);
+ return;
+ }
+
atas_state_destroy(&state);
}