Files
Client/GameTools/ScriptEngine/IntermediateCode.h
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

51 lines
1002 B
C++

#ifndef _IntermediateCode_H_
#define _IntermediateCode_H_
#include "STL.h"
#include "BaseDef.h"
#include "Message.h"
///////////////////////////////////////////////////////////////////////////////////
//
class IOPCode;
class CSyntaxTree;
class CSymbolTable;
class CRelocTable;
class CIntermediateCode
{
public:
typedef list<IOPCode*> IMCODES;
typedef map<int, IMCODES*> FUNCTIONS;
typedef map<int, long> FUNCTABLE;
protected:
IMCODES * m_pCodes;
FUNCTIONS * m_pFunctions;
FUNCTABLE * m_pFuncTable;
protected:
void DestroyIMCodes( IMCODES * );
public:
CIntermediateCode();
~CIntermediateCode();
void Create( CSyntaxTree & );
void Destroy();
void Show( MESSAGE_FUNCTION2, CSymbolTable * pSymbolTable );
long Addressing( long addr ); //past endÀÇ addrÀ» ¸®ÅÏÇÔ.
int ToMachineCode( void *, CRelocTable * );
FUNCTABLE & GetFuncTable() { return *m_pFuncTable; }
};
///////////////////////////////////////////////////////////////////////////////////
//
#endif