diff --git a/Monicelli.ypp b/Monicelli.ypp index 2050ebf..92d3ece 100644 --- a/Monicelli.ypp +++ b/Monicelli.ypp @@ -1,8 +1,7 @@ -%{ -#include "Nodes.hpp" - -using namespace monicelli; -%} +%code top { + #include "Nodes.hpp" + using namespace monicelli; +} %skeleton "lalr1.cc" %require "3.0" @@ -54,14 +53,14 @@ using namespace monicelli; %nonassoc LOWER_THAN_ELSE %nonassoc BRANCH_ELSE -%{ +%code { #include static std::stack stmtStack; static std::stack argsStack; static std::stack paramsStack; static std::stack branchCaseStack; -%} +} %union { int intval;