This commit is contained in:
beder
2008-06-29 00:33:34 +00:00
parent ab27b9781e
commit 45dfc719e1
6 changed files with 74 additions and 104 deletions

View File

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