Moved scalar scanning-related parameters to a struct.

Renamed the valid/possible tokens to a single variable status with enums valid, invalid, and unverified.
This commit is contained in:
beder
2008-06-29 17:39:33 +00:00
parent 6efc5614ec
commit 4de9cb48a5
10 changed files with 104 additions and 50 deletions

View File

@@ -26,7 +26,7 @@ namespace YAML
INPUT.column = 0;
PopIndentTo(-1);
ValidateAllSimpleKeys();
VerifyAllSimpleKeys();
m_simpleKeyAllowed = false;
m_endedStream = true;
@@ -38,7 +38,7 @@ namespace YAML
template <> DocumentStartToken *Scanner::ScanToken(DocumentStartToken *pToken)
{
PopIndentTo(INPUT.column);
ValidateAllSimpleKeys();
VerifyAllSimpleKeys();
m_simpleKeyAllowed = false;
// eat
@@ -50,7 +50,7 @@ namespace YAML
template <> DocumentEndToken *Scanner::ScanToken(DocumentEndToken *pToken)
{
PopIndentTo(-1);
ValidateAllSimpleKeys();
VerifyAllSimpleKeys();
m_simpleKeyAllowed = false;
// eat