diff options
Diffstat (limited to '')
-rw-r--r-- | src/buildparser.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/buildparser.h b/src/buildparser.h index 642cc73..2e1924c 100644 --- a/src/buildparser.h +++ b/src/buildparser.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <list> | 6 | #include <list> |
7 | #include <utility> | 7 | #include <utility> |
8 | #include "build.tab.h" | 8 | #include "build.tab.h" |
9 | #include "parser.h" | ||
9 | 10 | ||
10 | class Build; | 11 | class Build; |
11 | class BuildParser; | 12 | class BuildParser; |
@@ -46,7 +47,7 @@ enum eSetHow | |||
46 | setAdd | 47 | setAdd |
47 | }; | 48 | }; |
48 | 49 | ||
49 | class BuildParser | 50 | class BuildParser : public Parser |
50 | { | 51 | { |
51 | typedef std::pair<std::string, Function *> BuildListItem; | 52 | typedef std::pair<std::string, Function *> BuildListItem; |
52 | typedef std::list<BuildListItem> BuildList; | 53 | typedef std::list<BuildListItem> BuildList; |
@@ -56,13 +57,9 @@ public: | |||
56 | BuildParser(); | 57 | BuildParser(); |
57 | virtual ~BuildParser(); | 58 | virtual ~BuildParser(); |
58 | 59 | ||
59 | void error( YYLTYPE *locp, const char *msg ); | ||
60 | void error( const std::string &msg ); | ||
61 | |||
62 | Build *load( const std::string &sFile ); | 60 | Build *load( const std::string &sFile ); |
63 | 61 | ||
64 | private: | 62 | private: |
65 | std::string file; | ||
66 | void scanBegin(); | 63 | void scanBegin(); |
67 | void scanEnd(); | 64 | void scanEnd(); |
68 | 65 | ||