Speed up to_string performance by relying on C++ versions

Addresses #134, fixing issues introduced by #132
This commit is contained in:
Jason Turner
2014-08-31 16:03:42 -06:00
parent 251790f144
commit 6bea42c1c0
3 changed files with 4 additions and 13 deletions

View File

@@ -430,17 +430,13 @@ namespace chaiscript
oss << t_prepend << "(" << ast_node_type_to_string(this->identifier) << ") "
<< this->text << " : " << this->start.line << ", " << this->start.column << std::endl;
for (size_t j = 0; j < this->children.size(); ++j) {
oss << this->children[j]->to_string(t_prepend + " ");
}
return oss.str();
}
std::string internal_to_string() {
return to_string();
}
Boxed_Value eval(chaiscript::detail::Dispatch_Engine &t_e)
{
try {