diff options
author | sanine <sanine.not@pm.me> | 2023-01-18 16:42:16 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-01-18 16:42:16 -0600 |
commit | 5d2e5a312ba73bd48913e9ac5babe1c644997b3e (patch) | |
tree | 0c2f9a4667451795ab797398fad0622d00f51367 /yy/main.c | |
parent | 3409a7dbe08bdc98d7663e5dcafaee5792d12139 (diff) |
parse float_array nodes
Diffstat (limited to 'yy/main.c')
-rw-r--r-- | yy/main.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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; } |