Enum yaml_token_type_t

Description

Token types.

Values

YAML_NO_TOKEN

An empty token.

YAML_STREAM_START_TOKEN

A STREAM-START token.

YAML_STREAM_END_TOKEN

A STREAM-END token.

YAML_VERSION_DIRECTIVE_TOKEN

A VERSION-DIRECTIVE token.

YAML_TAG_DIRECTIVE_TOKEN

A TAG-DIRECTIVE token.

YAML_DOCUMENT_START_TOKEN

A DOCUMENT-START token.

YAML_DOCUMENT_END_TOKEN

A DOCUMENT-END token.

YAML_BLOCK_SEQUENCE_START_TOKEN

A BLOCK-SEQUENCE-START token.

YAML_BLOCK_MAPPING_START_TOKEN

A BLOCK-MAPPING-START token.

YAML_BLOCK_END_TOKEN

A BLOCK-END token.

YAML_FLOW_SEQUENCE_START_TOKEN

A FLOW-SEQUENCE-START token.

YAML_FLOW_SEQUENCE_END_TOKEN

A FLOW-SEQUENCE-END token.

YAML_FLOW_MAPPING_START_TOKEN

A FLOW-MAPPING-START token.

YAML_FLOW_MAPPING_END_TOKEN

A FLOW-MAPPING-END token.

YAML_BLOCK_ENTRY_TOKEN

A BLOCK-ENTRY token.

YAML_FLOW_ENTRY_TOKEN

A FLOW-ENTRY token.

YAML_KEY_TOKEN

A KEY token.

YAML_VALUE_TOKEN

A VALUE token.

YAML_ALIAS_TOKEN

An ALIAS token.

YAML_ANCHOR_TOKEN

An ANCHOR token.

YAML_TAG_TOKEN

A TAG token.

YAML_SCALAR_TOKEN

A SCALAR token.

Source

Lines 215-266 in include/yaml.h.

typedef enum yaml_token_type_e {
    /** An empty token. */
    YAML_NO_TOKEN,

    /** A STREAM-START token. */
    YAML_STREAM_START_TOKEN,
    /** A STREAM-END token. */
    YAML_STREAM_END_TOKEN,

    /** A VERSION-DIRECTIVE token. */
    YAML_VERSION_DIRECTIVE_TOKEN,
    /** A TAG-DIRECTIVE token. */
    YAML_TAG_DIRECTIVE_TOKEN,
    /** A DOCUMENT-START token. */
    YAML_DOCUMENT_START_TOKEN,
    /** A DOCUMENT-END token. */
    YAML_DOCUMENT_END_TOKEN,

    /** A BLOCK-SEQUENCE-START token. */
    YAML_BLOCK_SEQUENCE_START_TOKEN,
    /** A BLOCK-MAPPING-START token. */
    YAML_BLOCK_MAPPING_START_TOKEN,
    /** A BLOCK-END token. */
    YAML_BLOCK_END_TOKEN,

    /** A FLOW-SEQUENCE-START token. */
    YAML_FLOW_SEQUENCE_START_TOKEN,
    /** A FLOW-SEQUENCE-END token. */
    YAML_FLOW_SEQUENCE_END_TOKEN,
    /** A FLOW-MAPPING-START token. */
    YAML_FLOW_MAPPING_START_TOKEN,
    /** A FLOW-MAPPING-END token. */
    YAML_FLOW_MAPPING_END_TOKEN,

    /** A BLOCK-ENTRY token. */
    YAML_BLOCK_ENTRY_TOKEN,
    /** A FLOW-ENTRY token. */
    YAML_FLOW_ENTRY_TOKEN,
    /** A KEY token. */
    YAML_KEY_TOKEN,
    /** A VALUE token. */
    YAML_VALUE_TOKEN,

    /** An ALIAS token. */
    YAML_ALIAS_TOKEN,
    /** An ANCHOR token. */
    YAML_ANCHOR_TOKEN,
    /** A TAG token. */
    YAML_TAG_TOKEN,
    /** A SCALAR token. */
    YAML_SCALAR_TOKEN
} yaml_token_type_t;





Add Discussion as Guest

Log in to DocsForge