aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder.h')
-rw-r--r--src/builder.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/builder.h b/src/builder.h
index 296b9d7..82a82c4 100644
--- a/src/builder.h
+++ b/src/builder.h
@@ -16,6 +16,7 @@ class Action;
16class Command; 16class Command;
17class Rule; 17class Rule;
18class Target; 18class Target;
19class Viewer;
19 20
20#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) 21#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld )
21YY_DECL; 22YY_DECL;
@@ -31,7 +32,7 @@ class Builder
31 }; 32 };
32 33
33public: 34public:
34 Builder(); 35 Builder( Viewer &rView );
35 virtual ~Builder(); 36 virtual ~Builder();
36 37
37 void load( const char *sFN ); 38 void load( const char *sFN );
@@ -43,6 +44,10 @@ public:
43 44
44 std::string file; 45 std::string file;
45 46
47 Viewer &view()
48 {
49 return rView;
50 }
46 void add( Action *pAct ); 51 void add( Action *pAct );
47 void add( Command *pCmd ); 52 void add( Command *pCmd );
48 void add( Rule *pRule ); 53 void add( Rule *pRule );
@@ -145,6 +150,8 @@ private:
145 StaticString sTmp; 150 StaticString sTmp;
146 151
147 bool bReqRegexp; 152 bool bReqRegexp;
153
154 Viewer &rView;
148}; 155};
149 156
150void cleanList( std::list<std::string> &lst ); 157void cleanList( std::list<std::string> &lst );