Go to the source code of this file.
|
u8 * | format_vlib_parse_value (u8 *s, va_list *args) |
|
static u8 * | format_vlib_parse_match (u8 *s, va_list *args) |
|
static u8 * | format_vlib_parse_item (u8 *s, va_list *args) |
|
static u8 * | format_vlib_parse_graph (u8 *s, va_list *args) |
|
void | dump_parse_graph (void) |
|
always_inline void | parse_cleanup_value (vlib_parse_main_t *pm, vlib_parse_value_t *pv) |
|
static void | parse_reset (vlib_parse_main_t *pm, u8 *input) |
|
static void | parse_help (vlib_parse_main_t *pm, u32 index) |
|
static vlib_parse_match_t | parse_eval_internal (vlib_parse_main_t *pm, u32 index) |
|
vlib_parse_match_t | rule_match (vlib_parse_main_t *pm, vlib_parse_type_t *type, vlib_lex_token_t *t, vlib_parse_value_t *valuep) |
|
static int | parse_eval (vlib_parse_main_t *pm, u8 *input) |
|
vlib_parse_match_t | vlib_parse_eval (u8 *input) |
|
u16 | parse_type_find_or_create (vlib_parse_main_t *pm, vlib_parse_type_t *t) |
|
u16 | parse_type_find_by_name (vlib_parse_main_t *pm, char *name) |
|
u32 | parse_item_find_or_create (vlib_parse_main_t *pm, vlib_parse_item_t *item) |
|
static void | parse_type_and_graph_init (vlib_parse_main_t *pm) |
|
static void | tokenize (vlib_parse_main_t *pm, parse_registration_t *pr) |
|
static int | is_typed_rule (vlib_parse_main_t *pm) |
|
static int | token_matches_graph_node (vlib_parse_main_t *pm, vlib_lex_token_t *t, vlib_parse_graph_t *node, vlib_parse_item_t *item, vlib_parse_type_t *type, u32 *token_increment) |
|
u32 | generate_subgraph_from_tokens (vlib_parse_main_t *pm, vlib_lex_token_t *t, u32 *new_subgraph_depth, parse_registration_t *pr, int not_a_rule) |
|
static u32 | measure_depth (vlib_parse_main_t *pm, u32 index) |
|
static void | add_subgraph_to_graph (vlib_parse_main_t *pm, u32 last_matching_index, u32 graph_root_index, u32 new_subgraph_index, u32 new_subgraph_depth) |
|
static clib_error_t * | parse_register_one (vlib_parse_main_t *pm, parse_registration_t *pr) |
|
static clib_error_t * | parse_register (vlib_main_t *vm, parse_registration_t *lo, parse_registration_t *hi, vlib_parse_main_t *pm) |
|
static clib_error_t * | parse_register_one_type (vlib_parse_main_t *pm, vlib_parse_type_t *rp) |
|
static clib_error_t * | parse_type_register (vlib_main_t *vm, vlib_parse_type_t *lo, vlib_parse_type_t *hi, vlib_parse_main_t *pm) |
|
clib_error_t * | vlib_stdlex_init (vlib_main_t *vm) |
|
static int | compute_rule_length (parse_registration_t *r) |
|
static int | rule_length_compare (parse_registration_t *r1, parse_registration_t *r2) |
|
static clib_error_t * | parse_init (vlib_main_t *vm) |
|
#define foreach_token_type |
Value:_ (eof) \
_ (rule_eof) \
_ (number) \
_ (plus) \
_ (minus) \
_ (star) \
_ (slash) \
_ (lpar) \
_ (rpar)
static u8* format_vlib_parse_graph |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_vlib_parse_item |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_vlib_parse_match |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
u8* format_vlib_parse_value |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |