mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
This commit is contained in:
6
token.h
6
token.h
@@ -31,6 +31,12 @@ namespace YAML
|
||||
|
||||
struct KeyToken: public Token {};
|
||||
struct ValueToken: public Token {};
|
||||
struct AnchorToken: public Token {
|
||||
bool alias;
|
||||
std::string value;
|
||||
|
||||
virtual void Write(std::ostream& out) const { out << (alias ? '*' : '&') << value; }
|
||||
};
|
||||
|
||||
struct ScalarToken: public Token {
|
||||
std::string value;
|
||||
|
Reference in New Issue
Block a user