Add Types.h to %code require in parser definition.
This commit is contained in:
parent
aa122fd7a0
commit
b5d524c295
|
@ -1,5 +1,4 @@
|
|||
%{
|
||||
#include "Type.h"
|
||||
#include "Monicelli.tab.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue
Block a user