#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "cmdparse.tab.h"
#include "config.h"
#include "util.h"
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
struct | yy_trans_info |
Defines | |
#define | YY_INT_ALIGNED short int |
#define | yy_create_buffer cmdyy_create_buffer |
#define | yy_delete_buffer cmdyy_delete_buffer |
#define | yy_flex_debug cmdyy_flex_debug |
#define | yy_init_buffer cmdyy_init_buffer |
#define | yy_flush_buffer cmdyy_flush_buffer |
#define | yy_load_buffer_state cmdyy_load_buffer_state |
#define | yy_switch_to_buffer cmdyy_switch_to_buffer |
#define | yyin cmdyyin |
#define | yyleng cmdyyleng |
#define | yylex cmdyylex |
#define | yylineno cmdyylineno |
#define | yyout cmdyyout |
#define | yyrestart cmdyyrestart |
#define | yytext cmdyytext |
#define | yywrap cmdyywrap |
#define | yyalloc cmdyyalloc |
#define | yyrealloc cmdyyrealloc |
#define | yyfree cmdyyfree |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | YY_FLEX_SUBMINOR_VERSION 35 |
#define | FLEX_BETA |
#define | yyconst |
#define | YY_NULL 0 |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | BEGIN (yy_start) = 1 + 2 * |
#define | YY_START (((yy_start) - 1) / 2) |
#define | YYSTATE YY_START |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_NEW_FILE cmdyyrestart(cmdyyin ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | YY_LESS_LINENO(n) |
#define | yyless(n) |
#define | unput(c) yyunput( c, (yytext_ptr) ) |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_CURRENT_BUFFER |
#define | YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
#define | YY_FLUSH_BUFFER cmdyy_flush_buffer(YY_CURRENT_BUFFER ) |
#define | yy_new_buffer cmdyy_create_buffer |
#define | yy_set_interactive(is_interactive) |
#define | yy_set_bol(at_bol) |
#define | YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define | yytext_ptr cmdyytext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 68 |
#define | YY_END_OF_BUFFER 69 |
#define | YY_TRAILING_MASK 0x2000 |
#define | YY_TRAILING_HEAD_MASK 0x4000 |
#define | REJECT |
#define | yymore() yymore_used_but_not_detected |
#define | YY_MORE_ADJ 0 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | YY_NO_INPUT 1 |
#define | YY_DECL int cmdyylex (struct context *context) |
#define | YY_USER_ACTION |
#define | WS_STRING |
#define | INITIAL 0 |
#define | WANT_STRING 1 |
#define | EAT_WHITESPACE 2 |
#define | WANT_QSTRING 3 |
#define | BUFFER_LINE 4 |
#define | YY_RULE_SETUP |
#define | yyless(n) |
#define | YYTABLES_NAME "yytables" |
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 struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | cmdyyrestart (FILE *input_file) |
void | cmdyy_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
YY_BUFFER_STATE | cmdyy_create_buffer (FILE *file, int size) |
void | cmdyy_delete_buffer (YY_BUFFER_STATE b) |
void | cmdyy_flush_buffer (YY_BUFFER_STATE b) |
Discard all buffered characters. | |
void | cmdyypush_buffer_state (YY_BUFFER_STATE new_buffer) |
Pushes the new state onto the stack. | |
void | cmdyypop_buffer_state (void) |
Removes and deletes the top of the stack, if present. | |
static void | cmdyyensure_buffer_stack (void) |
static void | cmdyy_load_buffer_state (void) |
static void | cmdyy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
The main scanner function which does all the work. | |
YY_BUFFER_STATE | cmdyy_scan_buffer (char *base, yy_size_t size) |
Setup the input buffer state to scan directly from a user-specified character buffer. | |
YY_BUFFER_STATE | cmdyy_scan_string (yyconst char *yystr) |
Setup the input buffer state to scan a string. | |
YY_BUFFER_STATE | cmdyy_scan_bytes (yyconst char *yybytes, int _yybytes_len) |
Setup the input buffer state to scan the given bytes. | |
void * | cmdyyalloc (yy_size_t) |
void * | cmdyyrealloc (void *, yy_size_t) |
void | cmdyyfree (void *) |
static yy_state_type | yy_get_previous_state (void) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state) |
static int | yy_get_next_buffer (void) |
static void | yy_fatal_error (yyconst char msg[]) |
static int | yy_init_globals (void) |
int | cmdyylex_destroy (void) |
int | cmdyyget_debug (void) |
void | cmdyyset_debug (int debug_flag) |
YY_EXTRA_TYPE | cmdyyget_extra (void) |
void | cmdyyset_extra (YY_EXTRA_TYPE user_defined) |
FILE * | cmdyyget_in (void) |
Get the input stream. | |
void | cmdyyset_in (FILE *in_str) |
Set the input stream. | |
FILE * | cmdyyget_out (void) |
Get the output stream. | |
void | cmdyyset_out (FILE *out_str) |
int | cmdyyget_leng (void) |
Get the length of the current token. | |
char * | cmdyyget_text (void) |
Get the current token. | |
int | cmdyyget_lineno (void) |
Get the current line number. | |
void | cmdyyset_lineno (int line_number) |
Set the current line number. | |
int | cmdyywrap (void) |
static void | yy_push_state (int new_state) |
static void | yy_pop_state (void) |
static void | yy_fatal_error (yyconst char *msg) |
Variables | |
int | cmdyyleng |
FILE * | cmdyyin = (FILE *) 0 |
FILE * | cmdyyout = (FILE *) 0 |
static size_t | yy_buffer_stack_top = 0 |
index of top of stack. | |
static size_t | yy_buffer_stack_max = 0 |
capacity of stack. | |
static YY_BUFFER_STATE * | yy_buffer_stack = 0 |
Stack as an array. | |
static char | yy_hold_char |
static int | yy_n_chars |
static char * | yy_c_buf_p = (char *) 0 |
static int | yy_init = 0 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
int | cmdyylineno = 1 |
char * | cmdyytext |
static yyconst flex_int16_t | yy_acclist [545] |
static yyconst flex_int16_t | yy_accept [572] |
static yyconst flex_int32_t | yy_ec [256] |
static yyconst flex_int32_t | yy_meta [58] |
static yyconst flex_int16_t | yy_base [578] |
static yyconst flex_int16_t | yy_def [578] |
static yyconst flex_int16_t | yy_nxt [1205] |
static yyconst flex_int16_t | yy_chk [1205] |
int | cmdyy_flex_debug = 0 |
static yy_state_type * | yy_state_buf = 0 |
static yy_state_type * | yy_state_ptr = 0 |
static char * | yy_full_match |
static int | yy_lp |
static int | yy_looking_for_trail_begin = 0 |
static int | yy_full_lp |
static int * | yy_full_state |
int | cmdyycolumn = 1 |
static int | yy_start_stack_ptr = 0 |
static int | yy_start_stack_depth = 0 |
static int * | yy_start_stack = NULL |
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 144 of file cmdparse.yy.c.
#define BUFFER_LINE 4 |
Definition at line 1046 of file cmdparse.yy.c.
#define EAT_WHITESPACE 2 |
Definition at line 1044 of file cmdparse.yy.c.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 179 of file cmdparse.yy.c.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 180 of file cmdparse.yy.c.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 181 of file cmdparse.yy.c.
#define FLEX_BETA |
Definition at line 33 of file cmdparse.yy.c.
#define FLEX_SCANNER |
Definition at line 28 of file cmdparse.yy.c.
#define INITIAL 0 |
Definition at line 1042 of file cmdparse.yy.c.
#define REJECT |
{ \ *yy_cp = (yy_hold_char); /* undo effects of setting up cmdyytext */ \ yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ (yy_lp) = (yy_full_lp); /* restore orig. accepting pos. */ \ (yy_state_ptr) = (yy_full_state); /* restore orig. state */ \ yy_current_state = *(yy_state_ptr); /* restore curr. state */ \ ++(yy_lp); \ goto find_rule; \ }
Definition at line 983 of file cmdparse.yy.c.
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 199 of file cmdparse.yy.c.
#define WANT_QSTRING 3 |
Definition at line 1045 of file cmdparse.yy.c.
#define WANT_STRING 1 |
Definition at line 1043 of file cmdparse.yy.c.
#define WS_STRING |
do { \ yy_push_state(WANT_STRING); \ yy_push_state(EAT_WHITESPACE); \ } while (0)
Definition at line 1028 of file cmdparse.yy.c.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 350 of file cmdparse.yy.c.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 266 of file cmdparse.yy.c.
#define YY_BUFFER_NEW 0 |
Definition at line 254 of file cmdparse.yy.c.
#define YY_BUFFER_NORMAL 1 |
Definition at line 255 of file cmdparse.yy.c.
#define yy_create_buffer cmdyy_create_buffer |
Definition at line 9 of file cmdparse.yy.c.
#define YY_CURRENT_BUFFER |
( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL)
Definition at line 282 of file cmdparse.yy.c.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 289 of file cmdparse.yy.c.
Definition at line 1019 of file cmdparse.yy.c.
#define yy_delete_buffer cmdyy_delete_buffer |
Definition at line 10 of file cmdparse.yy.c.
Referenced by yylex_destroy(), and yypop_buffer_state().
#define YY_DO_BEFORE_ACTION |
(yytext_ptr) = yy_bp; \ cmdyyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp;
Definition at line 375 of file cmdparse.yy.c.
#define YY_END_OF_BUFFER 69 |
Definition at line 383 of file cmdparse.yy.c.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 159 of file cmdparse.yy.c.
Definition at line 11 of file cmdparse.yy.c.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 29 of file cmdparse.yy.c.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 30 of file cmdparse.yy.c.
#define YY_FLEX_SUBMINOR_VERSION 35 |
Definition at line 31 of file cmdparse.yy.c.
#define YY_FLUSH_BUFFER cmdyy_flush_buffer(YY_CURRENT_BUFFER ) |
Definition at line 318 of file cmdparse.yy.c.
#define yy_flush_buffer cmdyy_flush_buffer |
Definition at line 13 of file cmdparse.yy.c.
Referenced by yy_init_buffer().
#define yy_init_buffer cmdyy_init_buffer |
Definition at line 12 of file cmdparse.yy.c.
#define YY_INT_ALIGNED short int |
Definition at line 5 of file cmdparse.yy.c.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 183 of file cmdparse.yy.c.
#define yy_load_buffer_state cmdyy_load_buffer_state |
Definition at line 14 of file cmdparse.yy.c.
Referenced by yy_flush_buffer(), yypop_buffer_state(), and yypush_buffer_state().
#define YY_MORE_ADJ 0 |
Definition at line 995 of file cmdparse.yy.c.
#define yy_new_buffer cmdyy_create_buffer |
Definition at line 328 of file cmdparse.yy.c.
#define YY_NEW_FILE cmdyyrestart(cmdyyin ) |
Definition at line 157 of file cmdparse.yy.c.
#define YY_NO_INPUT 1 |
Definition at line 1008 of file cmdparse.yy.c.
#define YY_NULL 0 |
Definition at line 131 of file cmdparse.yy.c.
#define YY_NUM_RULES 68 |
Definition at line 382 of file cmdparse.yy.c.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 996 of file cmdparse.yy.c.
#define YY_RULE_SETUP |
if ( cmdyyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (cmdyytext[cmdyyleng - 1] == '\n'); \ YY_USER_ACTION
Definition at line 1221 of file cmdparse.yy.c.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 138 of file cmdparse.yy.c.
#define yy_set_bol | ( | at_bol | ) |
{ \ if ( ! YY_CURRENT_BUFFER ){\ cmdyyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ cmdyy_create_buffer(cmdyyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ }
Definition at line 340 of file cmdparse.yy.c.
#define yy_set_interactive | ( | is_interactive | ) |
{ \ if ( ! YY_CURRENT_BUFFER ){ \ cmdyyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ cmdyy_create_buffer(cmdyyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ }
Definition at line 330 of file cmdparse.yy.c.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 150 of file cmdparse.yy.c.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 168 of file cmdparse.yy.c.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 154 of file cmdparse.yy.c.
#define yy_switch_to_buffer cmdyy_switch_to_buffer |
Definition at line 15 of file cmdparse.yy.c.
Referenced by yy_scan_buffer().
#define YY_TRAILING_HEAD_MASK 0x4000 |
Definition at line 982 of file cmdparse.yy.c.
#define YY_TRAILING_MASK 0x2000 |
Definition at line 981 of file cmdparse.yy.c.
#define YY_USER_ACTION |
{ \ context->first_column = cmdyycolumn; \ context->last_column = cmdyycolumn+cmdyyleng-1; \ cmdyycolumn += cmdyyleng; \ }
Definition at line 1021 of file cmdparse.yy.c.
#define yyalloc cmdyyalloc |
Definition at line 24 of file cmdparse.yy.c.
Referenced by yy_push_state(), yy_scan_buffer(), yy_scan_bytes(), and yyensure_buffer_stack().
#define yyconst |
Definition at line 127 of file cmdparse.yy.c.
#define yyfree cmdyyfree |
Definition at line 26 of file cmdparse.yy.c.
Referenced by yylex_destroy().
Definition at line 16 of file cmdparse.yy.c.
Referenced by yy_init_globals(), yyget_in(), and yyset_in().
Definition at line 17 of file cmdparse.yy.c.
Referenced by yyget_leng().
#define yyless | ( | n | ) |
do \ { \ /* Undo effects of setting up cmdyytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ cmdyytext[cmdyyleng] = (yy_hold_char); \ (yy_c_buf_p) = cmdyytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ cmdyyleng = yyless_macro_arg; \ } \ while ( 0 )
Definition at line 2509 of file cmdparse.yy.c.
#define yyless | ( | n | ) |
do \ { \ /* Undo effects of setting up cmdyytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up cmdyytext again */ \ } \ while ( 0 )
Definition at line 2509 of file cmdparse.yy.c.
#define yylex cmdyylex |
Definition at line 18 of file cmdparse.yy.c.
int yylineno cmdyylineno |
Definition at line 19 of file cmdparse.yy.c.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 994 of file cmdparse.yy.c.
Definition at line 20 of file cmdparse.yy.c.
Referenced by yy_init_globals(), yyget_out(), and yyset_out().
#define yyrealloc cmdyyrealloc |
Definition at line 25 of file cmdparse.yy.c.
Referenced by yy_push_state(), and yyensure_buffer_stack().
#define yyrestart cmdyyrestart |
Definition at line 21 of file cmdparse.yy.c.
#define YYSTATE YY_START |
Definition at line 151 of file cmdparse.yy.c.
#define YYTABLES_NAME "yytables" |
Definition at line 2715 of file cmdparse.yy.c.
Definition at line 22 of file cmdparse.yy.c.
#define yytext_ptr cmdyytext |
Definition at line 365 of file cmdparse.yy.c.
#define yywrap cmdyywrap |
Definition at line 23 of file cmdparse.yy.c.
typedef short int flex_int16_t |
Definition at line 71 of file cmdparse.yy.c.
typedef int flex_int32_t |
Definition at line 72 of file cmdparse.yy.c.
typedef signed char flex_int8_t |
Definition at line 70 of file cmdparse.yy.c.
typedef unsigned short int flex_uint16_t |
Definition at line 74 of file cmdparse.yy.c.
typedef unsigned int flex_uint32_t |
Definition at line 75 of file cmdparse.yy.c.
typedef unsigned char flex_uint8_t |
Definition at line 73 of file cmdparse.yy.c.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 172 of file cmdparse.yy.c.
typedef unsigned char YY_CHAR |
Definition at line 354 of file cmdparse.yy.c.
typedef size_t yy_size_t |
Definition at line 203 of file cmdparse.yy.c.
typedef int yy_state_type |
Definition at line 358 of file cmdparse.yy.c.
YY_BUFFER_STATE cmdyy_create_buffer | ( | FILE * | file, | |
int | size | |||
) |
void cmdyy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Referenced by cmdyylex_destroy(), and cmdyypop_buffer_state().
void cmdyy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Definition at line 2257 of file cmdparse.yy.c.
References cmdyy_load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.
Referenced by cmdyy_init_buffer().
static void cmdyy_init_buffer | ( | YY_BUFFER_STATE | b, | |
FILE * | file | |||
) | [static] |
The main scanner function which does all the work.
Definition at line 2229 of file cmdparse.yy.c.
References cmdyy_flush_buffer(), yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.
static void cmdyy_load_buffer_state | ( | void | ) | [static] |
Referenced by cmdyy_flush_buffer(), cmdyypop_buffer_state(), and cmdyypush_buffer_state().
YY_BUFFER_STATE cmdyy_scan_buffer | ( | char * | base, | |
yy_size_t | size | |||
) |
Setup the input buffer state to scan directly from a user-specified character buffer.
base | the character buffer | |
size | the size in bytes of the character buffer |
Definition at line 2384 of file cmdparse.yy.c.
References cmdyy_switch_to_buffer(), cmdyyalloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, and yy_buffer_state::yy_n_chars.
Referenced by cmdyy_scan_bytes().
YY_BUFFER_STATE cmdyy_scan_bytes | ( | yyconst char * | yybytes, | |
int | _yybytes_len | |||
) |
Setup the input buffer state to scan the given bytes.
The next call to cmdyylex() will scan from a copy of bytes.
bytes | the byte buffer to scan | |
len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 2434 of file cmdparse.yy.c.
References cmdyy_scan_buffer(), cmdyyalloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by cmdyy_scan_string().
YY_BUFFER_STATE cmdyy_scan_string | ( | yyconst char * | yystr | ) |
Setup the input buffer state to scan a string.
The next call to cmdyylex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
Definition at line 2421 of file cmdparse.yy.c.
References cmdyy_scan_bytes().
void cmdyy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Referenced by cmdyy_scan_buffer().
void * cmdyyalloc | ( | yy_size_t | size | ) |
Definition at line 2693 of file cmdparse.yy.c.
Referenced by cmdyy_scan_buffer(), cmdyy_scan_bytes(), cmdyyensure_buffer_stack(), and yy_push_state().
static void cmdyyensure_buffer_stack | ( | void | ) | [static] |
Definition at line 2335 of file cmdparse.yy.c.
References cmdyyalloc(), cmdyyrealloc(), yy_buffer_stack_max, yy_buffer_stack_top, and YY_FATAL_ERROR.
Referenced by cmdyypush_buffer_state().
void cmdyyfree | ( | void * | ptr | ) |
Definition at line 2710 of file cmdparse.yy.c.
Referenced by cmdyylex_destroy().
int cmdyyget_debug | ( | void | ) |
Definition at line 2593 of file cmdparse.yy.c.
YY_EXTRA_TYPE cmdyyget_extra | ( | void | ) |
FILE * cmdyyget_in | ( | void | ) |
int cmdyyget_leng | ( | void | ) |
Get the length of the current token.
Definition at line 2553 of file cmdparse.yy.c.
References cmdyyleng.
int cmdyyget_lineno | ( | void | ) |
Get the current line number.
Definition at line 2528 of file cmdparse.yy.c.
FILE * cmdyyget_out | ( | void | ) |
char * cmdyyget_text | ( | void | ) |
Get the current token.
Definition at line 2562 of file cmdparse.yy.c.
int cmdyylex_destroy | ( | void | ) |
Definition at line 2641 of file cmdparse.yy.c.
References cmdyy_delete_buffer(), cmdyyfree(), cmdyypop_buffer_state(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_init_globals().
Referenced by parse_cmd().
void cmdyypop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
Definition at line 2316 of file cmdparse.yy.c.
References cmdyy_delete_buffer(), cmdyy_load_buffer_state(), yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_did_buffer_switch_on_eof.
Referenced by cmdyylex_destroy().
void cmdyypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
Pushes the new state onto the stack.
The new state becomes the current state. This function will allocate the stack if necessary.
new_buffer | The new state. |
Definition at line 2286 of file cmdparse.yy.c.
References cmdyy_load_buffer_state(), cmdyyensure_buffer_stack(), yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.
void * cmdyyrealloc | ( | void * | ptr, | |
yy_size_t | size | |||
) |
Definition at line 2698 of file cmdparse.yy.c.
Referenced by cmdyyensure_buffer_stack(), and yy_push_state().
void cmdyyrestart | ( | FILE * | input_file | ) |
void cmdyyset_debug | ( | int | debug_flag | ) |
Definition at line 2598 of file cmdparse.yy.c.
void cmdyyset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
void cmdyyset_in | ( | FILE * | in_str | ) |
Set the input stream.
This does not discard the current input buffer.
in_str | A readable stream. |
Definition at line 2583 of file cmdparse.yy.c.
References cmdyyin.
void cmdyyset_lineno | ( | int | line_number | ) |
void cmdyyset_out | ( | FILE * | out_str | ) |
Definition at line 2588 of file cmdparse.yy.c.
References cmdyyout.
int cmdyywrap | ( | void | ) |
Definition at line 158 of file cmdparse.tab.c.
static void yy_fatal_error | ( | yyconst char * | msg | ) | [static] |
Definition at line 2500 of file cmdparse.yy.c.
References YY_EXIT_FAILURE.
static void yy_fatal_error | ( | yyconst char | msg[] | ) | [static] |
static int yy_get_next_buffer | ( | void | ) | [static] |
static yy_state_type yy_get_previous_state | ( | void | ) | [static] |
static int yy_init_globals | ( | void | ) | [static] |
Definition at line 2603 of file cmdparse.yy.c.
References cmdyyin, cmdyyout, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, yy_start, and yy_state_ptr.
Referenced by cmdyylex_destroy().
static void yy_pop_state | ( | void | ) | [static] |
Definition at line 2488 of file cmdparse.yy.c.
References BEGIN, and YY_FATAL_ERROR.
static void yy_push_state | ( | int | new_state | ) | [static] |
Definition at line 2464 of file cmdparse.yy.c.
References BEGIN, cmdyyalloc(), cmdyyrealloc(), YY_FATAL_ERROR, YY_START, and YY_START_STACK_INCR.
static yy_state_type yy_try_NUL_trans | ( | yy_state_type | current_state | ) | [static] |
int cmdyy_flex_debug = 0 |
Definition at line 973 of file cmdparse.yy.c.
int cmdyycolumn = 1 |
Definition at line 1017 of file cmdparse.yy.c.
FILE* cmdyyin = (FILE *) 0 |
Definition at line 356 of file cmdparse.yy.c.
int cmdyyleng |
Definition at line 294 of file cmdparse.yy.c.
Referenced by cmdyyget_leng().
int cmdyylineno = 1 |
Definition at line 362 of file cmdparse.yy.c.
FILE * cmdyyout = (FILE *) 0 |
Definition at line 356 of file cmdparse.yy.c.
Referenced by cmdyyget_out(), cmdyyset_out(), and yy_init_globals().
char * cmdyytext |
Definition at line 997 of file cmdparse.yy.c.
yyconst flex_int16_t yy_accept[572] [static] |
Definition at line 455 of file cmdparse.yy.c.
yyconst flex_int16_t yy_acclist[545] [static] |
Definition at line 391 of file cmdparse.yy.c.
yyconst flex_int16_t yy_base[578] [static] |
Definition at line 564 of file cmdparse.yy.c.
YY_BUFFER_STATE* yy_buffer_stack = 0 [static] |
Stack as an array.
Definition at line 274 of file cmdparse.yy.c.
size_t yy_buffer_stack_max = 0 [static] |
capacity of stack.
Definition at line 273 of file cmdparse.yy.c.
Referenced by cmdyyensure_buffer_stack(), and yy_init_globals().
size_t yy_buffer_stack_top = 0 [static] |
index of top of stack.
Definition at line 272 of file cmdparse.yy.c.
Referenced by cmdyyensure_buffer_stack(), cmdyypop_buffer_state(), cmdyypush_buffer_state(), and yy_init_globals().
char* yy_c_buf_p = (char *) 0 [static] |
Definition at line 297 of file cmdparse.yy.c.
Referenced by cmdyypush_buffer_state(), and yy_init_globals().
yyconst flex_int16_t yy_chk[1205] [static] |
Definition at line 835 of file cmdparse.yy.c.
yyconst flex_int16_t yy_def[578] [static] |
Definition at line 631 of file cmdparse.yy.c.
int yy_did_buffer_switch_on_eof [static] |
Definition at line 304 of file cmdparse.yy.c.
Referenced by cmdyypop_buffer_state(), and cmdyypush_buffer_state().
yyconst flex_int32_t yy_ec[256] [static] |
Definition at line 522 of file cmdparse.yy.c.
int yy_full_lp [static] |
Definition at line 979 of file cmdparse.yy.c.
char* yy_full_match [static] |
Definition at line 976 of file cmdparse.yy.c.
int* yy_full_state [static] |
Definition at line 980 of file cmdparse.yy.c.
char yy_hold_char [static] |
Definition at line 292 of file cmdparse.yy.c.
Referenced by cmdyypush_buffer_state().
int yy_init = 0 [static] |
Definition at line 298 of file cmdparse.yy.c.
Referenced by yy_init_globals().
int yy_looking_for_trail_begin = 0 [static] |
Definition at line 978 of file cmdparse.yy.c.
int yy_lp [static] |
Definition at line 977 of file cmdparse.yy.c.
yyconst flex_int32_t yy_meta[58] [static] |
{ 0, 1, 1, 2, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
Definition at line 554 of file cmdparse.yy.c.
int yy_n_chars [static] |
Definition at line 293 of file cmdparse.yy.c.
Referenced by cmdyypush_buffer_state().
yyconst flex_int16_t yy_nxt[1205] [static] |
Definition at line 698 of file cmdparse.yy.c.
int yy_start = 0 [static] |
Definition at line 299 of file cmdparse.yy.c.
Referenced by yy_init_globals().
int* yy_start_stack = NULL [static] |
Definition at line 1123 of file cmdparse.yy.c.
int yy_start_stack_depth = 0 [static] |
Definition at line 1122 of file cmdparse.yy.c.
int yy_start_stack_ptr = 0 [static] |
Definition at line 1121 of file cmdparse.yy.c.
yy_state_type* yy_state_buf = 0 [static] |
Definition at line 975 of file cmdparse.yy.c.
yy_state_type * yy_state_ptr = 0 [static] |
Definition at line 975 of file cmdparse.yy.c.
Referenced by yy_init_globals().