Files
archived-rsx-program-decomp…/shader_code/builder.cpp
DH 9974b95e12 Added draft projects
Most features is broken/unstable/unimplemented/disabled
2015-11-16 19:57:49 +02:00

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;
}
}