tor  0.4.2.0-alpha-dev
Data Fields
token_rule_t Struct Reference

#include <parsecommon.h>

Data Fields

const char * t
 
directory_keyword v
 
int min_args
 
int max_args
 
int concat_args
 
obj_syntax os
 
int min_cnt
 
int max_cnt
 
int pos
 
int is_annotation
 

Detailed Description

Determines the parsing rules for a single token type.

Definition at line 275 of file parsecommon.h.

Field Documentation

◆ concat_args

int token_rule_t::concat_args

If true, we concatenate all arguments for this item into a single string.

Definition at line 286 of file parsecommon.h.

◆ is_annotation

int token_rule_t::is_annotation

True iff this token is an annotation.

Definition at line 297 of file parsecommon.h.

◆ max_args

int token_rule_t::max_args

Maximum number of arguments for this item

Definition at line 283 of file parsecommon.h.

◆ max_cnt

int token_rule_t::max_cnt

Highest number of times this item may appear in a document.

Definition at line 292 of file parsecommon.h.

◆ min_args

int token_rule_t::min_args

Minimum number of arguments for this item

Definition at line 281 of file parsecommon.h.

◆ min_cnt

int token_rule_t::min_cnt

Lowest number of times this item may appear in a document.

Definition at line 290 of file parsecommon.h.

◆ os

obj_syntax token_rule_t::os

Requirements on object syntax for this item.

Definition at line 288 of file parsecommon.h.

◆ pos

int token_rule_t::pos

One or more of AT_START/AT_END to limit where the item may appear in a document.

Definition at line 295 of file parsecommon.h.

◆ t

const char* token_rule_t::t

The string value of the keyword identifying the type of item.

Definition at line 277 of file parsecommon.h.

◆ v

directory_keyword token_rule_t::v

The corresponding directory_keyword enum.

Definition at line 279 of file parsecommon.h.


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