Added simple keys.

There's a bug (and question): should we test simple keys' validity BEFORE stuff or AFTER stuff?
This commit is contained in:
Jesse Beder
2008-06-28 06:36:59 +00:00
parent 49a75b2d78
commit 11706abbb7
9 changed files with 321 additions and 79 deletions

View File

@@ -5,10 +5,12 @@
namespace YAML
{
struct Token {
Token(): isValid(true), isPossible(true) {}
virtual ~Token() {}
virtual void Write(std::ostream& out) const {}
friend std::ostream& operator << (std::ostream& out, const Token& token) { token.Write(out); return out; }
bool isValid, isPossible;
};
struct StreamStartToken: public Token {};