polserver/pol-core/bscript/compiler/codegen/CodeGenerator.h
Eric Swanson 6b3fdcb263
Add CodeGenerator stub (#206)
* Add codegen/CodeGenerator stub

* Destructor is trivial
2020-08-11 09:08:48 +02:00

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