port from perforce
This commit is contained in:
27
space4k/src/4slang/Cruncher.h
Normal file
27
space4k/src/4slang/Cruncher.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "SemAnalyzer.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
class k_Cruncher
|
||||
{
|
||||
struct r_NoCaseLess
|
||||
{
|
||||
bool operator () (const CString& as_Left, const CString& as_Right) const
|
||||
{
|
||||
return as_Left.CompareNoCase(as_Right) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
public:
|
||||
map<CString, CString> mk_Functions;
|
||||
|
||||
k_Cruncher() {}
|
||||
virtual ~k_Cruncher() {}
|
||||
|
||||
void ReplaceFunctionCalls(r_Scope* ar_Scope_);
|
||||
void RenameVariables(r_Scope* ar_Scope_, char ac_Name);
|
||||
void Crunch(vector<r_Program*> ak_Programs);
|
||||
};
|
||||
Reference in New Issue
Block a user