aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/builder.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/builder.h b/src/builder.h
index 3293108..529edc6 100644
--- a/src/builder.h
+++ b/src/builder.h
@@ -7,6 +7,10 @@
7#include "exceptions.h" 7#include "exceptions.h"
8 8
9class Builder; 9class Builder;
10class Function;
11class FunctionFactory;
12class Perform;
13class PerformFactory;
10 14
11#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) 15#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld )
12YY_DECL; 16YY_DECL;
@@ -25,13 +29,39 @@ public:
25 void load( const std::string &sFile ); 29 void load( const std::string &sFile );
26 30
27 int getTargetType( const char *sType ); 31 int getTargetType( const char *sType );
28 bool isFunction( const char *sFunc );
29 32
30private: 33private:
31 std::string file; 34 std::string file;
32 void scanBegin(); 35 void scanBegin();
33 void scanEnd(); 36 void scanEnd();
34 37
38public: // Function functions
39 bool isFunction( const char *sFunc );
40 void newFunctionCall( const char *sName );
41 void addFunctionParam( const char *sParam );
42
43private: // Function variables
44 Function *pTmpFunc;
45 FunctionFactory &fFunction;
46
47public: // Perform functions
48 bool isPerform( const char *sPerf );
49 void newPerform( const char *sName );
50 void addPerformParam( const char *sParam );
51
52private: // Perform variables
53 Perform *pTmpPerform;
54 PerformFactory &fPerform;
55
56public: // List functions
57 void newList();
58 void addListString( const char *str );
59 void addListFunc();
60
61public: // Functions for dealing with rules
62 void addAction();
63 void addAction( const char *sName );
64 void addCommand( int nType );
35}; 65};
36 66
37#endif 67#endif