Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libyaml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
libraries
libyaml
Commits
9d71fd580c07
Commit
9d71fd580c07
authored
19 years ago
by
Kirill Simonov
Browse files
Options
Downloads
Patches
Plain Diff
Implement half of the parsers.
parent
2ef9fe0210b6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/yaml.h
+4
-4
4 additions, 4 deletions
include/yaml.h
src/api.c
+2
-2
2 additions, 2 deletions
src/api.c
src/parser.c
+766
-0
766 additions, 0 deletions
src/parser.c
with
772 additions
and
6 deletions
include/yaml.h
+
4
−
4
View file @
9d71fd58
...
...
@@ -666,7 +666,7 @@
*/
YAML_DECLARE
(
yaml_event_t
*
)
yaml_sequence_start_new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
yaml_sequence_start_
event_
new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
int
implicit
,
yaml_sequence_style_t
style
,
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
);
...
...
@@ -680,7 +680,7 @@
*/
YAML_DECLARE
(
yaml_event_t
*
)
yaml_sequence_end_new
(
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
);
yaml_sequence_end_
event_
new
(
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
);
/**
* Create a new @c YAML_MAPPING_START_EVENT event.
...
...
@@ -696,7 +696,7 @@
*/
YAML_DECLARE
(
yaml_event_t
*
)
yaml_mapping_start_new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
yaml_mapping_start_
event_
new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
int
implicit
,
yaml_mapping_style_t
style
,
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
);
...
...
@@ -710,7 +710,7 @@
*/
YAML_DECLARE
(
yaml_event_t
*
)
yaml_mapping_end_new
(
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
);
yaml_mapping_end_
event_
new
(
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
);
/**
* Destroy an event object.
...
...
This diff is collapsed.
Click to expand it.
src/api.c
+
2
−
2
View file @
9d71fd58
...
...
@@ -625,7 +625,7 @@
*/
YAML_DECLARE
(
yaml_event_t
*
)
yaml_sequence_start_new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
yaml_sequence_start_
event_
new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
int
implicit
,
yaml_sequence_style_t
style
,
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
)
{
...
...
@@ -657,7 +657,7 @@
*/
YAML_DECLARE
(
yaml_event_t
*
)
yaml_mapping_start_new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
yaml_mapping_start_
event_
new
(
yaml_char_t
*
anchor
,
yaml_char_t
*
tag
,
int
implicit
,
yaml_mapping_style_t
style
,
yaml_mark_t
start_mark
,
yaml_mark_t
end_mark
)
{
...
...
This diff is collapsed.
Click to expand it.
src/parser.c
+
766
−
0
View file @
9d71fd58
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment