polserver/pol-core/bscript/compiler/ast/WhileLoop.h
turleypol 0e675c516a
use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
2024-01-12 06:51:44 +01:00

26 lines
605 B
C++

#ifndef POLSERVER_WHILELOOP_H
#define POLSERVER_WHILELOOP_H
#include "bscript/compiler/ast/LoopStatement.h"
namespace Pol::Bscript::Compiler
{
class Block;
class Expression;
class WhileLoop : public LoopStatement
{
public:
WhileLoop( const SourceLocation& source_location, std::string label,
std::unique_ptr<Expression> expression, std::unique_ptr<Block> block );
void accept( NodeVisitor& visitor ) override;
void describe_to( std::string& ) const override;
Expression& predicate();
Block& block();
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_WHILELOOP_H