aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder.h')
-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