diff --git a/Monicelli.ll b/Monicelli.ll index ceb6e5e..726e38a 100644 --- a/Monicelli.ll +++ b/Monicelli.ll @@ -1,5 +1,4 @@ %{ -#include "Type.h" #include "Monicelli.tab.h" #include #include diff --git a/Monicelli.y b/Monicelli.y index bef52b0..ee741d9 100644 --- a/Monicelli.y +++ b/Monicelli.y @@ -1,14 +1,15 @@ %{ -#include "Type.h" - #define YYERROR_VERBOSE extern void emit(const char *, ...); extern void yyerror(const char *); extern int yylex(); - %} +%code requires { + #include "Type.h" +} + %union { Type typeval; int intval; diff --git a/main.c b/main.c index 461e0b9..f963129 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,3 @@ -#include "Type.h" #include "Monicelli.tab.h" #include