mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
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:
2
token.h
2
token.h
@@ -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 {};
|
||||
|
Reference in New Issue
Block a user