Asterisk - The Open Source Telephony Project
18.5.0
|
Flex scanner description of tokens used in AEL2 . More...
#include "asterisk.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <glob.h>
#include "asterisk/logger.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#include "asterisk/hashtab.h"
#include "ael/ael.tab.h"
#include "asterisk/ael_structs.h"
Go to the source code of this file.
Data Structures | |
struct | stackelement |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | yyguts_t |
Macros | |
#define | ael_yywrap(n) 1 |
#define | argg 3 |
#define | ASTMM_LIBC ASTMM_REDIRECT |
#define | BEGIN yyg->yy_start = 1 + 2 * |
#define | brackstate 7 |
#define | comment 4 |
#define | curlystate 5 |
#define | ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | FLEX_BETA |
#define | FLEX_SCANNER |
#define | FLEXINT_H |
#define | GLOB_ABORTED GLOB_ABEND |
#define | GLOB_BRACE 0 |
#define | GLOB_NOMAGIC 0 |
#define | INITIAL 0 |
#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 | MAX_INCLUDE_DEPTH 50 |
#define | paren 1 |
#define | REJECT reject_used_but_not_detected |
#define | semic 2 |
#define | STORE_LOC |
#define | STORE_POS |
#define | UINT16_MAX (65535U) |
#define | UINT32_MAX (4294967295U) |
#define | UINT8_MAX (255U) |
#define | unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define | wordstate 6 |
#define | YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define | YY_BREAK break; |
#define | YY_BUF_SIZE 16384 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_CURRENT_BUFFER |
#define | YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define | YY_DECL |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DO_BEFORE_ACTION |
#define | YY_END_OF_BUFFER 77 |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_EXIT_FAILURE 2 |
#define | YY_EXTRA_TYPE void * |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
#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 35 |
#define | YY_FLUSH_BUFFER ael_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
#define | YY_INPUT(buf, result, max_size) |
#define | YY_INT_ALIGNED short int |
#define | YY_LESS_LINENO(n) |
#define | YY_MORE_ADJ yyg->yy_more_len |
#define | yy_new_buffer ael_yy_create_buffer |
#define | YY_NEW_FILE ael_yyrestart(yyin ,yyscanner ) |
#define | YY_NULL 0 |
#define | YY_NUM_RULES 76 |
#define | YY_READ_BUF_SIZE 8192 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | yy_set_bol(at_bol) |
#define | yy_set_interactive(is_interactive) |
#define | YY_SKIP_YYWRAP |
#define | YY_START ((yyg->yy_start - 1) / 2) |
#define | YY_START_STACK_INCR 25 |
#define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#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 | YY_USER_ACTION |
#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 | yyless(n) |
#define | yyless(n) |
#define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define | yylloc yyg->yylloc_r |
#define | yylval yyg->yylval_r |
#define | yymore() (yyg->yy_more_flag = 1) |
#define | yyout yyg->yyout_r |
#define | YYSTATE YY_START |
#define | YYTABLES_NAME "yytables" |
#define | yyterminate() return YY_NULL |
#define | yytext yyg->yytext_r |
#define | yytext_ptr yytext_r |
Typedefs | |
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 struct yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned char | YY_CHAR |
typedef size_t | yy_size_t |
typedef int | yy_state_type |
typedef void * | yyscan_t |
Functions | |
struct pval * | ael2_parse (char *filename, int *errors) |
YY_BUFFER_STATE | ael_yy_create_buffer (FILE *file, int size, yyscan_t yyscanner) |
void | ael_yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
void | ael_yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
static void | ael_yy_init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner) |
static void | ael_yy_load_buffer_state (yyscan_t yyscanner) |
YY_BUFFER_STATE | ael_yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner) |
YY_BUFFER_STATE | ael_yy_scan_bytes (yyconst char *bytes, int len, yyscan_t yyscanner) |
YY_BUFFER_STATE | ael_yy_scan_string (yyconst char *yy_str, yyscan_t yyscanner) |
void | ael_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
void * | ael_yyalloc (yy_size_t, yyscan_t yyscanner) |
static void | ael_yyensure_buffer_stack (yyscan_t yyscanner) |
void | ael_yyfree (void *, yyscan_t yyscanner) |
int | ael_yyget_column (yyscan_t yyscanner) |
int | ael_yyget_debug (yyscan_t yyscanner) |
YY_EXTRA_TYPE | ael_yyget_extra (yyscan_t yyscanner) |
FILE * | ael_yyget_in (yyscan_t yyscanner) |
int | ael_yyget_leng (yyscan_t yyscanner) |
int | ael_yyget_lineno (yyscan_t yyscanner) |
YYLTYPE * | ael_yyget_lloc (yyscan_t yyscanner) |
YYSTYPE * | ael_yyget_lval (yyscan_t yyscanner) |
FILE * | ael_yyget_out (yyscan_t yyscanner) |
char * | ael_yyget_text (yyscan_t yyscanner) |
int | ael_yylex (YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner) |
int | ael_yylex_destroy (yyscan_t yyscanner) |
int | ael_yylex_init (yyscan_t *scanner) |
int | ael_yylex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner) |
int | ael_yyparse (struct parse_io *) |
void | ael_yypop_buffer_state (yyscan_t yyscanner) |
void | ael_yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
void * | ael_yyrealloc (void *, yy_size_t, yyscan_t yyscanner) |
void | ael_yyrestart (FILE *input_file, yyscan_t yyscanner) |
void | ael_yyset_column (int column_no, yyscan_t yyscanner) |
void | ael_yyset_debug (int debug_flag, yyscan_t yyscanner) |
void | ael_yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner) |
void | ael_yyset_in (FILE *in_str, yyscan_t yyscanner) |
void | ael_yyset_lineno (int line_number, yyscan_t yyscanner) |
void | ael_yyset_lloc (YYLTYPE *yylloc_param, yyscan_t yyscanner) |
void | ael_yyset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner) |
void | ael_yyset_out (FILE *out_str, yyscan_t yyscanner) |
static int | c_prevword (void) |
if (!yyg->yy_init) | |
static int | input (yyscan_t yyscanner) |
int | isatty (int) |
static int | pbcpop (char x) |
static int | pbcpop2 (char x) |
static int | pbcpop3 (char x) |
static void | pbcpush (char x) |
static void | pbcpush2 (char x) |
static void | pbcpush3 (char x) |
static void | pbcwhere (const char *text, int *line, int *col) |
void | reset_argcount (yyscan_t yyscanner) |
void | reset_parencount (yyscan_t yyscanner) |
void | reset_semicount (yyscan_t yyscanner) |
static void | setup_filestack (char *fnamebuf, int fnamebuf_siz, glob_t *globbuf, int globpos, yyscan_t xscan, int create) |
while (1) | |
static void | yy_fatal_error (yyconst char msg[], yyscan_t yyscanner) |
static void | yy_fatal_error (yyconst char *msg, yyscan_t yyscanner) |
static int | yy_get_next_buffer (yyscan_t yyscanner) |
static yy_state_type | yy_get_previous_state (yyscan_t yyscanner) |
static int | yy_init_globals (yyscan_t yyscanner) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner) |
static void | yyunput (int c, char *buf_ptr, yyscan_t yyscanner) |
static void | yyunput (int c, register char *yy_bp, yyscan_t yyscanner) |
Variables | |
static struct stackelement | include_stack [MAX_INCLUDE_DEPTH] |
static int | include_stack_index = 0 |
static int | my_col = 1 |
char * | my_file = 0 |
static int | my_lineno = 1 |
static int | parencount = 0 |
static int | parencount2 = 0 |
static int | parencount3 = 0 |
static int | pbcpos = 0 |
static int | pbcpos2 = 0 |
static int | pbcpos3 = 0 |
static char | pbcstack [400] |
static char | pbcstack2 [400] |
static char | pbcstack3 [400] |
char * | prev_word |
static yyconst flex_int16_t | yy_accept [285] |
register int | yy_act |
static yyconst flex_int16_t | yy_base [304] |
register char * | yy_bp |
static yyconst flex_int16_t | yy_chk [1073] |
register char * | yy_cp |
YY_DECL | |
static yyconst flex_int16_t | yy_def [304] |
static yyconst flex_int32_t | yy_ec [256] |
static yyconst flex_int32_t | yy_meta [50] |
static yyconst flex_int16_t | yy_nxt [1073] |
struct yyguts_t * | yyg = (struct yyguts_t*)yyscanner |
yylloc = yylloc_param | |
yylval = yylval_param | |
Flex scanner description of tokens used in AEL2 .
Definition in file ael_lex.c.
#define ael_yywrap | ( | n | ) | 1 |
#define argg 3 |
Definition at line 975 of file ael_lex.c.
Referenced by reset_argcount(), and while().
#define ASTMM_LIBC ASTMM_REDIRECT |
#define BEGIN yyg->yy_start = 1 + 2 * |
Definition at line 146 of file ael_lex.c.
Referenced by reset_argcount(), reset_parencount(), reset_semicount(), setup_filestack(), and while().
#define comment 4 |
Definition at line 976 of file ael_lex.c.
Referenced by __ast_play_and_record(), config_text_file_load(), and while().
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 185 of file ael_lex.c.
Referenced by input(), while(), and yy_get_next_buffer().
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 186 of file ael_lex.c.
Referenced by input(), while(), and yy_get_next_buffer().
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 187 of file ael_lex.c.
Referenced by input(), while(), and yy_get_next_buffer().
#define GLOB_ABORTED GLOB_ABEND |
Definition at line 839 of file ael_lex.c.
Referenced by ast_xmldoc_load_documentation(), config_text_file_load(), and while().
#define INITIAL 0 |
Definition at line 972 of file ael_lex.c.
Referenced by setup_filestack(), and while().
#define paren 1 |
Definition at line 973 of file ael_lex.c.
Referenced by __ast_app_separate_args(), add_extension(), applicationmap_handler(), ast_app_separate_args(), parse_options(), reset_parencount(), and while().
#define semic 2 |
Definition at line 974 of file ael_lex.c.
Referenced by reset_semicount(), and while().
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define YY_BUF_SIZE 16384 |
Definition at line 172 of file ael_lex.c.
Referenced by ael_yyrestart(), and if().
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 272 of file ael_lex.c.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Definition at line 260 of file ael_lex.c.
Referenced by ael_yy_flush_buffer(), ael_yy_scan_buffer(), and while().
#define YY_CURRENT_BUFFER |
Definition at line 283 of file ael_lex.c.
Referenced by ael_yy_delete_buffer(), ael_yy_flush_buffer(), ael_yy_init_buffer(), ael_yy_switch_to_buffer(), ael_yyget_column(), ael_yyget_lineno(), ael_yylex_destroy(), ael_yypop_buffer_state(), ael_yypush_buffer_state(), ael_yyrestart(), ael_yyset_column(), ael_yyset_lineno(), if(), setup_filestack(), while(), and yy_get_next_buffer().
Definition at line 290 of file ael_lex.c.
Referenced by ael_yy_delete_buffer(), ael_yy_load_buffer_state(), ael_yy_switch_to_buffer(), ael_yylex_destroy(), ael_yypop_buffer_state(), ael_yypush_buffer_state(), ael_yyrestart(), if(), input(), while(), yy_get_next_buffer(), and yyunput().
#define YY_DECL |
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 161 of file ael_lex.c.
Referenced by ael_yy_flush_buffer(), ael_yy_scan_buffer(), ael_yy_scan_bytes(), input(), and yy_get_next_buffer().
#define YY_EXIT_FAILURE 2 |
Definition at line 2867 of file ael_lex.c.
Referenced by yy_fatal_error().
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
Definition at line 1181 of file ael_lex.c.
Referenced by ael_yy_create_buffer(), ael_yy_scan_buffer(), ael_yy_scan_bytes(), ael_yyensure_buffer_stack(), while(), yy_get_next_buffer(), and yyunput().
#define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 140 of file ael_lex.c.
Referenced by ael_yyget_debug(), and ael_yyset_debug().
#define YY_FLUSH_BUFFER ael_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
Definition at line 1134 of file ael_lex.c.
Referenced by yy_get_next_buffer().
#define YY_MORE_ADJ yyg->yy_more_len |
Definition at line 775 of file ael_lex.c.
Referenced by while(), yy_get_next_buffer(), and yy_get_previous_state().
#define yy_new_buffer ael_yy_create_buffer |
#define YY_NEW_FILE ael_yyrestart(yyin ,yyscanner ) |
#define YY_READ_BUF_SIZE 8192 |
Definition at line 1118 of file ael_lex.c.
Referenced by yy_get_next_buffer().
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 123 of file ael_lex.c.
Referenced by while(), and yy_get_previous_state().
#define YY_START ((yyg->yy_start - 1) / 2) |
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 139 of file ael_lex.c.
Referenced by ael_yyget_column(), and ael_yyset_column().
#define yyconst |
Definition at line 112 of file ael_lex.c.
Referenced by ael_yylex_destroy().
#define yyextra yyg->yyextra_r |
Definition at line 135 of file ael_lex.c.
Referenced by ael_yyget_extra(), and ael_yyset_extra().
#define yyin yyg->yyin_r |
Definition at line 133 of file ael_lex.c.
Referenced by ael_yy_load_buffer_state(), ael_yyget_in(), ael_yyrestart(), ael_yyset_in(), if(), input(), while(), yy_get_next_buffer(), and yy_init_globals().
#define yyleng yyg->yyleng_r |
Definition at line 136 of file ael_lex.c.
Referenced by ael_yyget_leng(), setup_filestack(), and while().
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 138 of file ael_lex.c.
Referenced by ael_yyget_lineno(), and ael_yyset_lineno().
#define yylloc yyg->yylloc_r |
Definition at line 1037 of file ael_lex.c.
Referenced by ael_yyget_lloc(), and ael_yyset_lloc().
#define yylval yyg->yylval_r |
Definition at line 1035 of file ael_lex.c.
Referenced by ael_yyget_lval(), ael_yyset_lval(), and while().
#define yymore | ( | ) | (yyg->yy_more_flag = 1) |
#define yyout yyg->yyout_r |
Definition at line 134 of file ael_lex.c.
Referenced by ael_yyget_out(), ael_yyset_out(), if(), and yy_init_globals().
#define yyterminate | ( | ) | return YY_NULL |
#define yytext yyg->yytext_r |
Definition at line 137 of file ael_lex.c.
Referenced by ael_yyget_text(), and while().
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 struct yy_buffer_state* YY_BUFFER_STATE |
typedef int yy_state_type |
struct pval* ael2_parse | ( | char * | filename, |
int * | errors | ||
) |
Definition at line 3360 of file ael_lex.c.
References ael_yy_scan_string(), ael_yylex_destroy(), ael_yylex_init(), ael_yyparse(), ael_yyset_lineno(), ast_log, calloc, errno, free(), include_stack_index, io, LOG_ERROR, LOG_WARNING, malloc(), my_col, my_file, my_lineno, prev_word, parse_io::pval, parse_io::scanner, strdup, and parse_io::syntax_error_count.
Referenced by pbx_load_module().
YY_BUFFER_STATE ael_yy_create_buffer | ( | FILE * | file, |
int | size, | ||
yyscan_t | yyscanner | ||
) |
Allocate and initialize an input buffer state.
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
yyscanner | The scanner object. |
Definition at line 2574 of file ael_lex.c.
References ael_yy_init_buffer(), ael_yyalloc(), b, yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by ael_yyrestart(), and if().
void ael_yy_delete_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
Destroy the buffer.
b | a buffer created with ael_yy_create_buffer() |
yyscanner | The scanner object. |
Definition at line 2602 of file ael_lex.c.
References ael_yyfree(), isatty(), yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_buffer_state::yy_is_our_buffer.
Referenced by ael_yylex_destroy(), ael_yypop_buffer_state(), and while().
void ael_yy_flush_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
yyscanner | The scanner object. |
Definition at line 2655 of file ael_lex.c.
References ael_yy_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 ael_yy_init_buffer().
|
static |
Definition at line 2626 of file ael_lex.c.
References ael_yy_flush_buffer(), errno, make_ari_stubs::file, isatty(), 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.
Referenced by ael_yy_create_buffer(), and ael_yyrestart().
|
static |
Definition at line 2559 of file ael_lex.c.
References yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_hold_char, yyguts_t::yy_n_chars, and yyin.
Referenced by ael_yy_flush_buffer(), ael_yy_switch_to_buffer(), ael_yypop_buffer_state(), ael_yypush_buffer_state(), ael_yyrestart(), and if().
YY_BUFFER_STATE ael_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.
base | the character buffer |
size | the size in bytes of the character buffer |
yyscanner | The scanner object. |
Definition at line 2786 of file ael_lex.c.
References ael_yy_switch_to_buffer(), ael_yyalloc(), b, 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 ael_yy_scan_bytes().
YY_BUFFER_STATE ael_yy_scan_bytes | ( | yyconst char * | yybytes, |
int | _yybytes_len, | ||
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan the given bytes. The next call to ael_yylex() will scan from a copy of bytes.
yybytes | the byte buffer to scan |
_yybytes_len | the number of bytes in the buffer pointed to by bytes. |
yyscanner | The scanner object. |
Definition at line 2836 of file ael_lex.c.
References ael_yy_scan_buffer(), ael_yyalloc(), b, buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by ael_yy_scan_string().
YY_BUFFER_STATE ael_yy_scan_string | ( | yyconst char * | yystr, |
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan a string. The next call to ael_yylex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
yyscanner | The scanner object. |
Definition at line 2823 of file ael_lex.c.
References ael_yy_scan_bytes().
Referenced by ael2_parse(), and setup_filestack().
void ael_yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
yyscanner | The scanner object. |
Definition at line 2527 of file ael_lex.c.
References ael_yy_load_buffer_state(), ael_yyensure_buffer_stack(), yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.
Referenced by ael_yy_scan_buffer(), setup_filestack(), and while().
Definition at line 3214 of file ael_lex.c.
References malloc().
Referenced by ael_yy_create_buffer(), ael_yy_scan_buffer(), ael_yy_scan_bytes(), ael_yyensure_buffer_stack(), ael_yylex_init(), and ael_yylex_init_extra().
|
static |
Definition at line 2736 of file ael_lex.c.
References ael_yyalloc(), ael_yyrealloc(), yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, and YY_FATAL_ERROR.
Referenced by ael_yy_switch_to_buffer(), ael_yypush_buffer_state(), ael_yyrestart(), and if().
void ael_yyfree | ( | void * | ptr, |
yyscan_t | yyscanner | ||
) |
Definition at line 3242 of file ael_lex.c.
References free().
Referenced by ael_yy_delete_buffer(), and ael_yylex_destroy().
int ael_yyget_column | ( | yyscan_t | yyscanner | ) |
Get the current column number.
yyscanner | The scanner object. |
Definition at line 2920 of file ael_lex.c.
References YY_CURRENT_BUFFER, and yycolumn.
int ael_yyget_debug | ( | yyscan_t | yyscanner | ) |
YY_EXTRA_TYPE ael_yyget_extra | ( | yyscan_t | yyscanner | ) |
Get the user-defined data for this scanner.
yyscanner | The scanner object. |
Definition at line 2898 of file ael_lex.c.
References yyextra.
FILE * ael_yyget_in | ( | yyscan_t | yyscanner | ) |
Get the input stream.
yyscanner | The scanner object. |
Definition at line 2933 of file ael_lex.c.
References yyin.
int ael_yyget_leng | ( | yyscan_t | yyscanner | ) |
Get the length of the current token.
yyscanner | The scanner object. |
Definition at line 2951 of file ael_lex.c.
References yyleng.
int ael_yyget_lineno | ( | yyscan_t | yyscanner | ) |
Get the current line number.
yyscanner | The scanner object. |
Definition at line 2907 of file ael_lex.c.
References YY_CURRENT_BUFFER, and yylineno.
FILE * ael_yyget_out | ( | yyscan_t | yyscanner | ) |
Get the output stream.
yyscanner | The scanner object. |
Definition at line 2942 of file ael_lex.c.
References yyout.
char * ael_yyget_text | ( | yyscan_t | yyscanner | ) |
Get the current token.
yyscanner | The scanner object. |
Definition at line 2961 of file ael_lex.c.
References yytext.
int ael_yylex_destroy | ( | yyscan_t | yyscanner | ) |
Definition at line 3161 of file ael_lex.c.
References ael_yy_delete_buffer(), ael_yyfree(), ael_yypop_buffer_state(), NULL, yyguts_t::yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_globals(), yyguts_t::yy_start_stack, and yyconst.
Referenced by ael2_parse().
int ael_yylex_init | ( | yyscan_t * | scanner | ) |
Definition at line 3070 of file ael_lex.c.
References ael_yyalloc(), errno, NULL, and yy_init_globals().
Referenced by ael2_parse().
int ael_yylex_init_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t * | scanner | ||
) |
Definition at line 3099 of file ael_lex.c.
References ael_yyalloc(), ael_yyset_extra(), errno, NULL, and yy_init_globals().
int ael_yyparse | ( | struct parse_io * | ) |
Referenced by ael2_parse().
void ael_yypop_buffer_state | ( | yyscan_t | yyscanner | ) |
Removes and deletes the top of the stack, if present. The next element becomes the new top.
yyscanner | The scanner object. |
Definition at line 2716 of file ael_lex.c.
References ael_yy_delete_buffer(), ael_yy_load_buffer_state(), NULL, yyguts_t::yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyguts_t::yy_did_buffer_switch_on_eof.
Referenced by ael_yylex_destroy().
void ael_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.
new_buffer | The new state. |
yyscanner | The scanner object. |
Definition at line 2685 of file ael_lex.c.
References ael_yy_load_buffer_state(), ael_yyensure_buffer_stack(), NULL, yyguts_t::yy_buffer_stack_top, yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.
Definition at line 3219 of file ael_lex.c.
References realloc.
Referenced by ael_yyensure_buffer_stack(), and yy_get_next_buffer().
void ael_yyrestart | ( | FILE * | input_file, |
yyscan_t | yyscanner | ||
) |
Immediately switch to a different input stream.
input_file | A readable stream. |
yyscanner | The scanner object. |
INITIAL
. Definition at line 2509 of file ael_lex.c.
References ael_yy_create_buffer(), ael_yy_init_buffer(), ael_yy_load_buffer_state(), ael_yyensure_buffer_stack(), YY_BUF_SIZE, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyin.
Referenced by input(), and yy_get_next_buffer().
void ael_yyset_column | ( | int | column_no, |
yyscan_t | yyscanner | ||
) |
Set the current column.
line_number | |
yyscanner | The scanner object. |
Definition at line 2996 of file ael_lex.c.
References YY_CURRENT_BUFFER, yy_fatal_error(), and yycolumn.
void ael_yyset_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
void ael_yyset_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t | yyscanner | ||
) |
Set the user-defined data. This data is never touched by the scanner.
user_defined | The data to be associated with this scanner. |
yyscanner | The scanner object. |
Definition at line 2971 of file ael_lex.c.
References yyextra.
Referenced by ael_yylex_init_extra().
void ael_yyset_in | ( | FILE * | in_str, |
yyscan_t | yyscanner | ||
) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
yyscanner | The scanner object. |
Definition at line 3013 of file ael_lex.c.
References yyin.
void ael_yyset_lineno | ( | int | line_number, |
yyscan_t | yyscanner | ||
) |
Set the current line number.
line_number | |
yyscanner | The scanner object. |
Definition at line 2981 of file ael_lex.c.
References YY_CURRENT_BUFFER, yy_fatal_error(), and yylineno.
Referenced by ael2_parse().
void ael_yyset_out | ( | FILE * | out_str, |
yyscan_t | yyscanner | ||
) |
|
static |
Definition at line 3291 of file ael_lex.c.
References c, NULL, pbcpop(), pbcpush(), prev_word, and reset_parencount().
Referenced by reset_argcount(), and reset_parencount().
if | ( | !yyg-> | yy_init | ) |
Definition at line 1232 of file ael_lex.c.
References ael_yy_create_buffer(), ael_yy_load_buffer_state(), ael_yyensure_buffer_stack(), YY_BUF_SIZE, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_init, yyguts_t::yy_start, yyin, and yyout.
|
static |
Definition at line 2433 of file ael_lex.c.
References ael_yyrestart(), ael_yywrap, c, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yyguts_t::yy_hold_char, yyguts_t::yy_n_chars, YY_NEW_FILE, and yyin.
int isatty | ( | int | ) |
Referenced by ael_yy_delete_buffer(), and ael_yy_init_buffer().
|
static |
|
static |
|
static |
|
static |
Definition at line 3237 of file ael_lex.c.
References pbcpos, and pbcstack.
Referenced by c_prevword(), reset_argcount(), reset_parencount(), and while().
|
static |
|
static |
|
static |
void reset_argcount | ( | yyscan_t | yyscanner | ) |
Definition at line 3349 of file ael_lex.c.
References argg, BEGIN, c_prevword(), parencount, pbcpos, and pbcpush().
Referenced by reset_semicount(), and yyparse().
void reset_parencount | ( | yyscan_t | yyscanner | ) |
Definition at line 3330 of file ael_lex.c.
References BEGIN, c_prevword(), paren, parencount, pbcpos, pbcpush(), and reset_semicount().
Referenced by c_prevword(), and yyparse().
void reset_semicount | ( | yyscan_t | yyscanner | ) |
Definition at line 3341 of file ael_lex.c.
References BEGIN, pbcpos, reset_argcount(), and semic.
Referenced by reset_parencount(), and yyparse().
|
static |
Definition at line 3415 of file ael_lex.c.
References ael_yy_scan_string(), ael_yy_switch_to_buffer(), ast_config_AST_CONFIG_DIR, ast_copy_string(), ast_debug, ast_log, BEGIN, stackelement::bufstate, stackelement::colno, errno, error(), stackelement::fname, free(), stackelement::globbuf, stackelement::globbuf_pos, include_stack, include_stack_index, INITIAL, stackelement::lineno, LOG_ERROR, LOG_WARNING, malloc(), my_col, my_file, my_lineno, S_OR, strdup, YY_CURRENT_BUFFER, and yyleng.
Referenced by while().
while | ( | 1 | ) |
Definition at line 1258 of file ael_lex.c.
References ael_yy_delete_buffer(), ael_yy_switch_to_buffer(), ael_yywrap, AMPER, argg, ast_config_AST_CONFIG_DIR, ast_copy_string(), ast_log, AT, BAR, BEGIN, brackstate, c, stackelement::colno, COLON, COMMA, comment, curlystate, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EQ, EXTENMARK, stackelement::fname, free(), GLOB_ABORTED, GLOB_BRACE, GLOB_NOMAGIC, stackelement::globbuf_pos, include_stack, include_stack_index, INITIAL, KW_ABSTRACT, KW_BREAK, KW_CASE, KW_CATCH, KW_CONTEXT, KW_CONTINUE, KW_DEFAULT, KW_ELSE, KW_ESWITCHES, KW_EXTEND, KW_FOR, KW_GLOBALS, KW_GOTO, KW_HINT, KW_IF, KW_IFTIME, KW_IGNOREPAT, KW_INCLUDES, KW_JUMP, KW_LOCAL, KW_MACRO, KW_PATTERN, KW_RANDOM, KW_REGEXTEN, KW_RETURN, KW_SWITCH, KW_SWITCHES, KW_WHILE, LC, stackelement::lineno, LOG_ERROR, LOG_WARNING, LP, malloc(), MAX_INCLUDE_DEPTH, my_col, my_file, my_lineno, NULL, paren, parencount, parencount2, parencount3, pbcpop(), pbcpop2(), pbcpop3(), pbcpos2, pbcpos3, pbcpush(), pbcpush2(), pbcpush3(), prev_word, RC, RP, SEMI, semic, setup_filestack(), STORE_LOC, STORE_POS, strdup, unput, wordstate, yy_accept, yy_base, YY_BREAK, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yyguts_t::yy_c_buf_p, yy_chk, yy_cp, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_def, yyguts_t::yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yyguts_t::yy_hold_char, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yyguts_t::yy_more_flag, yyguts_t::yy_more_len, yyguts_t::yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yyguts_t::yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyin, yyleng, yylval, yymore, yyterminate, and yytext.
Referenced by ael_yyset_column(), and ael_yyset_lineno().
|
static |
Definition at line 2199 of file ael_lex.c.
References ael_yyrealloc(), ael_yyrestart(), b, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yy_buffer_state::yy_buf_size, YY_BUFFER_EOF_PENDING, yyguts_t::yy_c_buf_p, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, yy_buffer_state::yy_is_our_buffer, YY_MORE_ADJ, yyguts_t::yy_n_chars, YY_READ_BUF_SIZE, and yyin.
Referenced by input(), and while().
|
static |
Definition at line 2334 of file ael_lex.c.
References yy_accept, yy_base, yyguts_t::yy_c_buf_p, yy_chk, yy_cp, yy_def, yy_ec, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, and yyguts_t::yy_start.
Referenced by while().
|
static |
Definition at line 3127 of file ael_lex.c.
References NULL, yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, yyguts_t::yy_c_buf_p, yyguts_t::yy_init, yyguts_t::yy_start, yyguts_t::yy_start_stack, yyguts_t::yy_start_stack_depth, yyguts_t::yy_start_stack_ptr, yyin, and yyout.
Referenced by ael_yylex_destroy(), ael_yylex_init(), and ael_yylex_init_extra().
|
static |
Definition at line 2367 of file ael_lex.c.
References yy_accept, yy_base, yyguts_t::yy_c_buf_p, yy_chk, yy_cp, yy_def, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_meta, and yy_nxt.
Referenced by while().
|
static |
|
static |
Definition at line 2391 of file ael_lex.c.
References yy_bp, yyguts_t::yy_c_buf_p, yy_buffer_state::yy_ch_buf, yy_cp, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.
|
static |
Definition at line 918 of file ael_lex.c.
Referenced by setup_filestack(), and while().
|
static |
Definition at line 919 of file ael_lex.c.
Referenced by ael2_parse(), setup_filestack(), and while().
|
static |
Definition at line 887 of file ael_lex.c.
Referenced by ael2_parse(), setup_filestack(), and while().
char* my_file = 0 |
Definition at line 888 of file ael_lex.c.
Referenced by ael2_parse(), npval(), setup_filestack(), while(), yyerror(), and yyparse().
|
static |
Definition at line 886 of file ael_lex.c.
Referenced by ael2_parse(), setup_filestack(), and while().
|
static |
Definition at line 862 of file ael_lex.c.
Referenced by reset_argcount(), reset_parencount(), and while().
|
static |
Definition at line 859 of file ael_lex.c.
Referenced by pbcpop(), pbcpush(), reset_argcount(), reset_parencount(), and reset_semicount().
|
static |
Definition at line 868 of file ael_lex.c.
Referenced by pbcpop2(), pbcpush2(), and while().
|
static |
Definition at line 877 of file ael_lex.c.
Referenced by pbcpop3(), pbcpush3(), and while().
|
static |
|
static |
Definition at line 867 of file ael_lex.c.
Referenced by pbcpop2(), and pbcpush2().
|
static |
Definition at line 876 of file ael_lex.c.
Referenced by pbcpop3(), and pbcpush3().
char* prev_word |
Definition at line 889 of file ael_lex.c.
Referenced by ael2_parse(), c_prevword(), while(), yydestruct(), and yyparse().
|
static |
Definition at line 374 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 450 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 648 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
register char* yy_cp |
Definition at line 1219 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), yy_try_NUL_trans(), and yyunput().
YY_DECL |
The main scanner function which does all the work.
|
static |
Definition at line 488 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 409 of file ael_lex.c.
Referenced by while(), and yy_get_previous_state().
|
static |
Definition at line 441 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 526 of file ael_lex.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().