diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-22 06:19:44 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-22 06:19:44 +0000 |
commit | ee98faf71642cf351d5cda241679b094aeec65ce (patch) | |
tree | 881b7a8b71fc9b9a21e6bca05da6f731ae1a2d64 /src/builder.h | |
parent | 8829c8548ea26abaf2e7d2f1d85e0b99757f1978 (diff) | |
download | build-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 '')
-rw-r--r-- | src/builder.h | 10 |
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; | |||
11 | class FunctionFactory; | 11 | class FunctionFactory; |
12 | class Perform; | 12 | class Perform; |
13 | class PerformFactory; | 13 | class PerformFactory; |
14 | class Target; | ||
15 | class 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 ) |
16 | YY_DECL; | 18 | YY_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 | ||
33 | private: | 34 | private: |
34 | std::string file; | 35 | std::string file; |
35 | void scanBegin(); | 36 | void scanBegin(); |
36 | void scanEnd(); | 37 | void scanEnd(); |
37 | 38 | ||
39 | public: // Target functions | ||
40 | bool isTarget( const char *sType ); | ||
41 | |||
42 | private: // Target variables | ||
43 | Target *pTmpTarget; | ||
44 | TargetFactory &fTarget; | ||
45 | |||
38 | public: // Function functions | 46 | public: // 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 ); |