diff options
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; } |