Enum yaml_emitter_state_t

Description

The emitter states.

Values

YAML_EMIT_STREAM_START_STATE

Expect STREAM-START.

YAML_EMIT_FIRST_DOCUMENT_START_STATE

Expect the first DOCUMENT-START or STREAM-END.

YAML_EMIT_DOCUMENT_START_STATE

Expect DOCUMENT-START or STREAM-END.

YAML_EMIT_DOCUMENT_CONTENT_STATE

Expect the content of a document.

YAML_EMIT_DOCUMENT_END_STATE

Expect DOCUMENT-END.

YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE

Expect the first item of a flow sequence.

YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE

Expect an item of a flow sequence.

YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE

Expect the first key of a flow mapping.

YAML_EMIT_FLOW_MAPPING_KEY_STATE

Expect a key of a flow mapping.

YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE

Expect a value for a simple key of a flow mapping.

YAML_EMIT_FLOW_MAPPING_VALUE_STATE

Expect a value of a flow mapping.

YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE

Expect the first item of a block sequence.

YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE

Expect an item of a block sequence.

YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE

Expect the first key of a block mapping.

YAML_EMIT_BLOCK_MAPPING_KEY_STATE

Expect the key of a block mapping.

YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE

Expect a value for a simple key of a block mapping.

YAML_EMIT_BLOCK_MAPPING_VALUE_STATE

Expect a value of a block mapping.

YAML_EMIT_END_STATE

Expect nothing.

Source

Lines 1485-1525 in include/yaml.h.

typedef enum yaml_emitter_state_e {
    /** Expect STREAM-START. */
    YAML_EMIT_STREAM_START_STATE,
    /** Expect the first DOCUMENT-START or STREAM-END. */
    YAML_EMIT_FIRST_DOCUMENT_START_STATE,
    /** Expect DOCUMENT-START or STREAM-END. */
    YAML_EMIT_DOCUMENT_START_STATE,
    /** Expect the content of a document. */
    YAML_EMIT_DOCUMENT_CONTENT_STATE,
    /** Expect DOCUMENT-END. */
    YAML_EMIT_DOCUMENT_END_STATE,

    /** Expect the first item of a flow sequence. */
    YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE,
    /** Expect an item of a flow sequence. */
    YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE,
    /** Expect the first key of a flow mapping. */
    YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE,
    /** Expect a key of a flow mapping. */
    YAML_EMIT_FLOW_MAPPING_KEY_STATE,
    /** Expect a value for a simple key of a flow mapping. */
    YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE,

    /** Expect a value of a flow mapping. */
    YAML_EMIT_FLOW_MAPPING_VALUE_STATE,
    /** Expect the first item of a block sequence. */
    YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE,
    /** Expect an item of a block sequence. */
    YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE,
    /** Expect the first key of a block mapping. */
    YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE,
    /** Expect the key of a block mapping. */
    YAML_EMIT_BLOCK_MAPPING_KEY_STATE,

    /** Expect a value for a simple key of a block mapping. */
    YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE,
    /** Expect a value of a block mapping. */
    YAML_EMIT_BLOCK_MAPPING_VALUE_STATE,
    /** Expect nothing. */
    YAML_EMIT_END_STATE
} yaml_emitter_state_t;





Add Discussion as Guest

Log in to DocsForge