aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-22 06:19:44 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-22 06:19:44 +0000
commitee98faf71642cf351d5cda241679b094aeec65ce (patch)
tree881b7a8b71fc9b9a21e6bca05da6f731ae1a2d64 /src/builder.h
parent8829c8548ea26abaf2e7d2f1d85e0b99757f1978 (diff)
downloadbuild-ee98faf71642cf351d5cda241679b094aeec65ce.tar.gz
build-ee98faf71642cf351d5cda241679b094aeec65ce.tar.bz2
build-ee98faf71642cf351d5cda241679b094aeec65ce.tar.xz
build-ee98faf71642cf351d5cda241679b094aeec65ce.zip
Added targets, and the global set command, things are really coming along now.
Diffstat (limited to 'src/builder.h')
-rw-r--r--src/builder.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/builder.h b/src/builder.h
index 529edc6..a6f88f4 100644
--- a/src/builder.h
+++ b/src/builder.h
@@ -11,6 +11,8 @@ class Function;
11class FunctionFactory; 11class FunctionFactory;
12class Perform; 12class Perform;
13class PerformFactory; 13class PerformFactory;
14class Target;
15class TargetFactory;
14 16
15#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) 17#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld )
16YY_DECL; 18YY_DECL;
@@ -28,13 +30,19 @@ public:
28 30
29 void load( const std::string &sFile ); 31 void load( const std::string &sFile );
30 32
31 int getTargetType( const char *sType );
32 33
33private: 34private:
34 std::string file; 35 std::string file;
35 void scanBegin(); 36 void scanBegin();
36 void scanEnd(); 37 void scanEnd();
37 38
39public: // Target functions
40 bool isTarget( const char *sType );
41
42private: // Target variables
43 Target *pTmpTarget;
44 TargetFactory &fTarget;
45
38public: // Function functions 46public: // Function functions
39 bool isFunction( const char *sFunc ); 47 bool isFunction( const char *sFunc );
40 void newFunctionCall( const char *sName ); 48 void newFunctionCall( const char *sName );