summaryrefslogtreecommitdiff
path: root/yy/main.c
diff options
context:
space:
mode:
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;
}