mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
28 lines
620 B
C++
28 lines
620 B
C++
#ifndef POLSERVER_CODEGENERATOR_H
|
|
#define POLSERVER_CODEGENERATOR_H
|
|
|
|
#include <memory>
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class CompiledScript;
|
|
class InstructionEmitter;
|
|
struct LegacyFunctionOrder;
|
|
class ModuleDeclarationRegistrar;
|
|
class CompilerWorkspace;
|
|
|
|
class CodeGenerator
|
|
{
|
|
public:
|
|
static std::unique_ptr<CompiledScript> generate( std::unique_ptr<CompilerWorkspace>,
|
|
const LegacyFunctionOrder* );
|
|
|
|
private:
|
|
CodeGenerator();
|
|
|
|
void generate_instructions( CompilerWorkspace& );
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_CODEGENERATOR_H
|