FD.io VPP  v16.06
Vector Packet Processing
parse_builtin.c File Reference
+ Include dependency graph for parse_builtin.c:

Go to the source code of this file.

Macros

#define foreach_vanilla_lex_match_function
 
#define LEX_MATCH_DEBUG   0
 

Functions

always_inline voidparse_last_match_value (vlib_parse_main_t *pm)
 
vlib_parse_match_t eof_match (vlib_parse_main_t *pm, vlib_parse_type_t *type, vlib_lex_token_t *t, vlib_parse_value_t *valuep)
 
 PARSE_TYPE_INIT (eof, eof_match, 0, 0)
 
vlib_parse_match_t rule_eof_match (vlib_parse_main_t *pm, vlib_parse_type_t *type, vlib_lex_token_t *t, vlib_parse_value_t *valuep)
 
 PARSE_TYPE_INIT (rule_eof, rule_eof_match, 0, 0)
 
vlib_parse_match_t word_match (vlib_parse_main_t *pm, vlib_parse_type_t *type, vlib_lex_token_t *t, vlib_parse_value_t *valuep)
 
 PARSE_TYPE_INIT (word, word_match, 0, 0)
 
vlib_parse_match_t number_match (vlib_parse_main_t *pm, vlib_parse_type_t *type, vlib_lex_token_t *t, vlib_parse_value_t *valuep)
 
static u8format_value_number (u8 *s, va_list *args)
 
 PARSE_TYPE_INIT (number, number_match, 0, format_value_number)
 
static foreach_vanilla_lex_match_function clib_error_tparse_builtin_init (vlib_main_t *vm)
 

Macro Definition Documentation

#define foreach_vanilla_lex_match_function
Value:
_(plus) \
_(minus) \
_(star) \
_(slash) \
_(lpar) \
_(rpar)

Definition at line 92 of file parse_builtin.c.

#define LEX_MATCH_DEBUG   0

Definition at line 100 of file parse_builtin.c.

Function Documentation

vlib_parse_match_t eof_match ( vlib_parse_main_t pm,
vlib_parse_type_t type,
vlib_lex_token_t t,
vlib_parse_value_t *  valuep 
)

Definition at line 26 of file parse_builtin.c.

+ Here is the call graph for this function:

static u8* format_value_number ( u8 s,
va_list *  args 
)
static

Definition at line 76 of file parse_builtin.c.

+ Here is the call graph for this function:

vlib_parse_match_t number_match ( vlib_parse_main_t pm,
vlib_parse_type_t type,
vlib_lex_token_t t,
vlib_parse_value_t *  valuep 
)

Definition at line 65 of file parse_builtin.c.

+ Here is the caller graph for this function:

static foreach_vanilla_lex_match_function clib_error_t* parse_builtin_init ( vlib_main_t vm)
static

Definition at line 127 of file parse_builtin.c.

+ Here is the caller graph for this function:

always_inline void* parse_last_match_value ( vlib_parse_main_t pm)

Definition at line 18 of file parse_builtin.c.

+ Here is the caller graph for this function:

PARSE_TYPE_INIT ( eof  ,
eof_match  ,
,
 
)

+ Here is the caller graph for this function:

PARSE_TYPE_INIT ( rule_eof  ,
rule_eof_match  ,
,
 
)
PARSE_TYPE_INIT ( word  ,
word_match  ,
,
 
)
PARSE_TYPE_INIT ( number  ,
number_match  ,
,
format_value_number   
)
vlib_parse_match_t rule_eof_match ( vlib_parse_main_t pm,
vlib_parse_type_t type,
vlib_lex_token_t t,
vlib_parse_value_t *  valuep 
)

Definition at line 32 of file parse_builtin.c.

+ Here is the call graph for this function:

vlib_parse_match_t word_match ( vlib_parse_main_t pm,
vlib_parse_type_t type,
vlib_lex_token_t t,
vlib_parse_value_t *  valuep 
)

Definition at line 42 of file parse_builtin.c.

+ Here is the call graph for this function: