core: Add lexer + parser groundwork

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 02:21:09 -04:00
parent 659dd38932
commit 74e2e8c772
6 changed files with 232 additions and 0 deletions
+5
View File
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <unistd.h>
#include "cescal/state.h"
#include "cescal/parser.h"
#include "cescal/log.h"
static void
@@ -28,6 +29,10 @@ compile(const char *pathname)
return -1;
}
if (parser_parse(&st) < 0) {
return -1;
}
state_close(&st);
return 0;
}