mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
25 lines
No EOL
762 B
C++
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
|