File lex.abnf.c


Included Files


Typedef flex_int8_t

typedef signed char flex_int8_t

Typedef flex_int16_t

typedef short int flex_int16_t

Typedef flex_int32_t

typedef int flex_int32_t

Typedef flex_uint8_t

typedef unsigned char flex_uint8_t

Typedef flex_uint16_t

typedef unsigned short int flex_uint16_t

Typedef flex_uint32_t

typedef unsigned int flex_uint32_t

Typedef yyscan_t

typedef void* yyscan_t

Typedef YY_BUFFER_STATE

typedef struct yy_buffer_state* YY_BUFFER_STATE
See:

Typedef yy_size_t

typedef unsigned int yy_size_t

Type struct yy_buffer_state

struct yy_buffer_state
struct yy_buffer_state 
   { 
     FILE* yy_input_file; 
     char* yy_ch_buf; 
     char* yy_buf_pos; 
     yy_size_t yy_buf_size; 
     int yy_n_chars; 
     int yy_is_our_buffer; 
     int yy_is_interactive; 
     int yy_at_bol; 
     int yy_bs_lineno; 
     int yy_bs_column; 
     int yy_fill_buffer; 
     int yy_buffer_status; 
   } 

Typedef YY_CHAR

typedef unsigned char YY_CHAR

Typedef yy_state_type

typedef int yy_state_type

Type struct yy_trans_info

struct yy_trans_info
struct yy_trans_info 
   { 
     flex_int32_t yy_verify; 
     flex_int32_t yy_nxt; 
   } 

Type struct yyguts_t

struct yyguts_t
struct yyguts_t 
   { 
     void* yyextra_r; 
     FILE* yyin_r; 
     FILE* yyout_r; 
     size_t yy_buffer_stack_top; 
     size_t yy_buffer_stack_max; 
     YY_BUFFER_STATE* yy_buffer_stack; 
     char yy_hold_char; 
     int yy_n_chars; 
     int yyleng_r; 
     char* yy_c_buf_p; 
     int yy_init; 
     int yy_start; 
     int yy_did_buffer_switch_on_eof; 
     int yy_start_stack_ptr; 
     int yy_start_stack_depth; 
     int* yy_start_stack; 
     yy_state_type yy_last_accepting_state; 
     char* yy_last_accepting_cpos; 
     int yylineno_r; 
     int yy_flex_debug_r; 
     yy_state_type* yy_state_buf; 
     yy_state_type* yy_state_ptr; 
     char* yy_full_match; 
     int yy_lp; 
     char* yytext_r; 
     int yy_more_flag; 
     int yy_more_len; 
     YYSTYPE* yylval_r; 
   } 

Local Variables

yy_acclist
static const flex_int16_t yy_acclist[120]
Used in: abnflex()

yy_accept
static const flex_int16_t yy_accept[105]
Used in: abnflex()

yy_ec
static const flex_int32_t yy_ec[256]
Used in: abnflex()
  yy_get_previous_state()

yy_meta
static const flex_int32_t yy_meta[35]
Used in: abnflex()
  yy_get_previous_state()
  yy_try_NUL_trans()

yy_base
static const flex_int16_t yy_base[122]
Used in: abnflex()
  yy_get_previous_state()
  yy_try_NUL_trans()

yy_def
static const flex_int16_t yy_def[122]
Used in: abnflex()
  yy_get_previous_state()
  yy_try_NUL_trans()

yy_nxt
static const flex_int16_t yy_nxt[408]
Used in: abnflex()
  yy_get_previous_state()
  yy_try_NUL_trans()

yy_chk
static const flex_int16_t yy_chk[408]
Used in: abnflex()
  yy_get_previous_state()
  yy_try_NUL_trans()

yy_rule_linenum
static const flex_int16_t yy_rule_linenum[36]
Used in: abnflex()

yy_looking_for_trail_begin
static int yy_looking_for_trail_begin
Used in: abnflex()

yy_full_lp
static int yy_full_lp
Used in: abnflex()

yy_full_state
static int* yy_full_state
Used in: abnflex()

lexical_analyzer_rcs_sccs_id
static const char lexical_analyzer_rcs_sccs_id[]


Global Function abnf_create_buffer()

YY_BUFFER_STATE abnf_create_buffer ( FILE* file, int size, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_init_buffer()lex.abnf.c
  abnfalloc()lex.abnf.c
  yy_fatal_error()lex.abnf.c
Called by: abnflex()lex.abnf.c
  abnfrestart()lex.abnf.c

Global Function abnf_delete_buffer()

void abnf_delete_buffer ( YY_BUFFER_STATE b, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnffree()lex.abnf.c
Called by: abnflex_destroy()lex.abnf.c
  abnfpop_buffer_state()lex.abnf.c

Global Function abnf_flush_buffer()

void abnf_flush_buffer ( YY_BUFFER_STATE b, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_load_buffer_state()lex.abnf.c
Called by: abnf_init_buffer()lex.abnf.c

Global Function abnf_scan_buffer()

YY_BUFFER_STATE abnf_scan_buffer ( char* base, yy_size_t size, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_switch_to_buffer()lex.abnf.c
  abnfalloc()lex.abnf.c
  yy_fatal_error()lex.abnf.c
Called by: abnf_scan_bytes()lex.abnf.c

Global Function abnf_scan_bytes()

YY_BUFFER_STATE abnf_scan_bytes ( const char* bytes, int len, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_scan_buffer()lex.abnf.c
  abnfalloc()lex.abnf.c
  yy_fatal_error()lex.abnf.c
Called by: abnf_scan_string()lex.abnf.c

Global Function abnf_scan_string()

YY_BUFFER_STATE abnf_scan_string ( const char* str, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_scan_bytes()lex.abnf.c
  strlen()

Global Function abnf_switch_to_buffer()

void abnf_switch_to_buffer ( YY_BUFFER_STATE new_buffer, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_load_buffer_state()lex.abnf.c
  abnfensure_buffer_stack()lex.abnf.c
Called by: abnf_scan_buffer()lex.abnf.c

Global Function abnfalloc()

void* abnfalloc ( size_t n, void* unused_cruft )
Prototyped in: lex.abnf.c
Calls: malloc()
Called by: abnf_create_buffer()lex.abnf.c
  abnf_scan_buffer()lex.abnf.c
  abnf_scan_bytes()lex.abnf.c
  abnfensure_buffer_stack()lex.abnf.c
  abnflex()lex.abnf.c
  abnflex_init()lex.abnf.c
  yy_push_state()lex.abnf.c

Global Function abnffree()

void abnffree ( void* p, void* unused_cruft )
Prototyped in: lex.abnf.c
Calls: free()
Called by: abnf_delete_buffer()lex.abnf.c
  abnflex_destroy()lex.abnf.c

Global Function abnfget_column()

int abnfget_column ( yyscan_t yyscanner )

Global Function abnfget_debug()

int abnfget_debug ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c

Global Function abnfget_extra()

void* abnfget_extra ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: free_rule()lex.abnf.c

Global Function abnfget_in()

FILE* abnfget_in ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c

Global Function abnfget_leng()

int abnfget_leng ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c

Global Function abnfget_lval()

YYSTYPE* abnfget_lval ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c

Global Function abnfget_out()

FILE* abnfget_out ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: format_list()lex.abnf.c

Global Function abnfget_text()

char* abnfget_text ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c

Global Function abnflex()

int abnflex ( YYSTYPE* yylval_param, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_create_buffer()lex.abnf.c
  abnf_load_buffer_state()lex.abnf.c
  abnfalloc()lex.abnf.c
  abnfensure_buffer_stack()lex.abnf.c
  abnfrestart()lex.abnf.c
  abnftoken()lex.abnf.c
  format_list()lex.abnf.c
  set_params()support.c
  yy_fatal_error()lex.abnf.c
  yy_get_next_buffer()lex.abnf.c
  yy_get_previous_state()lex.abnf.c
  yy_pop_state()lex.abnf.c
  yy_push_state()lex.abnf.c
  yy_start_stack_size()lex.abnf.c
  yy_try_NUL_trans()lex.abnf.c
  __ctype_b_loc(), fprintf(), fwrite(), strncmp()
Called by: abnfparse()y.tab.c
References Variables: yy_acceptlex.abnf.c
  yy_acclistlex.abnf.c
  yy_baselex.abnf.c
  yy_chklex.abnf.c
  yy_deflex.abnf.c
  yy_eclex.abnf.c
  yy_full_lplex.abnf.c
  yy_full_statelex.abnf.c
  yy_looking_for_trail_beginlex.abnf.c
  yy_metalex.abnf.c
  yy_nxtlex.abnf.c
  yy_rule_linenumlex.abnf.c

Global Function abnflex_destroy()

int abnflex_destroy ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_delete_buffer()lex.abnf.c
  abnffree()lex.abnf.c
  abnfpop_buffer_state()lex.abnf.c
Called by: cleanup_lexer()lex.abnf.c

Global Function abnflex_init()

int abnflex_init ( yyscan_t* ptr_yy_globals )
Prototyped in: lex.abnf.c
Calls: abnfalloc()lex.abnf.c
  yy_init_globals()lex.abnf.c
  __errno_location(), memset()
Called by: initialize_lexer()lex.abnf.c

Global Function abnfpop_buffer_state()

void abnfpop_buffer_state ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_delete_buffer()lex.abnf.c
  abnf_load_buffer_state()lex.abnf.c
Called by: abnflex_destroy()lex.abnf.c

Global Function abnfpush_buffer_state()

void abnfpush_buffer_state ( YY_BUFFER_STATE new_buffer, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_load_buffer_state()lex.abnf.c
  abnfensure_buffer_stack()lex.abnf.c

Global Function abnfrealloc()

void* abnfrealloc ( void* p, size_t n, void* unused_cruft )
Prototyped in: lex.abnf.c
Calls: realloc()
Called by: abnfensure_buffer_stack()lex.abnf.c
  yy_push_state()lex.abnf.c

Global Function abnfrestart()

void abnfrestart ( FILE* input_file, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_create_buffer()lex.abnf.c
  abnf_init_buffer()lex.abnf.c
  abnf_load_buffer_state()lex.abnf.c
  abnfensure_buffer_stack()lex.abnf.c
Called by: abnflex()lex.abnf.c
  initialize_lexer()lex.abnf.c
  input()lex.abnf.c
  yy_get_next_buffer()lex.abnf.c

Global Function abnfset_column()

void abnfset_column ( int column_no, yyscan_t yyscanner )
Calls: yy_fatal_error()lex.abnf.c

Global Function abnfset_debug()

void abnfset_debug ( int bdebug, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: main()y.tab.c

Global Function abnfset_extra()

void abnfset_extra ( void* user_defined, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: abnftoken()lex.abnf.c
  free_rule()lex.abnf.c
  initialize_lexer()lex.abnf.c

Global Function abnfset_in()

void abnfset_in ( FILE* in_str, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: initialize_lexer()lex.abnf.c

Global Function abnfset_lval()

void abnfset_lval ( YYSTYPE* yylval_param, yyscan_t yyscanner )
Prototyped in: lex.abnf.c

Global Function abnfset_out()

void abnfset_out ( FILE* out_str, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: main()y.tab.c

Global Function cleanup_lexer()

void cleanup_lexer ( struct ruleset* ruleset )
Prototyped in: abnff.h
Calls: abnflex_destroy()lex.abnf.c
Called by: main()y.tab.c

Global Function format_list()

void format_list ( struct ruleset* ruleset )
Prototyped in: abnff.h
Calls: abnfget_out()lex.abnf.c
  balance_height()support.c
  free_rule()lex.abnf.c
  output_next()support.c
  tsort()support.c
  width()support.c
  _IO_putc(), __assert_fail(), __builtin_expect(), fprintf(), fputs(), memset()
Called by: abnflex()lex.abnf.c

Global Function free_rule()

void free_rule ( struct ruleset* ruleset, struct rule* r )
Prototyped in: abnff.h
Calls: abnfget_extra()lex.abnf.c
  abnfset_extra()lex.abnf.c
  free_token()support.c
  free(), realloc()
Called by: format_list()lex.abnf.c

Global Function initialize_lexer()

int initialize_lexer ( const struct rule* r, FILE* in )
Prototyped in: abnff.h
Calls: abnflex_init()lex.abnf.c
  abnfrestart()lex.abnf.c
  abnfset_extra()lex.abnf.c
  abnfset_in()lex.abnf.c
  yy_pop_state()lex.abnf.c
  yy_set_state()lex.abnf.c
  yy_start_stack_size()lex.abnf.c
  clearerr()
Called by: main()y.tab.c

Local Function abnf_init_buffer()

static void abnf_init_buffer ( YY_BUFFER_STATE b, FILE* file, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnf_flush_buffer()lex.abnf.c
  __errno_location()
Called by: abnf_create_buffer()lex.abnf.c
  abnfrestart()lex.abnf.c

Local Function abnf_load_buffer_state()

static void abnf_load_buffer_state ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: abnf_flush_buffer()lex.abnf.c
  abnf_switch_to_buffer()lex.abnf.c
  abnflex()lex.abnf.c
  abnfpop_buffer_state()lex.abnf.c
  abnfpush_buffer_state()lex.abnf.c
  abnfrestart()lex.abnf.c

Local Function abnfensure_buffer_stack()

static void abnfensure_buffer_stack ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnfalloc()lex.abnf.c
  abnfrealloc()lex.abnf.c
  memset()
Called by: abnf_switch_to_buffer()lex.abnf.c
  abnflex()lex.abnf.c
  abnfpush_buffer_state()lex.abnf.c
  abnfrestart()lex.abnf.c

Local Function abnftoken()

static int abnftoken ( struct rule* r, YYSTYPE* lvalp, const char* s, size_t len, int type, unsigned int eol, int state, int push )
Prototyped in: lex.abnf.c
Calls: abnfset_extra()lex.abnf.c
  append_token()support.c
  new_rule()support.c
  new_token()support.c
  trie_dict_find()trie.c
  trie_dict_insert()trie.c
  yy_get_state()lex.abnf.c
  yy_pop_state()lex.abnf.c
  yy_push_state()lex.abnf.c
  yy_set_state()lex.abnf.c
  yy_start_stack_size()lex.abnf.c
  __ctype_b_loc(), fprintf()
Called by: abnflex()lex.abnf.c

Local Function input()

static int input ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnfrestart()lex.abnf.c
  input()lex.abnf.c
  yy_get_next_buffer()lex.abnf.c
Called by: input()lex.abnf.c

Local Function yy_fatal_error()

static void yy_fatal_error ( const char* msg, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: exit(), fprintf()
Called by: abnf_create_buffer()lex.abnf.c
  abnf_scan_buffer()lex.abnf.c
  abnf_scan_bytes()lex.abnf.c
  abnflex()lex.abnf.c
  abnfset_column()lex.abnf.c
  yy_get_next_buffer()lex.abnf.c
  yy_pop_state()lex.abnf.c
  yy_push_state()lex.abnf.c

Local Function yy_get_next_buffer()

static int yy_get_next_buffer ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnfrestart()lex.abnf.c
  yy_fatal_error()lex.abnf.c
  _IO_getc(), __errno_location(), clearerr(), ferror(), fread()
Called by: abnflex()lex.abnf.c
  input()lex.abnf.c

Local Function yy_get_previous_state()

static yy_state_type yy_get_previous_state ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: abnflex()lex.abnf.c
References Variables: yy_baselex.abnf.c
  yy_chklex.abnf.c
  yy_deflex.abnf.c
  yy_eclex.abnf.c
  yy_metalex.abnf.c
  yy_nxtlex.abnf.c

Local Function yy_get_state()

static int yy_get_state ( yyscan_t yyscanner )
Called by: abnftoken()lex.abnf.c

Local Function yy_init_globals()

static int yy_init_globals ( yyscan_t yyscanner )
Called by: abnflex_init()lex.abnf.c

Local Function yy_pop_state()

static void yy_pop_state ( yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: yy_fatal_error()lex.abnf.c
Called by: abnflex()lex.abnf.c
  abnftoken()lex.abnf.c
  initialize_lexer()lex.abnf.c

Local Function yy_push_state()

static void yy_push_state ( int new_state, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Calls: abnfalloc()lex.abnf.c
  abnfrealloc()lex.abnf.c
  yy_fatal_error()lex.abnf.c
Called by: abnflex()lex.abnf.c
  abnftoken()lex.abnf.c

Local Function yy_set_state()

static void yy_set_state ( int state, yyscan_t yyscanner )
Called by: abnftoken()lex.abnf.c
  initialize_lexer()lex.abnf.c

Local Function yy_start_stack_size()

static int yy_start_stack_size ( const yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: abnflex()lex.abnf.c
  abnftoken()lex.abnf.c
  initialize_lexer()lex.abnf.c

Local Function yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type yy_current_state, yyscan_t yyscanner )
Prototyped in: lex.abnf.c
Called by: abnflex()lex.abnf.c
References Variables: yy_baselex.abnf.c
  yy_chklex.abnf.c
  yy_deflex.abnf.c
  yy_metalex.abnf.c
  yy_nxtlex.abnf.c