Ruby  2.1.3p242(2014-09-19revision47630)
yaml_parser_s Struct Reference

The parser structure. More...

#include <yaml.h>

Data Fields

const unsigned char * start
 The string start pointer.
 
const unsigned char * end
 The string end pointer.
 
const unsigned char * current
 The string current position.
 
struct {
   const unsigned char *   start
 The string start pointer.
 
   const unsigned char *   end
 The string end pointer.
 
   const unsigned char *   current
 The string current position.
 
} string
 
FILE * file
 File input data.
 
yaml_char_t * start
 The beginning of the buffer.
 
yaml_char_t * end
 The end of the buffer.
 
yaml_char_t * pointer
 The current position of the buffer.
 
yaml_char_t * last
 The last filled position of the buffer.
 
unsigned char * start
 The beginning of the buffer.
 
unsigned char * end
 The end of the buffer.
 
unsigned char * pointer
 The current position of the buffer.
 
unsigned char * last
 The last filled position of the buffer.
 
yaml_token_t * start
 The beginning of the tokens queue.
 
yaml_token_t * end
 The end of the tokens queue.
 
yaml_token_t * head
 The head of the tokens queue.
 
yaml_token_t * tail
 The tail of the tokens queue.
 
int * start
 The beginning of the stack.
 
int * end
 The end of the stack.
 
int * top
 The top of the stack.
 
yaml_simple_key_t * start
 The beginning of the stack.
 
yaml_simple_key_t * end
 The end of the stack.
 
yaml_simple_key_t * top
 The top of the stack.
 
yaml_parser_state_t * start
 The beginning of the stack.
 
yaml_parser_state_t * end
 The end of the stack.
 
yaml_parser_state_t * top
 The top of the stack.
 
yaml_mark_t * start
 The beginning of the stack.
 
yaml_mark_t * end
 The end of the stack.
 
yaml_mark_t * top
 The top of the stack.
 
yaml_tag_directive_t * start
 The beginning of the list.
 
yaml_tag_directive_t * end
 The end of the list.
 
yaml_tag_directive_t * top
 The top of the list.
 
yaml_alias_data_t * start
 The beginning of the list.
 
yaml_alias_data_t * end
 The end of the list.
 
yaml_alias_data_t * top
 The top of the list.
 
Error handling
yaml_error_type_t error
 Error type.
 
const char * problem
 Error description.
 
size_t problem_offset
 The byte about which the problem occurred.
 
int problem_value
 The problematic value (-1 is none).
 
yaml_mark_t problem_mark
 The problem position.
 
const char * context
 The error context.
 
yaml_mark_t context_mark
 The context position.
 
Reader stuff
yaml_read_handler_t * read_handler
 Read handler.
 
void * read_handler_data
 A pointer for passing to the read handler.
 
union {
   struct {
      const unsigned char *   start
 The string start pointer.
 
      const unsigned char *   end
 The string end pointer.
 
      const unsigned char *   current
 The string current position.
 
   }   string
 
   FILE *   file
 File input data.
 
} input
 
int eof
 EOF flag.
 
struct {
   yaml_char_t *   start
 The beginning of the buffer.
 
   yaml_char_t *   end
 The end of the buffer.
 
   yaml_char_t *   pointer
 The current position of the buffer.
 
   yaml_char_t *   last
 The last filled position of the buffer.
 
} buffer
 
size_t unread
 
struct {
   unsigned char *   start
 The beginning of the buffer.
 
   unsigned char *   end
 The end of the buffer.
 
   unsigned char *   pointer
 The current position of the buffer.
 
   unsigned char *   last
 The last filled position of the buffer.
 
} raw_buffer
 
yaml_encoding_t encoding
 The input encoding.
 
size_t offset
 The offset of the current position (in bytes).
 
yaml_mark_t mark
 The mark of the current position.
 
Scanner stuff
int stream_start_produced
 Have we started to scan the input stream?
 
int stream_end_produced
 Have we reached the end of the input stream?
 
int flow_level
 The number of unclosed '[' and '{' indicators.
 
struct {
   yaml_token_t *   start
 The beginning of the tokens queue.
 
   yaml_token_t *   end
 The end of the tokens queue.
 
   yaml_token_t *   head
 The head of the tokens queue.
 
   yaml_token_t *   tail
 The tail of the tokens queue.
 
} tokens
 
size_t tokens_parsed
 The number of tokens fetched from the queue.
 
int token_available
 
struct {
   int *   start
 The beginning of the stack.
 
   int *   end
 The end of the stack.
 
   int *   top
 The top of the stack.
 
} indents
 
int indent
 The current indentation level.
 
int simple_key_allowed
 May a simple key occur at the current position?
 
struct {
   yaml_simple_key_t *   start
 The beginning of the stack.
 
   yaml_simple_key_t *   end
 The end of the stack.
 
   yaml_simple_key_t *   top
 The top of the stack.
 
} simple_keys
 
Parser stuff
struct {
   yaml_parser_state_t *   start
 The beginning of the stack.
 
   yaml_parser_state_t *   end
 The end of the stack.
 
   yaml_parser_state_t *   top
 The top of the stack.
 
} states
 
yaml_parser_state_t state
 The current parser state.
 
struct {
   yaml_mark_t *   start
 The beginning of the stack.
 
   yaml_mark_t *   end
 The end of the stack.
 
   yaml_mark_t *   top
 The top of the stack.
 
} marks
 
struct {
   yaml_tag_directive_t *   start
 The beginning of the list.
 
   yaml_tag_directive_t *   end
 The end of the list.
 
   yaml_tag_directive_t *   top
 The top of the list.
 
} tag_directives
 
Dumper stuff
struct {
   yaml_alias_data_t *   start
 The beginning of the list.
 
   yaml_alias_data_t *   end
 The end of the list.
 
   yaml_alias_data_t *   top
 The top of the list.
 
} aliases
 
yaml_document_t * document
 The currently parsed document.
 

Detailed Description

The parser structure.

All members are internal. Manage the structure using the yaml_parser_ family of functions.

Definition at line 1081 of file yaml.h.

Field Documentation

struct { ... } yaml_parser_s::aliases
struct { ... } yaml_parser_s::buffer
const char* yaml_parser_s::context
yaml_mark_t yaml_parser_s::context_mark
const unsigned char* yaml_parser_s::current

The string current position.

Definition at line 1127 of file yaml.h.

yaml_document_t* yaml_parser_s::document
yaml_encoding_t yaml_parser_s::encoding

The input encoding.

Definition at line 1165 of file yaml.h.

Referenced by yaml_parser_determine_encoding(), and yaml_parser_fetch_stream_start().

const unsigned char* yaml_parser_s::end

The string end pointer.

Definition at line 1125 of file yaml.h.

Referenced by yaml_parser_update_raw_buffer().

yaml_char_t* yaml_parser_s::end

The end of the buffer.

Definition at line 1142 of file yaml.h.

unsigned char* yaml_parser_s::end

The end of the buffer.

Definition at line 1157 of file yaml.h.

yaml_token_t* yaml_parser_s::end

The end of the tokens queue.

Definition at line 1196 of file yaml.h.

int* yaml_parser_s::end

The end of the stack.

Definition at line 1214 of file yaml.h.

yaml_simple_key_t* yaml_parser_s::end

The end of the stack.

Definition at line 1230 of file yaml.h.

yaml_parser_state_t* yaml_parser_s::end

The end of the stack.

Definition at line 1249 of file yaml.h.

yaml_mark_t* yaml_parser_s::end

The end of the stack.

Definition at line 1262 of file yaml.h.

yaml_tag_directive_t* yaml_parser_s::end

The end of the list.

Definition at line 1272 of file yaml.h.

yaml_alias_data_t* yaml_parser_s::end

The end of the list.

Definition at line 1291 of file yaml.h.

int yaml_parser_s::eof

EOF flag.

Definition at line 1135 of file yaml.h.

Referenced by yaml_parser_determine_encoding(), and yaml_parser_update_raw_buffer().

yaml_error_type_t yaml_parser_s::error
FILE* yaml_parser_s::file

File input data.

Definition at line 1131 of file yaml.h.

Referenced by yaml_file_read_handler().

int yaml_parser_s::flow_level
yaml_token_t* yaml_parser_s::head

The head of the tokens queue.

Definition at line 1198 of file yaml.h.

Referenced by yaml_parser_save_simple_key().

int yaml_parser_s::indent
struct { ... } yaml_parser_s::indents
union { ... } yaml_parser_s::input
yaml_char_t* yaml_parser_s::last

The last filled position of the buffer.

Definition at line 1146 of file yaml.h.

Referenced by yaml_parser_determine_encoding(), and yaml_parser_update_raw_buffer().

unsigned char* yaml_parser_s::last

The last filled position of the buffer.

Definition at line 1161 of file yaml.h.

yaml_mark_t yaml_parser_s::mark
struct { ... } yaml_parser_s::marks
size_t yaml_parser_s::offset

The offset of the current position (in bytes).

Definition at line 1168 of file yaml.h.

Referenced by yaml_parser_determine_encoding(), and yaml_parser_update_raw_buffer().

yaml_char_t* yaml_parser_s::pointer

The current position of the buffer.

Definition at line 1144 of file yaml.h.

Referenced by yaml_parser_determine_encoding(), yaml_parser_scan_flow_scalar(), and yaml_parser_update_raw_buffer().

unsigned char* yaml_parser_s::pointer

The current position of the buffer.

Definition at line 1159 of file yaml.h.

const char* yaml_parser_s::problem
yaml_mark_t yaml_parser_s::problem_mark
size_t yaml_parser_s::problem_offset

The byte about which the problem occurred.

Definition at line 1093 of file yaml.h.

Referenced by make_exception().

int yaml_parser_s::problem_value

The problematic value (-1 is none).

Definition at line 1095 of file yaml.h.

struct { ... } yaml_parser_s::raw_buffer
yaml_read_handler_t* yaml_parser_s::read_handler

Read handler.

Definition at line 1113 of file yaml.h.

Referenced by yaml_parser_update_raw_buffer().

void* yaml_parser_s::read_handler_data

A pointer for passing to the read handler.

Definition at line 1116 of file yaml.h.

Referenced by yaml_parser_update_raw_buffer().

int yaml_parser_s::simple_key_allowed
struct { ... } yaml_parser_s::simple_keys
const unsigned char* yaml_parser_s::start
yaml_char_t* yaml_parser_s::start

The beginning of the buffer.

Definition at line 1140 of file yaml.h.

unsigned char* yaml_parser_s::start

The beginning of the buffer.

Definition at line 1155 of file yaml.h.

yaml_token_t* yaml_parser_s::start

The beginning of the tokens queue.

Definition at line 1194 of file yaml.h.

int* yaml_parser_s::start

The beginning of the stack.

Definition at line 1212 of file yaml.h.

yaml_simple_key_t* yaml_parser_s::start

The beginning of the stack.

Definition at line 1228 of file yaml.h.

yaml_parser_state_t* yaml_parser_s::start

The beginning of the stack.

Definition at line 1247 of file yaml.h.

yaml_mark_t* yaml_parser_s::start

The beginning of the stack.

Definition at line 1260 of file yaml.h.

yaml_tag_directive_t* yaml_parser_s::start

The beginning of the list.

Definition at line 1270 of file yaml.h.

yaml_alias_data_t* yaml_parser_s::start

The beginning of the list.

Definition at line 1289 of file yaml.h.

yaml_parser_state_t yaml_parser_s::state
struct { ... } yaml_parser_s::states
int yaml_parser_s::stream_end_produced

Have we reached the end of the input stream?

Definition at line 1186 of file yaml.h.

int yaml_parser_s::stream_start_produced

Have we started to scan the input stream?

Definition at line 1183 of file yaml.h.

Referenced by yaml_parser_fetch_next_token(), and yaml_parser_fetch_stream_start().

struct { ... } yaml_parser_s::string
struct { ... } yaml_parser_s::tag_directives
yaml_token_t* yaml_parser_s::tail

The tail of the tokens queue.

Definition at line 1200 of file yaml.h.

Referenced by yaml_parser_save_simple_key().

int yaml_parser_s::token_available

Definition at line 1207 of file yaml.h.

struct { ... } yaml_parser_s::tokens
size_t yaml_parser_s::tokens_parsed

The number of tokens fetched from the queue.

Definition at line 1204 of file yaml.h.

Referenced by yaml_parser_fetch_value(), yaml_parser_roll_indent(), and yaml_parser_save_simple_key().

int* yaml_parser_s::top
yaml_simple_key_t* yaml_parser_s::top

The top of the stack.

Definition at line 1232 of file yaml.h.

yaml_parser_state_t* yaml_parser_s::top

The top of the stack.

Definition at line 1251 of file yaml.h.

yaml_mark_t* yaml_parser_s::top

The top of the stack.

Definition at line 1264 of file yaml.h.

yaml_tag_directive_t* yaml_parser_s::top

The top of the list.

Definition at line 1274 of file yaml.h.

yaml_alias_data_t* yaml_parser_s::top

The top of the list.

Definition at line 1293 of file yaml.h.

size_t yaml_parser_s::unread

Definition at line 1150 of file yaml.h.


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