protobuf-c-text
Library to generate & parse text format protobufs in C.
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
Data Fields

A token and its value. More...

Data Fields

TokenId id
 The kind of token. More...
 
union {
   char *   number
 TOK_NUMBER: string with the number. More...
 
   char *   bareword
 TOK_BAREWORD: string with bareword in it. More...
 
   ProtobufCBinaryData *   qs
 TOK_QUOTED: Unescaped quoted string with the quotes removed. More...
 
   bool   boolean
 TOK_BOOLEAN: true or false . More...
 
}; 
 

Detailed Description

A token and its value.

A Token found by scan(). It contains the TokenId and the value of the token found (if a value is relevant).

Definition at line 108 of file parse.re.

Field Documentation

char* bareword

TOK_BAREWORD: string with bareword in it.

Definition at line 112 of file parse.re.

Referenced by state_open(), state_value(), token2txt(), and token_free().

bool boolean

TOK_BOOLEAN: true or false .

Definition at line 115 of file parse.re.

Referenced by state_value(), and token2txt().

TokenId id

The kind of token.

Definition at line 109 of file parse.re.

Referenced by protobuf_c_text_parse(), state_assignment(), state_open(), state_value(), token2txt(), and token_free().

char* number

TOK_NUMBER: string with the number.

Definition at line 111 of file parse.re.

Referenced by state_value(), token2txt(), and token_free().

ProtobufCBinaryData* qs

TOK_QUOTED: Unescaped quoted string with the quotes removed.

Definition at line 113 of file parse.re.

Referenced by state_value(), and token_free().


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