From f5cf5725026ecb2fa63d729fb6745b4da15e69d8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 22 Aug 2006 15:12:20 +0000 Subject: Started on the crazy process of building the stage one compiled data. It's going pretty quickly, we'll see how the targets go, they'll be the only tricky part. --- src/builder.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'src/builder.h') diff --git a/src/builder.h b/src/builder.h index a6f88f4..1d126dc 100644 --- a/src/builder.h +++ b/src/builder.h @@ -3,6 +3,8 @@ #include #include +#include +#include #include "build.tab.h" #include "exceptions.h" @@ -19,6 +21,8 @@ YY_DECL; subExceptionDecl( BuildException ); +typedef std::list StringList; + class Builder { public: @@ -30,7 +34,6 @@ public: void load( const std::string &sFile ); - private: std::string file; void scanBegin(); @@ -66,10 +69,30 @@ public: // List functions void addListString( const char *str ); void addListFunc(); + typedef std::pair BuildListItem; + typedef std::list BuildList; + + StringList buildToStringList( BuildList &lSrc, StringList &lIn ); + +private: + BuildList lTmp; + public: // Functions for dealing with rules + +public: // Functions for dealing with actions void addAction(); void addAction( const char *sName ); void addCommand( int nType ); + +private: // Action variables + typedef std::pair ActionTmpCmd; + typedef std::list ActionTmpCmdList; + typedef std::pair ActionTmp; + typedef std::list ActionTmpList; + ActionTmpList lActions; + +public: // Debug + void debugDump(); }; #endif -- cgit v1.2.3