%define api.prefix {rtlil_frontend_ilang_yy}
+/* The union is defined in the header, so we need to provide all the
+ * includes it requires
+ */
+%code requires {
+#include <string>
+#include <vector>
+#include "frontends/ilang/ilang_frontend.h"
+}
+
%union {
char *string;
int integer;
delete $2;
delete $3;
};
-
%define api.prefix {frontend_verilog_yy}
+/* The union is defined in the header, so we need to provide all the
+ * includes it requires
+ */
+%code requires {
+#include <map>
+#include <string>
+#include "frontends/verilog/verilog_frontend.h"
+}
+
%union {
std::string *string;
struct YOSYS_NAMESPACE_PREFIX AST::AstNode *ast;
$$ = $3;
$$->children.push_back($1);
};
-