# along with this program; if not, write to the Free Software Foundation
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-find_package(BISON 2.4.1 REQUIRED)
+find_package(BISON 2.3.0 REQUIRED)
find_package(FLEX 2.5.37 REQUIRED)
bison_target(config_parser config_parser.yy ${CMAKE_CURRENT_BINARY_DIR}/config_parser.cc)
#include "config/expression.h"
#include "config/typerule.h"
#include "config/configcompilercontext.h"
+
+using namespace icinga;
+
#include "config/config_parser.hh"
#include <sstream>
-using namespace icinga;
+#define YYLTYPE icinga::DebugInfo
#define YY_EXTRA_TYPE ConfigCompiler *
#define YY_USER_ACTION \
-%code requires {
+%{
/******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2013 Icinga Development Team (http://www.icinga.org/) *
#include <boost/exception/diagnostic_information.hpp>
#include <boost/foreach.hpp>
-using namespace icinga;
-
#define YYLTYPE icinga::DebugInfo
-}
+using namespace icinga;
+
+%}
%pure-parser
# along with this program; if not, write to the Free Software Foundation
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-find_package(BISON 2.4.1 REQUIRED)
+find_package(BISON 2.3.0 REQUIRED)
find_package(FLEX 2.5.37 REQUIRED)
bison_target(class_parser class_parser.yy ${CMAKE_CURRENT_BINARY_DIR}/class_parser.cc)
******************************************************************************/
#include "classcompiler.h"
-#include "class_parser.hh"
using namespace icinga;
+#define YYLTYPE icinga::ClassDebugInfo
+
+#include "class_parser.hh"
+
#define YY_EXTRA_TYPE ClassCompiler *
#define YY_USER_ACTION \
do { \
-%code requires {
+%{
/******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2013 Icinga Development Team (http://www.icinga.org/) *
#define YYLTYPE icinga::ClassDebugInfo
-}
+%}
%pure-parser
#include <vector>
#include <algorithm>
-struct YYLTYPE;
-
namespace icinga
{