Tor  0.4.7.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 274 of file parsecommon.h.

Field Documentation

◆ concat_args

int concat_args

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

Definition at line 285 of file parsecommon.h.

◆ is_annotation

int is_annotation

True iff this token is an annotation.

Definition at line 296 of file parsecommon.h.

◆ max_args

int max_args

Maximum number of arguments for this item

Definition at line 282 of file parsecommon.h.

◆ max_cnt

int max_cnt

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

Definition at line 291 of file parsecommon.h.

◆ min_args

int min_args

Minimum number of arguments for this item

Definition at line 280 of file parsecommon.h.

◆ min_cnt

int min_cnt

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

Definition at line 289 of file parsecommon.h.

◆ os

Requirements on object syntax for this item.

Definition at line 287 of file parsecommon.h.

◆ pos

int pos

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

Definition at line 294 of file parsecommon.h.

◆ t

const char* t

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

Definition at line 276 of file parsecommon.h.

◆ v

The corresponding directory_keyword enum.

Definition at line 278 of file parsecommon.h.


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