mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN * remove old log define * fix comments
31 lines
721 B
C++
31 lines
721 B
C++
#ifndef POLSERVER_PROGRAM_H
|
|
#define POLSERVER_PROGRAM_H
|
|
|
|
#include "bscript/compiler/ast/Node.h"
|
|
#include "bscript/compiler/model/LocalVariableScopeInfo.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class FunctionBody;
|
|
class ProgramParameterList;
|
|
class Variable;
|
|
|
|
class Program : public Node
|
|
{
|
|
public:
|
|
Program( const SourceLocation&, std::unique_ptr<ProgramParameterList>,
|
|
std::unique_ptr<FunctionBody> );
|
|
~Program() override;
|
|
|
|
void accept( NodeVisitor& ) override;
|
|
void describe_to( std::string& ) const override;
|
|
|
|
ProgramParameterList& parameter_list();
|
|
FunctionBody& body();
|
|
|
|
LocalVariableScopeInfo local_variable_scope_info;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_PROGRAM_H
|