core: Add lexer + parser groundwork
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user