Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
b789a1c5
Commit
b789a1c5
authored
Aug 24, 2009
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the implicit sequence code (since it's not used any more)
parent
a1460169
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
src/sequence.cpp
+0
-21
src/sequence.h
+0
-1
No files found.
src/sequence.cpp
View file @
b789a1c5
...
...
@@ -67,7 +67,6 @@ namespace YAML
// split based on start token
switch
(
pScanner
->
peek
().
type
)
{
case
TT_BLOCK_SEQ_START
:
ParseBlock
(
pScanner
,
state
);
break
;
case
TT_BLOCK_ENTRY
:
ParseImplicit
(
pScanner
,
state
);
break
;
case
TT_FLOW_SEQ_START
:
ParseFlow
(
pScanner
,
state
);
break
;
default
:
break
;
}
...
...
@@ -104,26 +103,6 @@ namespace YAML
}
}
void
Sequence
::
ParseImplicit
(
Scanner
*
pScanner
,
const
ParserState
&
state
)
{
while
(
1
)
{
// we're actually *allowed* to have no tokens at some point
if
(
pScanner
->
empty
())
break
;
// and we end at anything other than a block entry
Token
&
token
=
pScanner
->
peek
();
if
(
token
.
type
!=
TT_BLOCK_ENTRY
)
break
;
pScanner
->
pop
();
Node
*
pNode
=
new
Node
;
m_data
.
push_back
(
pNode
);
pNode
->
Parse
(
pScanner
,
state
);
}
}
void
Sequence
::
ParseFlow
(
Scanner
*
pScanner
,
const
ParserState
&
state
)
{
// eat start token
...
...
src/sequence.h
View file @
b789a1c5
...
...
@@ -39,7 +39,6 @@ namespace YAML
private
:
void
ParseBlock
(
Scanner
*
pScanner
,
const
ParserState
&
state
);
void
ParseImplicit
(
Scanner
*
pScanner
,
const
ParserState
&
state
);
void
ParseFlow
(
Scanner
*
pScanner
,
const
ParserState
&
state
);
protected
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment