#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <config.h>
#include "cframe_parser.h"
#include <unistd.h>
Include dependency graph for cframe_lexer.c:
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 | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | YY_FLEX_SUBMINOR_VERSION 33 |
#define | FLEX_BETA |
#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_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 cframerestart(cframein ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#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 cframe_flush_buffer(YY_CURRENT_BUFFER ) |
#define | yy_new_buffer cframe_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 cframetext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 7 |
#define | YY_END_OF_BUFFER 8 |
#define | REJECT reject_used_but_not_detected |
#define | yymore() yymore_used_but_not_detected |
#define | YY_MORE_ADJ 0 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | INITIAL 0 |
#define | YY_EXTRA_TYPE void * |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO (void) fwrite( cframetext, cframeleng, 1, cframeout ) |
#define | YY_INPUT(buf, result, max_size) |
#define | yyterminate() return YY_NULL |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DECL int cframelex (void) |
#define | YY_BREAK break; |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_EXIT_FAILURE 2 |
#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 yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | cframerestart (FILE *input_file) |
void | cframe_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
YY_BUFFER_STATE | cframe_create_buffer (FILE *file, int size) |
void | cframe_delete_buffer (YY_BUFFER_STATE b) |
void | cframe_flush_buffer (YY_BUFFER_STATE b) |
void | cframepush_buffer_state (YY_BUFFER_STATE new_buffer) |
void | cframepop_buffer_state (void) |
YY_BUFFER_STATE | cframe_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | cframe_scan_string (yyconst char *yy_str) |
YY_BUFFER_STATE | cframe_scan_bytes (yyconst char *bytes, int len) |
void * | cframealloc (yy_size_t) |
void * | cframerealloc (void *, yy_size_t) |
void | cframefree (void *) |
int | cframewrap (void) |
int | cframelex (void) |
int | cframeget_lineno (void) |
FILE * | cframeget_in (void) |
FILE * | cframeget_out (void) |
int | cframeget_leng (void) |
char * | cframeget_text (void) |
void | cframeset_lineno (int line_number) |
void | cframeset_in (FILE *in_str) |
void | cframeset_out (FILE *out_str) |
int | cframeget_debug (void) |
void | cframeset_debug (int bdebug) |
int | cframelex_destroy (void) |
Variables | |
int | cframeleng |
FILE * | cframein = (FILE *) 0 *cframeout = (FILE *) 0 |
FILE * | cframeout |
int | cframelineno = 1 |
char * | cframetext |
int | cframe_flex_debug = 0 |
|
Definition at line 124 of file cframe_lexer.c. |
|
Definition at line 542 of file cframe_lexer.c. |
|
Definition at line 159 of file cframe_lexer.c. |
|
Definition at line 160 of file cframe_lexer.c. |
|
Definition at line 161 of file cframe_lexer.c. |
|
Definition at line 14 of file cframe_lexer.c. |
|
Definition at line 9 of file cframe_lexer.c. |
|
Definition at line 484 of file cframe_lexer.c. |
|
Definition at line 73 of file cframe_lexer.c. |
|
Definition at line 64 of file cframe_lexer.c. |
|
Definition at line 76 of file cframe_lexer.c. |
|
Definition at line 67 of file cframe_lexer.c. |
|
Definition at line 70 of file cframe_lexer.c. |
|
Definition at line 61 of file cframe_lexer.c. |
|
Definition at line 472 of file cframe_lexer.c. |
|
Definition at line 82 of file cframe_lexer.c. |
|
Definition at line 85 of file cframe_lexer.c. |
|
Definition at line 79 of file cframe_lexer.c. |
|
Definition at line 179 of file cframe_lexer.c. |
|
Definition at line 335 of file cframe_lexer.c. |
|
Definition at line 605 of file cframe_lexer.c. |
|
Definition at line 143 of file cframe_lexer.c. |
|
Definition at line 251 of file cframe_lexer.c. |
|
Definition at line 239 of file cframe_lexer.c. |
|
Definition at line 240 of file cframe_lexer.c. |
|
Value: ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) Definition at line 267 of file cframe_lexer.c. Referenced by cframelex_destroy(), cframepop_buffer_state(), rddflex_destroy(), and rddfpop_buffer_state(). |
|
Definition at line 274 of file cframe_lexer.c. Referenced by cframelex_destroy(), cframepop_buffer_state(), cframepush_buffer_state(), rddflex_destroy(), rddfpop_buffer_state(), and rddfpush_buffer_state(). |
|
Definition at line 593 of file cframe_lexer.c. |
|
Definition at line 589 of file cframe_lexer.c. |
|
Value: (yytext_ptr) = yy_bp; \ cframeleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; Definition at line 412 of file cframe_lexer.c. |
|
Definition at line 420 of file cframe_lexer.c. |
|
Definition at line 139 of file cframe_lexer.c. Referenced by cframe_scan_buffer(), and rddf_scan_buffer(). |
|
Definition at line 1480 of file cframe_lexer.c. |
|
Definition at line 495 of file cframe_lexer.c. |
|
Definition at line 580 of file cframe_lexer.c. Referenced by cframe_scan_buffer(), cframe_scan_bytes(), rddf_scan_buffer(), and rddf_scan_bytes(). |
|
Definition at line 10 of file cframe_lexer.c. |
|
Definition at line 11 of file cframe_lexer.c. |
|
Definition at line 12 of file cframe_lexer.c. |
|
Definition at line 303 of file cframe_lexer.c. |
|
Value: errno=0; \ while ( (result = read( fileno(cframein), (char *) buf, max_size )) < 0 ) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(cframein); \ }\ \ Definition at line 549 of file cframe_lexer.c. |
|
Definition at line 5 of file cframe_lexer.c. |
|
Definition at line 163 of file cframe_lexer.c. |
|
Definition at line 474 of file cframe_lexer.c. |
|
Definition at line 313 of file cframe_lexer.c. |
|
Definition at line 137 of file cframe_lexer.c. |
|
Definition at line 111 of file cframe_lexer.c. |
|
Definition at line 419 of file cframe_lexer.c. |
|
Definition at line 534 of file cframe_lexer.c. |
|
Definition at line 475 of file cframe_lexer.c. |
|
Definition at line 608 of file cframe_lexer.c. |
|
Definition at line 118 of file cframe_lexer.c. |
|
Value: { \ if ( ! YY_CURRENT_BUFFER ){\ cframeensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ cframe_create_buffer(cframein,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } Definition at line 325 of file cframe_lexer.c. |
|
Value: { \ if ( ! YY_CURRENT_BUFFER ){ \ cframeensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ cframe_create_buffer(cframein,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } Definition at line 315 of file cframe_lexer.c. |
|
Definition at line 130 of file cframe_lexer.c. |
|
Definition at line 575 of file cframe_lexer.c. |
|
Definition at line 148 of file cframe_lexer.c. |
|
Definition at line 134 of file cframe_lexer.c. |
|
Definition at line 107 of file cframe_lexer.c. |
|
Value: do \ { \ /* Undo effects of setting up cframetext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ cframetext[cframeleng] = (yy_hold_char); \ (yy_c_buf_p) = cframetext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ cframeleng = yyless_macro_arg; \ } \ while ( 0 ) Definition at line 1492 of file cframe_lexer.c. |
|
Value: do \ { \ /* Undo effects of setting up cframetext. */ \ 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 cframetext again */ \ } \ while ( 0 ) Definition at line 1492 of file cframe_lexer.c. |
|
Definition at line 473 of file cframe_lexer.c. |
|
Definition at line 131 of file cframe_lexer.c. |
|
Definition at line 1682 of file cframe_lexer.c. |
|
Definition at line 570 of file cframe_lexer.c. |
|
Definition at line 350 of file cframe_lexer.c. |
|
Definition at line 52 of file cframe_lexer.c. |
|
Definition at line 53 of file cframe_lexer.c. |
|
Definition at line 51 of file cframe_lexer.c. |
|
Definition at line 55 of file cframe_lexer.c. |
|
Definition at line 56 of file cframe_lexer.c. |
|
Definition at line 54 of file cframe_lexer.c. |
|
Definition at line 152 of file cframe_lexer.c. Referenced by cframe_scan_buffer(), cframe_scan_bytes(), cframe_scan_string(), parse_msg(), rddf_scan_buffer(), rddf_scan_bytes(), and rddf_scan_string(). |
|
Definition at line 339 of file cframe_lexer.c. |
|
Definition at line 188 of file cframe_lexer.c. Referenced by cframe_scan_bytes(), and rddf_scan_bytes(). |
|
Definition at line 343 of file cframe_lexer.c. |
|
|
|
|
|
Discard all buffered characters. On the next scan, YY_INPUT will be called.
Definition at line 1276 of file cframe_lexer.c. References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, and yy_buffer_state::yy_n_chars. |
|
Setup the input buffer state to scan directly from a user-specified character buffer.
Definition at line 1399 of file cframe_lexer.c. References cframe_switch_to_buffer(), cframealloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_STATE, 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. |
Here is the call graph for this function:
|
Setup the input buffer state to scan the given bytes. The next call to cframelex() will scan from a copy of bytes.
Definition at line 1449 of file cframe_lexer.c. References cframe_scan_buffer(), cframealloc(), YY_BUFFER_STATE, YY_FATAL_ERROR, yy_buffer_state::yy_is_our_buffer, and yy_size_t. |
Here is the call graph for this function:
|
Setup the input buffer state to scan a string. The next call to cframelex() will scan from a copy of str.
Definition at line 1436 of file cframe_lexer.c. References cframe_scan_bytes(), and YY_BUFFER_STATE. |
Here is the call graph for this function:
|
|
|
Definition at line 1660 of file cframe_lexer.c. |
|
Definition at line 1677 of file cframe_lexer.c. |
|
Definition at line 1576 of file cframe_lexer.c. |
|
Get the input stream. Definition at line 1520 of file cframe_lexer.c. |
|
Get the length of the current token. Definition at line 1536 of file cframe_lexer.c. |
|
Get the current line number. Definition at line 1511 of file cframe_lexer.c. |
|
Get the output stream. Definition at line 1528 of file cframe_lexer.c. |
|
Get the current token. Definition at line 1545 of file cframe_lexer.c. |
|
|
|
Definition at line 1615 of file cframe_lexer.c. References cframe_delete_buffer(), cframefree(), cframepop_buffer_state(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE. |
Here is the call graph for this function:
|
Removes and deletes the top of the stack, if present. The next element becomes the new top. Definition at line 1335 of file cframe_lexer.c. References cframe_delete_buffer(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE. Referenced by cframelex_destroy(). |
Here is the call graph for this function:
|
Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
Definition at line 1305 of file cframe_lexer.c. References yy_buffer_state::yy_buf_pos, YY_CURRENT_BUFFER_LVALUE, and yy_buffer_state::yy_n_chars. |
|
Definition at line 1665 of file cframe_lexer.c. |
|
|
|
Definition at line 1581 of file cframe_lexer.c. References cframe_flex_debug. |
|
Set the input stream. This does not discard the current input buffer.
Definition at line 1566 of file cframe_lexer.c. References cframein. |
|
Set the current line number.
Definition at line 1554 of file cframe_lexer.c. References cframelineno. |
|
Definition at line 1571 of file cframe_lexer.c. References cframeout. |
|
Definition at line 120 of file cframe_parser.c. |
|
Definition at line 467 of file cframe_lexer.c. Referenced by cframeset_debug(). |
|
Definition at line 341 of file cframe_lexer.c. Referenced by cframeset_in(). |
|
Definition at line 279 of file cframe_lexer.c. |
|
Definition at line 347 of file cframe_lexer.c. Referenced by cframeset_lineno(). |
|
Referenced by cframeset_out(). |
|
Definition at line 476 of file cframe_lexer.c. |