2020-08-18 03:07:51 -07:00
|
|
|
#ifndef POLSERVER_PROGRAMBUILDER_H
|
|
|
|
|
#define POLSERVER_PROGRAMBUILDER_H
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/astbuilder/CompoundStatementBuilder.h"
|
2020-08-18 03:07:51 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
2020-08-28 22:45:07 -07:00
|
|
|
class Program;
|
2020-08-18 03:07:51 -07:00
|
|
|
|
|
|
|
|
class ProgramBuilder : public CompoundStatementBuilder
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ProgramBuilder( const SourceFileIdentifier&, BuilderWorkspace& );
|
|
|
|
|
|
2020-08-28 22:45:07 -07:00
|
|
|
std::unique_ptr<Program> program( EscriptGrammar::EscriptParser::ProgramDeclarationContext* );
|
2020-08-18 03:07:51 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
|
|
|
|
|
|
#endif // POLSERVER_PROGRAMBUILDER_H
|