mirror of
https://github.com/RPCS3/rsx_program_decompiler.git
synced 2026-01-31 01:25:19 +01:00
30 lines
508 B
C++
30 lines
508 B
C++
#include "pch.h"
|
|
#include "builder.h"
|
|
|
|
namespace shader_code
|
|
{
|
|
builder::expression_base_t::expression_base_t(const std::string& text)
|
|
: text(text)
|
|
{
|
|
}
|
|
|
|
std::string builder::expression_base_t::to_string() const
|
|
{
|
|
return text;
|
|
}
|
|
|
|
std::string builder::expression_base_t::finalize(bool put_end) const
|
|
{
|
|
return to_string();
|
|
}
|
|
|
|
builder::writer_t::writer_to builder::writer_t::operator()(std::size_t position)
|
|
{
|
|
return{ &code[position] };
|
|
}
|
|
|
|
void builder::writer_t::next()
|
|
{
|
|
++position;
|
|
}
|
|
} |