FD.io VPP  v16.12-rc0-308-g931be3a
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

static void * parse_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 103 of file parse_builtin.c.

#define LEX_MATCH_DEBUG   0

Definition at line 111 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 28 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 87 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 75 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 137 of file parse_builtin.c.

+ Here is the caller graph for this function:

static void* parse_last_match_value ( vlib_parse_main_t pm)
inlinestatic

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 39 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 50 of file parse_builtin.c.

+ Here is the call graph for this function: