15 #ifndef included_vlib_lex_h 16 #define included_vlib_lex_h 23 #define foreach_vlib_lex_global_token \ 42 #define _(f) VLIB_LEX_##f, 122 if (t->
token == VLIB_LEX_word)
133 u16 token,
u32 next_table_index);
uword * lex_tables_by_name
Fixed length block allocator.
uword * lex_tokens_by_name
void vlib_lex_get_token(vlib_lex_main_t *lm, vlib_lex_token_t *result)
vlib_lex_main_t vlib_lex_main
u16 vlib_lex_add_table(char *name)
static void vlib_lex_cleanup_token(vlib_lex_token_t *t)
vlib_lex_token_t * pushback_vector
format_function_t format_vlib_lex_token
void vlib_lex_reset(vlib_lex_main_t *lm, u8 *input_vector)
#define vec_free(V)
Free vector's memory (no header).
vlib_lex_table_t * lex_tables
u16 vlib_lex_add_token(vlib_lex_main_t *lm, char *token_name)
union vlib_lex_token_t::@37 value
uword current_token_value
Bitmaps built as vectors of machine words.
void vlib_lex_set_action_range(u32 table_index, u8 lo, u8 hi, u16 action, u16 token, u32 next_table_index)
#define foreach_vlib_lex_global_token
uword current_number_base