From 900976d2d74e0de57858b265c2ef0d17a29e921a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 30 Jul 2006 06:39:27 +0000 Subject: Found out all of the c++ stuff in bison broke in 2.2, now we have to pick a version, there is no way around it nicely. --- src/builder.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/builder.h (limited to 'src/builder.h') diff --git a/src/builder.h b/src/builder.h new file mode 100644 index 0000000..e379608 --- /dev/null +++ b/src/builder.h @@ -0,0 +1,36 @@ +#ifndef BUILDER_H +#define BUILDER_H + +#include + +union YYSTYPE; + +namespace yy +{ + class location; + class BuildParser; +} +class Builder; + +#define YY_DECL int yylex( YYSTYPE *yylval_param, yy::location *yylloc, Builder &bld ) +YY_DECL; + +class Builder +{ +public: + Builder(); + virtual ~Builder(); + + void load( const char *sFN ); + + void error( const yy::location &l, const std::string &m ); + void error( const std::string &m ); + + std::string file; + +private: + void scanBegin(); + void scanEnd(); +}; + +#endif -- cgit v1.2.3