code: func yaml_parser_parse_document_end(parser *yaml_parser_t, event *yaml_event_t) bool {
  	token := peek_token(parser)
  	if token == nil {
  		return false
  	}
  
  	start_mark := token.start_mark
  	end_mark := token.start_mark
  
  	implicit := true
  	if token.typ == yaml_DOCUMENT_END_TOKEN {
  		end_mark = token.end_mark
  		skip_token(parser)
  		implicit = false
  	}
  
  	parser.tag_directives = parser.tag_directives[:0]
  
  	parser.state = yaml_PARSE_DOCUMENT_START_STATE
  	*event = yaml_event_t{
  		typ:        yaml_DOCUMENT_END_EVENT,
  		start_mark: start_mark,
  		end_mark:   end_mark,
  		implicit:   implicit,
  	}
  	return true
  }
docs: // Parse the productions:
  // implicit_document    ::= block_node DOCUMENT-END*
  //                                     *************
  // explicit_document    ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END*
  //