Moved the scalar-related functions to their own file.

This commit is contained in:
Jesse Beder
2008-06-29 03:11:25 +00:00
parent d076252dff
commit 6c193d6fbd
7 changed files with 378 additions and 352 deletions

View File

@@ -44,6 +44,10 @@ namespace YAML
};
struct PlainScalarToken: public ScalarToken {};
struct QuotedScalarToken: public ScalarToken {};
struct QuotedScalarToken: public ScalarToken {
bool single;
virtual void Write(std::ostream& out) const { out << (single ? '\'' : '\"') << value << (single ? '\'' : '\"'); }
};
struct BlockScalarToken: public ScalarToken {};
}