mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-13 22:55:29 +00:00
Fixed 'str' in Value.
This commit is contained in:
parent
fe88c34649
commit
5b9d6d8a57
@ -67,8 +67,8 @@ struct Value
|
||||
case Bool: return to_bool() ? "true" : "false";
|
||||
case Long: return std::to_string(to_long()); break;
|
||||
case String: return to_string();
|
||||
//case Function: return "[function]";
|
||||
//case Array: return "[array]";
|
||||
case Function: return "[function]";
|
||||
case Array: return "[array]";
|
||||
default: throw std::logic_error("invalid internal condition.");
|
||||
}
|
||||
// NOTREACHED
|
||||
|
Loading…
Reference in New Issue
Block a user