aboutsummaryrefslogtreecommitdiff
path: root/src/builder.cpp
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.cpp
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 'src/builder.cpp')
-rw-r--r--src/builder.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/builder.cpp b/src/builder.cpp
new file mode 100644
index 0000000..8c72fef
--- /dev/null
+++ b/src/builder.cpp
@@ -0,0 +1,34 @@
1#include <iostream>
2
3#include "builder.h"
4#include "build.tab.h"
5
6Builder::Builder()
7{
8}
9
10Builder::~Builder()
11{
12}
13
14void Builder::load( const char *sFN )
15{
16 file = sFN;
17
18 scanBegin();
19 yy::BuildParser parser( *this );
20 parser.set_debug_level( false );
21 parser.parse();
22 scanEnd();
23}
24
25void Builder::error( const yy::location &l, const std::string &m )
26{
27 std::cerr << l << ": " << m << std::endl;
28}
29
30void Builder::error( const std::string &m )
31{
32 std::cerr << m << std::endl;
33}
34