OpenCores
URL https://opencores.org/ocsvn/theia_gpu/theia_gpu/trunk

Subversion Repositories theia_gpu

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /theia_gpu
    from Rev 204 to Rev 205
    Reverse comparison

Rev 204 → Rev 205

/branches/new_compiler/Preprocessor.h
0,0 → 1,37
 
#include <string>
#include <map>
#include <vector>
using namespace std;
//-----------------------------------------------------------------------
#define MAX_MACRO_FUNCTION_LINE_COUNT 100
class TMacroFunction
{
public:
vector<string> GetSubstitudedMacro( void );
string mName;
string mReturnSymbol;
string mReturnValue;
vector<string> mParamterSymbol;
vector<string> mParamterValue;
vector<string> mLines;
} ;
//--------------------------------------------------------
class Preprocessor
{
public:
Preprocessor();
~Preprocessor();
public:
void Execute( string aFile );
private:
vector<string> ScanFile( ifstream & ifs );
void SubstitudeMacros( vector<string> & aFile, ofstream & ofs );
void PopulateMacroFunction(string aSignature, ifstream & ifs, vector<string> & aNewFile);
map<string, TMacroFunction> mMacroFunctions;
map <string,string> mMacros;
};
//--------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.