Added parsing of anchors, aliases, and tags (still no semantics yet).

Fixed a silly bug in the simple key pushing (queues are FIFO!).
This commit is contained in:
Jesse Beder 2008-07-01 01:17:10 +00:00
parent 121c2e577f
commit 8180a85a3b
10 changed files with 167 additions and 34 deletions

View file

@ -254,12 +254,14 @@ namespace YAML
// now push
m_indents.push(column);
Token *pToken = 0;
if(sequence)
m_tokens.push(new Token(TT_BLOCK_SEQ_START));
pToken = new Token(TT_BLOCK_SEQ_START);
else
m_tokens.push(new Token(TT_BLOCK_MAP_START));
pToken = new Token(TT_BLOCK_MAP_START);
return m_tokens.front();
m_tokens.push(pToken);
return pToken;
}
// PopIndentTo