C Cross Referencing & Documentation tool. Version 1.6e.
C lexical analyser
CPP processing, including GNU extensions, using yylval as a string.
References Variables: | yy_transition | parse-lex.c |
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 39
#define INT8_MIN -128
#define INT8_MAX 127
#define INT16_MAX 32767
#define INT32_MAX 2147483647
#define UINT8_MAX 255U
#define UINT16_MAX 65535U
#define UINT32_MAX 4294967295U
#define yyconst const
#define YY_SC_TO_UI( c )
#define YYSTATE YY_START
#define YY_STATE_EOF( state )
#define YY_END_OF_BUFFER_CHAR 0
#define YY_BUF_SIZE 16384
#define YY_TYPEDEF_YY_BUFFER_STATE
#define EOB_ACT_CONTINUE_SCAN 0
#define YY_LINENO_REWIND_TO( ptr )
#define yyless( n )
#define unput( c )
#define YY_STRUCT_YY_BUFFER_STATE
#define YY_BUFFER_EOF_PENDING 2
#define YY_CURRENT_BUFFER_LVALUE
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive( is_interactive )
#define yy_set_bol( at_bol )
#define yytext_ptr yytext
#define REJECT reject_used_but_not_detected
#define YY_RESTORE_YY_MORE_OFFSET
#define YY_INPUT( buf, result, max_size )
#define YY_START_STACK_INCR 25
#define YY_FATAL_ERROR( msg )
#define YY_BREAK break
#define YY_RULE_SETUP YY_USER_ACTION
#define yyless( n )
#define YYTABLES_NAME "yytables"
typedef signed char flex_int8_t
typedef short int flex_int16_t
typedef unsigned char flex_uint8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef struct yy_buffer_state* YY_BUFFER_STATE
See: | Type 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; | |
yy_size_t yy_n_chars; | |
int yy_is_our_buffer; | |
int yy_is_interactive; | |
int yy_at_bol; | |
int yy_bs_lineno; | < The line count. |
int yy_bs_column; | < The column count. |
int yy_fill_buffer; | |
int yy_buffer_status; | |
} |
typedef const struct yy_trans_info* yy_state_type
struct yy_trans_info | |
{ | |
flex_int32_t yy_verify; | |
flex_int32_t yy_nxt; | |
} |
Visible in: | parse-lex.c | |
Used in: | yyget_leng() | parse-lex.c |
yylex() | parse-lex.c |
Visible in: | parse-lex.c | |
Used in: | yy_init_globals() | parse-lex.c |
yyget_out() | parse-lex.c | |
yylex() | parse-lex.c | |
yyset_out() | parse-lex.c |
Visible in: | parse-lex.c | |
Used in: | yyget_lineno() | parse-lex.c |
yyset_lineno() | parse-lex.c |
Visible in: | parse-lex.c | |
Used in: | yyget_debug() | parse-lex.c |
yyset_debug() | parse-lex.c |
The name of the current file.
The current line number in the file.
If we are in a header file then ignore the comments.
extern int in_header
Defined in: | preproc.c |
One of the options controlling how comments are processed, use all comments not just the specially formattted ones.
extern int option_all_comments
Defined in: | cxref.c |
One of the options controlling how comments are processed, remove the leading block comment marker.
extern int option_block_comments
Defined in: | cxref.c |
One of the options controlling how comments are processed, ignore all comments.
extern int option_no_comments
Defined in: | cxref.c |
Flag that indicates if the comment warnings are to be issued.
extern int option_warn
Defined in: | cxref.c |
< index of top of stack.
static size_t yy_buffer_stack_top
< capacity of stack.
static size_t yy_buffer_stack_max
Used in: | yy_init_globals() | |
yyensure_buffer_stack() |
< Stack as an array.
static YY_BUFFER_STATE* yy_buffer_stack
Used in: | yy_load_buffer_state() | |
yy_switch_to_buffer() | ||
yylex() | ||
yypush_buffer_state() | ||
yyunput() |
Used in: | yy_get_next_buffer() | |
yy_load_buffer_state() | ||
yy_switch_to_buffer() | ||
yylex() | ||
yypush_buffer_state() | ||
yyunput() |
Used in: | yy_get_next_buffer() | |
yy_get_previous_state() | ||
yy_init_globals() | ||
yy_load_buffer_state() | ||
yy_switch_to_buffer() | ||
yy_try_NUL_trans() | ||
yylex() | ||
yypush_buffer_state() | ||
yyunput() |
Used in: | yy_init_globals() | |
yylex() |
Used in: | ResetLexer() | |
yy_get_previous_state() | ||
yy_init_globals() | ||
yylex() |
static int yy_did_buffer_switch_on_eof
Used in: | yy_switch_to_buffer() | |
yylex() | ||
yypop_buffer_state() | ||
yypush_buffer_state() |
static const struct yy_trans_info yy_transition[59654]
Used in: | parse-lex.c |
static const struct yy_trans_info* yy_start_state_list[45]
Used in: | yy_get_previous_state() | |
yylex() |
static yy_state_type yy_last_accepting_state
Used in: | yy_get_previous_state() | |
yy_try_NUL_trans() | ||
yylex() |
static char* yy_last_accepting_cpos
Used in: | yy_get_previous_state() | |
yy_try_NUL_trans() | ||
yylex() |
The flags that come out of GCC when a file is included.
Used in: | ResetLexer() | |
yylex() |
The name of a file seen in a CPP_INC_FILE state.
Used in: | ResetLexer() | |
yylex() |
The value of the thing that is defined (but only if it is simple).
Used in: | ResetLexer() | |
yylex() |
The lex state at the time that a comment is seen.
Used in: | ResetLexer() | |
yylex() |
To get around the GCC __builtin_va_arg keyword, skip over matched () counted by this.
Used in: | ResetLexer() | |
yylex() |
To get around the GCC __attribute__ keyword, skip over matched () counted by this.
Used in: | ResetLexer() | |
yylex() |
To get around the GCC __typeof__ keyword, skip over matched () counted by this.
Used in: | ResetLexer() | |
yylex() |
To get around the GCC __offsetof keyword, skip over matched () counted by this.
Used in: | yylex() |
To get around the GCC _Pragma keyword, skip over matched () counted by this.
Used in: | yylex() |
If we see a comment immediately after a ',', ';', '};', '},' or ')' then push it before.
Used in: | ResetLexer() | |
yylex() |
Reset the Lexer, ready for the next file.
Prototyped in: | cxref.h | |
Called by: | main() | cxref.c |
References Variables: | comment_init_state | parse-lex.c |
define_value | parse-lex.c | |
gnu_att_depth | parse-lex.c | |
gnu_typ_depth | parse-lex.c | |
gnu_va_arg_depth | parse-lex.c | |
inc_file | parse-lex.c | |
inc_file_flags | parse-lex.c | |
parse_file | parse-lex.c | |
parse_line | parse-lex.c | |
push_past | parse-lex.c | |
yy_start | parse-lex.c |
Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state.
YY_BUFFER_STATE yy_create_buffer ( FILE* file, int size )
Prototyped in: | parse-lex.c | |
Calls: | yy_fatal_error() | parse-lex.c |
yy_init_buffer() | parse-lex.c | |
yyalloc() | parse-lex.c | |
Called by: | yylex() | parse-lex.c |
yyrestart() | parse-lex.c |
Destroy the buffer. * @param b a buffer created with yy_create_buffer() *
void yy_delete_buffer ( YY_BUFFER_STATE b )
Prototyped in: | parse-lex.c | |
Calls: | yyfree() | parse-lex.c |
Called by: | yylex_destroy() | parse-lex.c |
yypop_buffer_state() | parse-lex.c | |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c |
Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. *
void yy_flush_buffer ( YY_BUFFER_STATE b )
Prototyped in: | parse-lex.c | |
Calls: | yy_load_buffer_state() | parse-lex.c |
Called by: | yy_init_buffer() | parse-lex.c |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c |
Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object.
YY_BUFFER_STATE yy_scan_buffer ( char* base, yy_size_t size )
Prototyped in: | parse-lex.c | |
Calls: | yy_fatal_error() | parse-lex.c |
yy_switch_to_buffer() | parse-lex.c | |
yyalloc() | parse-lex.c | |
Called by: | yy_scan_bytes() | parse-lex.c |
Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object.
YY_BUFFER_STATE yy_scan_bytes ( const char* yybytes, yy_size_t _yybytes_len )
Prototyped in: | parse-lex.c | |
Calls: | yy_fatal_error() | parse-lex.c |
yy_scan_buffer() | parse-lex.c | |
yyalloc() | parse-lex.c | |
Called by: | yy_scan_string() | parse-lex.c |
Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead.
YY_BUFFER_STATE yy_scan_string ( const char* yystr )
Prototyped in: | parse-lex.c | |
Calls: | yy_scan_bytes() | parse-lex.c |
strlen() |
Switch to a different input buffer. * @param new_buffer The new input buffer. *
void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer )
Prototyped in: | parse-lex.c | |
Calls: | yy_load_buffer_state() | parse-lex.c |
yyensure_buffer_stack() | parse-lex.c | |
Called by: | yy_scan_buffer() | parse-lex.c |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c | |
yy_c_buf_p | parse-lex.c | |
yy_did_buffer_switch_on_eof | parse-lex.c | |
yy_hold_char | parse-lex.c | |
yy_n_chars | parse-lex.c |
void* yyalloc ( yy_size_t size )
Prototyped in: | parse-lex.c | |
Calls: | malloc() | |
Called by: | yy_create_buffer() | parse-lex.c |
yy_scan_buffer() | parse-lex.c | |
yy_scan_bytes() | parse-lex.c | |
yyensure_buffer_stack() | parse-lex.c |
Prototyped in: | parse-lex.c | |
Calls: | free() | |
Called by: | yy_delete_buffer() | parse-lex.c |
yylex_destroy() | parse-lex.c |
Prototyped in: | parse-lex.c | |
References Variables: | yy_flex_debug | parse-lex.c |
Get the input stream. *
Prototyped in: | parse-lex.c | |
References Variables: | yyin | parse-lex.c |
Get the length of the current token. *
Prototyped in: | parse-lex.c | |
References Variables: | yyleng | parse-lex.c |
Get the current line number. *
Prototyped in: | parse-lex.c | |
References Variables: | yylineno | parse-lex.c |
Get the output stream. *
Prototyped in: | parse-lex.c | |
References Variables: | yyout | parse-lex.c |
Get the current token. *
Prototyped in: | parse-lex.c | |
References Variables: | yytext | parse-lex.c |
The main scanner function which does all the work.
Prototyped in: | parse-lex.c | |
Calls: | yy_delete_buffer() | parse-lex.c |
yy_init_globals() | parse-lex.c | |
yyfree() | parse-lex.c | |
yypop_buffer_state() | parse-lex.c | |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c |
Removes and deletes the top of the stack, if present. * The next element becomes the new top. *
void yypop_buffer_state ( void )
Prototyped in: | parse-lex.c | |
Calls: | yy_delete_buffer() | parse-lex.c |
yy_load_buffer_state() | parse-lex.c | |
Called by: | yylex_destroy() | parse-lex.c |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c | |
yy_did_buffer_switch_on_eof | parse-lex.c |
Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. *
void yypush_buffer_state ( YY_BUFFER_STATE new_buffer )
Prototyped in: | parse-lex.c | |
Calls: | yy_load_buffer_state() | parse-lex.c |
yyensure_buffer_stack() | parse-lex.c | |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c | |
yy_c_buf_p | parse-lex.c | |
yy_did_buffer_switch_on_eof | parse-lex.c | |
yy_hold_char | parse-lex.c | |
yy_n_chars | parse-lex.c |
void* yyrealloc ( void* ptr, yy_size_t size )
Prototyped in: | parse-lex.c | |
Calls: | realloc() | |
Called by: | yy_get_next_buffer() | parse-lex.c |
yyensure_buffer_stack() | parse-lex.c |
Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL .
void yyrestart ( FILE* input_file )
Prototyped in: | parse-lex.c | |
Calls: | yy_create_buffer() | parse-lex.c |
yy_init_buffer() | parse-lex.c | |
yy_load_buffer_state() | parse-lex.c | |
yyensure_buffer_stack() | parse-lex.c | |
Called by: | DocumentTheFile() | cxref.c |
yy_get_next_buffer() | parse-lex.c | |
yylex() | parse-lex.c | |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c | |
yyin | parse-lex.c |
void yyset_debug ( int bdebug )
Prototyped in: | parse-lex.c | |
References Variables: | yy_flex_debug | parse-lex.c |
Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see yy_switch_to_buffer
void yyset_in ( FILE* in_str )
Prototyped in: | parse-lex.c | |
References Variables: | yyin | parse-lex.c |
Set the current line number. * @param line_number *
void yyset_lineno ( int line_number )
Prototyped in: | parse-lex.c | |
References Variables: | yylineno | parse-lex.c |
void yyset_out ( FILE* out_str )
Prototyped in: | parse-lex.c | |
References Variables: | yyout | parse-lex.c |
static void yy_fatal_error ( const char* msg )
Prototyped in: | parse-lex.c | |
Calls: | exit(), fprintf() | |
Called by: | yy_create_buffer() | parse-lex.c |
yy_get_next_buffer() | parse-lex.c | |
yy_scan_buffer() | parse-lex.c | |
yy_scan_bytes() | parse-lex.c | |
yyensure_buffer_stack() | parse-lex.c | |
yylex() | parse-lex.c | |
yyunput() | parse-lex.c |
static int yy_get_next_buffer ( void )
Prototyped in: | parse-lex.c | |
Calls: | yy_fatal_error() | parse-lex.c |
yyrealloc() | parse-lex.c | |
yyrestart() | parse-lex.c | |
__errno_location(), clearerr(), fileno(), read() | ||
Called by: | yylex() | parse-lex.c |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c | |
yy_c_buf_p | parse-lex.c | |
yy_n_chars | parse-lex.c | |
yyin | parse-lex.c | |
yytext | parse-lex.c |
static yy_state_type yy_get_previous_state ( void )
Prototyped in: | parse-lex.c | |
Called by: | yylex() | parse-lex.c |
References Variables: | yy_c_buf_p | parse-lex.c |
yy_last_accepting_cpos | parse-lex.c | |
yy_last_accepting_state | parse-lex.c | |
yy_start | parse-lex.c | |
yy_start_state_list | parse-lex.c | |
yytext | parse-lex.c |
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE* file )
Prototyped in: | parse-lex.c | |
Calls: | yy_flush_buffer() | parse-lex.c |
__errno_location(), fileno(), isatty() | ||
Called by: | yy_create_buffer() | parse-lex.c |
yyrestart() | parse-lex.c | |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c |
static int yy_init_globals ( void )
Prototyped in: | parse-lex.c | |
Called by: | yylex_destroy() | parse-lex.c |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_max | parse-lex.c | |
yy_buffer_stack_top | parse-lex.c | |
yy_c_buf_p | parse-lex.c | |
yy_init | parse-lex.c | |
yy_start | parse-lex.c | |
yyin | parse-lex.c | |
yyout | parse-lex.c |
static void yy_load_buffer_state ( void )
static yy_state_type yy_try_NUL_trans ( yy_state_type yy_current_state )
Prototyped in: | parse-lex.c | |
Called by: | yylex() | parse-lex.c |
References Variables: | yy_c_buf_p | parse-lex.c |
yy_last_accepting_cpos | parse-lex.c | |
yy_last_accepting_state | parse-lex.c |
static void yyensure_buffer_stack ( void )
Prototyped in: | parse-lex.c | |
Calls: | yy_fatal_error() | parse-lex.c |
yyalloc() | parse-lex.c | |
yyrealloc() | parse-lex.c | |
memset() | ||
Called by: | yy_switch_to_buffer() | parse-lex.c |
yylex() | parse-lex.c | |
yypush_buffer_state() | parse-lex.c | |
yyrestart() | parse-lex.c | |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_max | parse-lex.c | |
yy_buffer_stack_top | parse-lex.c |
static void yyunput ( int c, char* yy_bp )
Prototyped in: | parse-lex.c | |
Calls: | yy_fatal_error() | parse-lex.c |
Called by: | yylex() | parse-lex.c |
References Variables: | yy_buffer_stack | parse-lex.c |
yy_buffer_stack_top | parse-lex.c | |
yy_c_buf_p | parse-lex.c | |
yy_hold_char | parse-lex.c | |
yy_n_chars | parse-lex.c | |
yytext | parse-lex.c |