Ruby  2.1.3p242(2014-09-19revision47630)
Data Fields
yaml_token_s Struct Reference

The token structure. More...

#include <yaml.h>

Data Fields

yaml_token_type_t type
 The token type.
 
union {
   struct {
      yaml_encoding_t   encoding
 The stream encoding.
 
   }   stream_start
 
   struct {
      yaml_char_t *   value
 The alias value.
 
   }   alias
 
   struct {
      yaml_char_t *   value
 The anchor value.
 
   }   anchor
 
   struct {
      yaml_char_t *   handle
 The tag handle.
 
      yaml_char_t *   suffix
 The tag suffix.
 
   }   tag
 
   struct {
      yaml_char_t *   value
 The scalar value.
 
      size_t   length
 The length of the scalar value.
 
      yaml_scalar_style_t   style
 The scalar style.
 
   }   scalar
 
   struct {
      int   major
 The major version number.
 
      int   minor
 The minor version number.
 
   }   version_directive
 
   struct {
      yaml_char_t *   handle
 The tag handle.
 
      yaml_char_t *   prefix
 The tag prefix.
 
   }   tag_directive
 
} data
 
yaml_mark_t start_mark
 The beginning of the token.
 
yaml_mark_t end_mark
 The end of the token.
 

Detailed Description

The token structure.

Definition at line 267 of file yaml.h.

Field Documentation

struct { ... } yaml_token_s::alias

Referenced by yaml_parser_parse_node().

struct { ... } yaml_token_s::anchor

Referenced by yaml_parser_parse_node().

union { ... } yaml_token_s::data
yaml_encoding_t yaml_token_s::encoding

The stream encoding.

Definition at line 278 of file yaml.h.

yaml_mark_t yaml_token_s::end_mark
yaml_char_t* yaml_token_s::handle

The tag handle.

Definition at line 296 of file yaml.h.

size_t yaml_token_s::length

The length of the scalar value.

Definition at line 306 of file yaml.h.

int yaml_token_s::major

The major version number.

Definition at line 314 of file yaml.h.

int yaml_token_s::minor

The minor version number.

Definition at line 316 of file yaml.h.

yaml_char_t* yaml_token_s::prefix

The tag prefix.

Definition at line 324 of file yaml.h.

struct { ... } yaml_token_s::scalar

Referenced by yaml_parser_parse_node().

yaml_mark_t yaml_token_s::start_mark
struct { ... } yaml_token_s::stream_start
yaml_scalar_style_t yaml_token_s::style

The scalar style.

Definition at line 308 of file yaml.h.

yaml_char_t* yaml_token_s::suffix

The tag suffix.

Definition at line 298 of file yaml.h.

struct { ... } yaml_token_s::tag

Referenced by yaml_parser_parse_node().

struct { ... } yaml_token_s::tag_directive
yaml_token_type_t yaml_token_s::type
yaml_char_t* yaml_token_s::value

The alias value.

The scalar value.

The anchor value.

Definition at line 284 of file yaml.h.

struct { ... } yaml_token_s::version_directive

The documentation for this struct was generated from the following file: