FD.io VPP  v21.01.1
Vector Packet Processing
parse.h File Reference
+ Include dependency graph for parse.h:

Go to the source code of this file.

Data Structures

struct  vlib_parse_item_t
 
struct  vlib_parse_graph_t
 
struct  vlib_parse_type
 
struct  parse_registration_t
 
struct  vlib_parse_main
 

Macros

#define foreach_parse_match_type
 
#define PARSE_INIT(x, s, e)
 
#define PARSE_TYPE_INIT(n, m, c, f)
 

Typedefs

typedef vlib_parse_match_t() vlib_parse_match_function_t(struct vlib_parse_main *, struct vlib_parse_type *, vlib_lex_token_t *, vlib_parse_value_t *)
 
typedef void() vlib_parse_value_cleanup_function_t(vlib_parse_value_t *)
 
typedef struct vlib_parse_type vlib_parse_type_t
 
typedef struct vlib_parse_main vlib_parse_main_t
 
typedef vlib_parse_match_t() vlib_parse_eval_function_t(vlib_parse_main_t *, vlib_parse_item_t *, vlib_parse_value_t *)
 

Enumerations

enum  vlib_parse_match_t { foreach_parse_match_type }
 

Functions

vlib_parse_match_t vlib_parse_eval (u8 *input)
 

Variables

vlib_parse_main_t vlib_parse_main
 
format_function_t format_vlib_parse_value
 
vlib_parse_match_function_t rule_match
 
vlib_parse_match_function_t eof_match
 
vlib_parse_match_function_t word_match
 
vlib_parse_match_function_t number_match
 

Macro Definition Documentation

◆ foreach_parse_match_type

#define foreach_parse_match_type
Value:
_(MATCH_DONE) \
_(MATCH_RULE) \
_(MATCH_FAIL) \
_(MATCH_FULL) \
_(MATCH_VALUE) \
_(MATCH_PARTIAL) \
_(MATCH_AMBIGUOUS) \
_(MATCH_EVAL_FAIL)

Definition at line 75 of file parse.h.

◆ PARSE_INIT

#define PARSE_INIT (   x,
  s,
 
)
Value:
static _PARSE_REGISTRATION_DATA(x) = { \
.initializer = s, \
.eof_match = e, \
};

Definition at line 195 of file parse.h.

◆ PARSE_TYPE_INIT

#define PARSE_TYPE_INIT (   n,
  m,
  c,
 
)
Value:
static _PARSE_TYPE_REGISTRATION_DATA(n) = { \
.name = #n, \
.match_function = m, \
.value_cleanup_function = c, \
.format_value = f, \
};
svmdb_client_t * c

Definition at line 205 of file parse.h.

Typedef Documentation

◆ vlib_parse_eval_function_t

typedef vlib_parse_match_t() vlib_parse_eval_function_t(vlib_parse_main_t *, vlib_parse_item_t *, vlib_parse_value_t *)

Definition at line 181 of file parse.h.

◆ vlib_parse_main_t

◆ vlib_parse_match_function_t

typedef vlib_parse_match_t() vlib_parse_match_function_t(struct vlib_parse_main *, struct vlib_parse_type *, vlib_lex_token_t *, vlib_parse_value_t *)

Definition at line 97 of file parse.h.

◆ vlib_parse_type_t

◆ vlib_parse_value_cleanup_function_t

typedef void() vlib_parse_value_cleanup_function_t(vlib_parse_value_t *)

Definition at line 99 of file parse.h.

Enumeration Type Documentation

◆ vlib_parse_match_t

Enumerator
foreach_parse_match_type 

Definition at line 85 of file parse.h.

Function Documentation

◆ vlib_parse_eval()

vlib_parse_match_t vlib_parse_eval ( u8 input)
+ Here is the caller graph for this function:

Variable Documentation

◆ eof_match

Definition at line 189 of file parse.h.

◆ format_vlib_parse_value

format_function_t format_vlib_parse_value

Definition at line 186 of file parse.h.

◆ number_match

Definition at line 189 of file parse.h.

◆ rule_match

Definition at line 189 of file parse.h.

◆ vlib_parse_main

Definition at line 177 of file parse.h.

◆ word_match

Definition at line 189 of file parse.h.