polserver/pol-core/bscript/compiler/ast/CstyleForLoop.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

30 lines
750 B
C++

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