polserver/pol-core/bscript/compiler/ast/RegularExpressionValue.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* all except pol

* pol and includes under defines

* something weird has happened

* remove own folder from include searchpath

* fixed remaining, adapted include style for external headers

* missing include
2026-07-25 23:01:18 +02:00

25 lines
No EOL
762 B
C++

#include "bscript/compiler/ast/RegularExpressionValue.h"
#include "bscript/compiler/ast/NodeVisitor.h"
#include "clib/strutil.h"
namespace Pol::Bscript::Compiler
{
RegularExpressionValue::RegularExpressionValue( const SourceLocation& source_location,
std::string pattern, std::string flags )
: Value( source_location ), pattern( std::move( pattern ) ), flags( std::move( flags ) )
{
}
void RegularExpressionValue::accept( NodeVisitor& visitor )
{
visitor.visit_regular_expression_value( *this );
}
void RegularExpressionValue::describe_to( std::string& w ) const
{
fmt::format_to( std::back_inserter( w ), "regular-expression-value({}, {})", pattern, flags );
}
} // namespace Pol::Bscript::Compiler