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
26 lines
605 B
C++
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
|