Handbook Glossary
factorcode.org
yaml_event_t


Vocabulary
yaml.ffi

Definition
USING: classes.struct ;

IN: yaml.ffi

STRUCT: yaml_event_t
{ type yaml_event_type_t } {
data event_data initial: S{ event_data
{ stream_start
S{ stream_start_event_data
{ encoding YAML_ANY_ENCODING }
}
}
{ document_start
S{ document_start_event_data
{ version_directive f }
{ tag_directives
S{
tag_directives_document_start_event_data
{ start f }
{ end f }
}
}
{ implicit 0 }
}
}
{ document_end
S{ document_end_event_data { implicit 0 } }
}
{ alias S{ alias_event_data { anchor f } } }
{ scalar
S{ scalar_event_data
{ anchor f }
{ tag f }
{ value f }
{ length 0 }
{ plain_implicit 0 }
{ quoted_implicit 0 }
{ style YAML_ANY_SCALAR_STYLE }
}
}
{ sequence_start
S{ sequence_start_event_data
{ anchor f }
{ tag f }
{ implicit 0 }
{ style YAML_ANY_SEQUENCE_STYLE }
}
}
{ mapping_start
S{ mapping_start_event_data
{ anchor f }
{ tag f }
{ implicit 0 }
{ style YAML_ANY_MAPPING_STYLE }
}
}
}
} {
start_mark yaml_mark_t initial:
S{ yaml_mark_t { index 0 } { line 0 } { column 0 } }
} {
end_mark yaml_mark_t initial:
S{ yaml_mark_t { index 0 } { line 0 } { column 0 } }
} ;


Methods
USING: classes.struct classes.struct.private kernel yaml.ffi ;

M: yaml_event_t clone
clone-underlying \ yaml_event_t memory>struct ; inline


USING: accessors classes.struct combinators combinators.smart
yaml.ffi ;

M: yaml_event_t struct-slot-values
[
{
[ type>> ]
[ data>> ]
[ start_mark>> ]
[ end_mark>> ]
} cleave
] output>array ; inline