mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
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:
parent
121c2e577f
commit
8180a85a3b
10 changed files with 167 additions and 34 deletions
13
parser.cpp
13
parser.cpp
|
@ -1,5 +1,7 @@
|
|||
#include "parser.h"
|
||||
#include "scanner.h"
|
||||
#include "token.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
|
@ -17,4 +19,15 @@ namespace YAML
|
|||
{
|
||||
document.Parse(m_pScanner);
|
||||
}
|
||||
|
||||
void Parser::PrintTokens()
|
||||
{
|
||||
while(1) {
|
||||
Token *pToken = m_pScanner->GetNextToken();
|
||||
if(!pToken)
|
||||
break;
|
||||
|
||||
std::cout << *pToken << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue