summaryrefslogtreecommitdiff
path: root/yy/main.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-01-18 16:42:16 -0600
committersanine <sanine.not@pm.me>2023-01-18 16:42:16 -0600
commit5d2e5a312ba73bd48913e9ac5babe1c644997b3e (patch)
tree0c2f9a4667451795ab797398fad0622d00f51367 /yy/main.c
parent3409a7dbe08bdc98d7663e5dcafaee5792d12139 (diff)
parse float_array nodes
Diffstat (limited to 'yy/main.c')
-rw-r--r--yy/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/yy/main.c b/yy/main.c
index 52ee955..0d97fba 100644
--- a/yy/main.c
+++ b/yy/main.c
@@ -1,5 +1,10 @@
#include <stdio.h>
-#include "kalmia.h"
+
+#define YYLTYPE KALMIALTYPE
+#define YYSTYPE KALMIASTYPE
+#include "kalmia.tab.h"
+#include "kalmia.lex.h"
+
int main(int argc, char **argv)
{
@@ -13,10 +18,12 @@ int main(int argc, char **argv)
return -1;
}
+ struct kalmia_t result;
+
yyscan_t scanner;
kalmialex_init(&scanner);
kalmiaset_in(in, scanner);
- kalmiaparse(scanner);
+ kalmiaparse(scanner, &result);
kalmialex_destroy(scanner);
return 0;
}