Snoopy Version 6.0 (Albert)
scanner.h File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
Include dependency graph for scanner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state

Defines

#define libconfig_yyIN_HEADER   1
#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   33
#define FLEX_BETA
#define FLEXINT_H
#define INT8_MIN   (-128)
#define INT16_MIN   (-32767-1)
#define INT32_MIN   (-2147483647-1)
#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
#define YY_TYPEDEF_YY_SCANNER_T
#define yyin   yyg->yyin_r
#define yyout   yyg->yyout_r
#define yyextra   yyg->yyextra_r
#define yyleng   yyg->yyleng_r
#define yytext   yyg->yytext_r
#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug   yyg->yy_flex_debug_r
#define YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_SIZE_T
#define YY_STRUCT_YY_BUFFER_STATE
#define libconfig_yywrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   yytext_r
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define YY_START_STACK_INCR   25
#define YY_DECL_IS_OURS   1
#define YY_DECL   int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)

Typedefs

typedef signed char flex_int8_t
typedef short int flex_int16_t
typedef int flex_int32_t
typedef unsigned char flex_uint8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef void * yyscan_t
typedef struct yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t

Functions

int libconfig_yylex_init (yyscan_t *scanner)
void libconfig_yyrestart (FILE *input_file, yyscan_t yyscanner)
void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
YY_BUFFER_STATE libconfig_yy_create_buffer (FILE *file, int size, yyscan_t yyscanner)
void libconfig_yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
void libconfig_yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
void libconfig_yypop_buffer_state (yyscan_t yyscanner)
YY_BUFFER_STATE libconfig_yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner)
YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char *yy_str, yyscan_t yyscanner)
YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char *bytes, int len, yyscan_t yyscanner)
void * libconfig_yyalloc (yy_size_t, yyscan_t yyscanner)
void * libconfig_yyrealloc (void *, yy_size_t, yyscan_t yyscanner)
void libconfig_yyfree (void *, yyscan_t yyscanner)
int libconfig_yylex_destroy (yyscan_t yyscanner)
int libconfig_yyget_debug (yyscan_t yyscanner)
void libconfig_yyset_debug (int debug_flag, yyscan_t yyscanner)
YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner)
void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
FILE * libconfig_yyget_in (yyscan_t yyscanner)
void libconfig_yyset_in (FILE *in_str, yyscan_t yyscanner)
FILE * libconfig_yyget_out (yyscan_t yyscanner)
void libconfig_yyset_out (FILE *out_str, yyscan_t yyscanner)
int libconfig_yyget_leng (yyscan_t yyscanner)
char * libconfig_yyget_text (yyscan_t yyscanner)
int libconfig_yyget_lineno (yyscan_t yyscanner)
void libconfig_yyset_lineno (int line_number, yyscan_t yyscanner)
YYSTYPElibconfig_yyget_lval (yyscan_t yyscanner)
void libconfig_yyset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner)
int libconfig_yylex (YYSTYPE *yylval_param, yyscan_t yyscanner)

Define Documentation

#define FLEX_BETA
#define FLEX_SCANNER
#define FLEXINT_H
#define INT16_MAX   (32767)
#define INT16_MIN   (-32767-1)
#define INT32_MAX   (2147483647)
#define INT32_MIN   (-2147483647-1)
#define INT8_MAX   (127)
#define INT8_MIN   (-128)
#define libconfig_yyIN_HEADER   1
#define libconfig_yywrap (   n)    1
#define UINT16_MAX   (65535U)
#define UINT32_MAX   (4294967295U)
#define UINT8_MAX   (255U)
#define YY_DECL   int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)
#define YY_DECL_IS_OURS   1
#define YY_EXTRA_TYPE   void *
#define yy_flex_debug   yyg->yy_flex_debug_r
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   33
#define YY_INT_ALIGNED   short int
#define YY_READ_BUF_SIZE   8192
#define YY_SKIP_YYWRAP
#define YY_START_STACK_INCR   25
#define YY_STRUCT_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SIZE_T
#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yyconst
#define yyextra   yyg->yyextra_r
#define yyin   yyg->yyin_r
#define yyleng   yyg->yyleng_r
#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yyout   yyg->yyout_r
#define yytext   yyg->yytext_r
#define yytext_ptr   yytext_r

Typedef Documentation

typedef short int flex_int16_t
typedef int flex_int32_t
typedef signed char flex_int8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef unsigned char flex_uint8_t
typedef unsigned int yy_size_t
typedef void* yyscan_t

Function Documentation

YY_BUFFER_STATE libconfig_yy_create_buffer ( FILE *  file,
int  size,
yyscan_t  yyscanner 
)
void libconfig_yy_delete_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)
void libconfig_yy_flush_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters:
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.
yyscannerThe scanner object.
YY_BUFFER_STATE libconfig_yy_scan_buffer ( char *  base,
yy_size_t  size,
yyscan_t  yyscanner 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters:
basethe character buffer
sizethe size in bytes of the character buffer
yyscannerThe scanner object.
Returns:
the newly allocated buffer state object.

Here is the call graph for this function:

Here is the caller graph for this function:

YY_BUFFER_STATE libconfig_yy_scan_bytes ( yyconst char *  bytes,
int  len,
yyscan_t  yyscanner 
)

Setup the input buffer state to scan the given bytes. The next call to libconfig_yylex() will scan from a copy of bytes.

Parameters:
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
yyscannerThe scanner object.
Returns:
the newly allocated buffer state object.

Here is the call graph for this function:

Here is the caller graph for this function:

YY_BUFFER_STATE libconfig_yy_scan_string ( yyconst char *  yy_str,
yyscan_t  yyscanner 
)

Setup the input buffer state to scan a string. The next call to libconfig_yylex() will scan from a copy of str.

Parameters:
yystra NUL-terminated string to scan
yyscannerThe scanner object.
Returns:
the newly allocated buffer state object.
Note:
If you want to scan bytes that may contain NUL values, then use libconfig_yy_scan_bytes() instead.

Here is the call graph for this function:

void libconfig_yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)
void* libconfig_yyalloc ( yy_size_t  ,
yyscan_t  yyscanner 
)

Here is the caller graph for this function:

void libconfig_yyfree ( void *  ,
yyscan_t  yyscanner 
)

Here is the caller graph for this function:

int libconfig_yyget_debug ( yyscan_t  yyscanner)
YY_EXTRA_TYPE libconfig_yyget_extra ( yyscan_t  yyscanner)

Get the user-defined data for this scanner.

Parameters:
yyscannerThe scanner object.
FILE* libconfig_yyget_in ( yyscan_t  yyscanner)

Get the input stream.

Parameters:
yyscannerThe scanner object.
int libconfig_yyget_leng ( yyscan_t  yyscanner)

Get the length of the current token.

Parameters:
yyscannerThe scanner object.
int libconfig_yyget_lineno ( yyscan_t  yyscanner)

Get the current line number.

Parameters:
yyscannerThe scanner object.
YYSTYPE* libconfig_yyget_lval ( yyscan_t  yyscanner)
FILE* libconfig_yyget_out ( yyscan_t  yyscanner)

Get the output stream.

Parameters:
yyscannerThe scanner object.
char* libconfig_yyget_text ( yyscan_t  yyscanner)

Get the current token.

Parameters:
yyscannerThe scanner object.
int libconfig_yylex ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)
int libconfig_yylex_destroy ( yyscan_t  yyscanner)

Here is the call graph for this function:

Here is the caller graph for this function:

int libconfig_yylex_init ( yyscan_t scanner)

Here is the call graph for this function:

Here is the caller graph for this function:

void libconfig_yypop_buffer_state ( yyscan_t  yyscanner)

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Parameters:
yyscannerThe scanner object.

Here is the call graph for this function:

Here is the caller graph for this function:

void libconfig_yypush_buffer_state ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters:
new_bufferThe new state.
yyscannerThe scanner object.
void* libconfig_yyrealloc ( void *  ,
yy_size_t  ,
yyscan_t  yyscanner 
)
void libconfig_yyrestart ( FILE *  input_file,
yyscan_t  yyscanner 
)
void libconfig_yyset_debug ( int  debug_flag,
yyscan_t  yyscanner 
)
void libconfig_yyset_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t  yyscanner 
)

Set the user-defined data. This data is never touched by the scanner.

Parameters:
user_definedThe data to be associated with this scanner.
yyscannerThe scanner object.

Here is the caller graph for this function:

void libconfig_yyset_in ( FILE *  in_str,
yyscan_t  yyscanner 
)

Set the input stream. This does not discard the current input buffer.

Parameters:
in_strA readable stream.
yyscannerThe scanner object.
See also:
libconfig_yy_switch_to_buffer
void libconfig_yyset_lineno ( int  line_number,
yyscan_t  yyscanner 
)

Set the current line number.

Parameters:
line_number
yyscannerThe scanner object.
void libconfig_yyset_lval ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)
void libconfig_yyset_out ( FILE *  out_str,
yyscan_t  yyscanner 
)