aboutsummaryrefslogtreecommitdiff
path: root/src/buildparser.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/buildparser.h7
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
10class Build; 11class Build;
11class BuildParser; 12class BuildParser;
@@ -46,7 +47,7 @@ enum eSetHow
46 setAdd 47 setAdd
47}; 48};
48 49
49class BuildParser 50class 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
64private: 62private:
65 std::string file;
66 void scanBegin(); 63 void scanBegin();
67 void scanEnd(); 64 void scanEnd();
68 65