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:
Jesse Beder 2008-06-29 17:39:33 +00:00
parent ff99f85a6d
commit 5f8252ee6f
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