Get the next event.
(parser *yaml_parser_t, event *yaml_event_t)
| 117 | |
| 118 | // Get the next event. |
| 119 | func 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. |
| 133 | func yaml_parser_set_parser_error(parser *yaml_parser_t, problem string, problem_mark yaml_mark_t) bool { |
no test coverage detected