aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-30 06:39:27 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-30 06:39:27 +0000
commit900976d2d74e0de57858b265c2ef0d17a29e921a (patch)
tree3d7e0c804b2bb5163d2998158b7c1f6e1891240c /src/builder.h
parent28e92029752693ffe33de12c10de3e7bd39a3c94 (diff)
downloadbuild-900976d2d74e0de57858b265c2ef0d17a29e921a.tar.gz
build-900976d2d74e0de57858b265c2ef0d17a29e921a.tar.bz2
build-900976d2d74e0de57858b265c2ef0d17a29e921a.tar.xz
build-900976d2d74e0de57858b265c2ef0d17a29e921a.zip
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.
Diffstat (limited to '')
-rw-r--r--src/builder.h36
1 files changed, 36 insertions, 0 deletions
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 @@
1#ifndef BUILDER_H
2#define BUILDER_H
3
4#include <string>
5
6union YYSTYPE;
7
8namespace yy
9{
10 class location;
11 class BuildParser;
12}
13class Builder;
14
15#define YY_DECL int yylex( YYSTYPE *yylval_param, yy::location *yylloc, Builder &bld )
16YY_DECL;
17
18class Builder
19{
20public:
21 Builder();
22 virtual ~Builder();
23
24 void load( const char *sFN );
25
26 void error( const yy::location &l, const std::string &m );
27 void error( const std::string &m );
28
29 std::string file;
30
31private:
32 void scanBegin();
33 void scanEnd();
34};
35
36#endif