An error occurred while loading the file. Please try again.
-
ilor authored
Add PositionRef value class, add Position:: nowhere/begin/end, add SentenceContext get_[abs|rel]_position takint Position or Positionref Add tests for sc's get_*_position
b367ef94
positionref.cpp 323 B
#include <libwccl/values/positionref.h>
#include <sstream>
namespace Wccl {
const char* PositionRef::type_name = "PositionRef";
std::string PositionRef::to_raw_string() const
{
std::stringstream ss;
ss << base_->get_value();
if (offset_ >=0) {
ss << "+";
}
ss << offset_;
return ss.str();
}
} /* end ns Wccl */