Handbook Glossary
factorcode.org
yaml_token_t


Vocabulary
yaml.ffi

Definition
USING: classes.struct ;

IN: yaml.ffi

STRUCT: yaml_token_t
{ type yaml_token_type_t } {
data token_data initial: S{ token_data
{ stream_start
S{ stream_start_token_data
{ encoding YAML_ANY_ENCODING }
}
}
{ alias S{ alias_token_data { value f } } }
{ anchor S{ anchor_token_data { value f } } }
{ tag
S{ tag_token_data { handle f } { suffix f } }
}
{ scalar
S{ scalar_token_data
{ value f }
{ length 0 }
{ style YAML_ANY_SCALAR_STYLE }
}
}
{ version_directive
S{ version_directive_token_data
{ major 0 }
{ minor 0 }
}
}
}
} {
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_token_t clone
clone-underlying \ yaml_token_t memory>struct ; inline


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

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