MCPcopy
hub / github.com/go-yaml/yaml / yaml_parser_parse

Function yaml_parser_parse

parserc.go:119–130  ·  view source on GitHub ↗

Get the next event.

(parser *yaml_parser_t, event *yaml_event_t)

Source from the content-addressed store, hash-verified

117
118// Get the next event.
119func yaml_parser_parse(parser *yaml_parser_t, event *yaml_event_t) bool {
120 // Erase the event object.
121 *event = yaml_event_t{}
122
123 // No events after the end of the stream or error.
124 if parser.stream_end_produced || parser.error != yaml_NO_ERROR || parser.state == yaml_PARSE_END_STATE {
125 return true
126 }
127
128 // Generate the next event.
129 return yaml_parser_state_machine(parser, event)
130}
131
132// Set parser error.
133func yaml_parser_set_parser_error(parser *yaml_parser_t, problem string, problem_mark yaml_mark_t) bool {

Callers 2

expectMethod · 0.85
peekMethod · 0.85

Calls 1

Tested by

no test coverage detected