diff options
Diffstat (limited to 'src/builder.h')
-rw-r--r-- | src/builder.h | 36 |
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 | |||
6 | union YYSTYPE; | ||
7 | |||
8 | namespace yy | ||
9 | { | ||
10 | class location; | ||
11 | class BuildParser; | ||
12 | } | ||
13 | class Builder; | ||
14 | |||
15 | #define YY_DECL int yylex( YYSTYPE *yylval_param, yy::location *yylloc, Builder &bld ) | ||
16 | YY_DECL; | ||
17 | |||
18 | class Builder | ||
19 | { | ||
20 | public: | ||
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 | |||
31 | private: | ||
32 | void scanBegin(); | ||
33 | void scanEnd(); | ||
34 | }; | ||
35 | |||
36 | #endif | ||