mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Added quoted scalars (with escaping).
Refactored some common whitespace-parsing code in scanning both scalars. Implemented the flow collection tokens.
This commit is contained in:
parent
a224c7818b
commit
49a75b2d78
9 changed files with 307 additions and 54 deletions
16
scanner.cpp
16
scanner.cpp
|
@ -286,6 +286,22 @@ namespace YAML
|
|||
}
|
||||
}
|
||||
|
||||
// IncreaseFlowLevel
|
||||
void Scanner::IncreaseFlowLevel()
|
||||
{
|
||||
// TODO: Push simple key
|
||||
m_flowLevel++;
|
||||
}
|
||||
|
||||
// DecreaseFlowLevel
|
||||
void Scanner::DecreaseFlowLevel()
|
||||
{
|
||||
if(m_flowLevel > 0) {
|
||||
m_flowLevel--;
|
||||
// TODO: Pop simple key
|
||||
}
|
||||
}
|
||||
|
||||
// temporary function for testing
|
||||
void Scanner::Scan()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue