summaryrefslogtreecommitdiff
path: root/core/atas.c
diff options
context:
space:
mode:
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);
}