#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <config.h>
#include "rddf_parser.h"
#include <unistd.h>
Include dependency graph for rddf_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 rddfrestart(rddfin ) |
#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 rddf_flush_buffer(YY_CURRENT_BUFFER ) |
#define | yy_new_buffer rddf_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 rddftext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 6 |
#define | YY_END_OF_BUFFER 7 |
#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( rddftext, rddfleng, 1, rddfout ) |
#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 rddflex (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 | rddfrestart (FILE *input_file) |
void | rddf_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
YY_BUFFER_STATE | rddf_create_buffer (FILE *file, int size) |
void | rddf_delete_buffer (YY_BUFFER_STATE b) |
void | rddf_flush_buffer (YY_BUFFER_STATE b) |
void | rddfpush_buffer_state (YY_BUFFER_STATE new_buffer) |
void | rddfpop_buffer_state (void) |
YY_BUFFER_STATE | rddf_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | rddf_scan_string (yyconst char *yy_str) |
YY_BUFFER_STATE | rddf_scan_bytes (yyconst char *bytes, int len) |
void * | rddfalloc (yy_size_t) |
void * | rddfrealloc (void *, yy_size_t) |
void | rddffree (void *) |
int | rddfwrap (void) |
int | rddflex (void) |
int | rddfget_lineno (void) |
FILE * | rddfget_in (void) |
FILE * | rddfget_out (void) |
int | rddfget_leng (void) |
char * | rddfget_text (void) |
void | rddfset_lineno (int line_number) |
void | rddfset_in (FILE *in_str) |
void | rddfset_out (FILE *out_str) |
int | rddfget_debug (void) |
void | rddfset_debug (int bdebug) |
int | rddflex_destroy (void) |
Variables | |
int | rddfleng |
FILE * | rddfin = (FILE *) 0 *rddfout = (FILE *) 0 |
FILE * | rddfout |
int | rddflineno = 1 |
char * | rddftext |
int | rddf_flex_debug = 0 |
|
Definition at line 124 of file rddf_lexer.c. |
|
Definition at line 542 of file rddf_lexer.c. |
|
Definition at line 159 of file rddf_lexer.c. |
|
Definition at line 160 of file rddf_lexer.c. |
|
Definition at line 161 of file rddf_lexer.c. |
|
Definition at line 14 of file rddf_lexer.c. |
|
Definition at line 9 of file rddf_lexer.c. |
|
Definition at line 484 of file rddf_lexer.c. |
|
Definition at line 73 of file rddf_lexer.c. |
|
Definition at line 64 of file rddf_lexer.c. |
|
Definition at line 76 of file rddf_lexer.c. |
|
Definition at line 67 of file rddf_lexer.c. |
|
Definition at line 70 of file rddf_lexer.c. |
|
Definition at line 61 of file rddf_lexer.c. |
|
Definition at line 472 of file rddf_lexer.c. |
|
Definition at line 82 of file rddf_lexer.c. |
|
Definition at line 85 of file rddf_lexer.c. |
|
Definition at line 79 of file rddf_lexer.c. |
|
Definition at line 179 of file rddf_lexer.c. |
|
Definition at line 335 of file rddf_lexer.c. |
|
Definition at line 605 of file rddf_lexer.c. |
|
Definition at line 143 of file rddf_lexer.c. |
|
Definition at line 251 of file rddf_lexer.c. |
|
Definition at line 239 of file rddf_lexer.c. |
|
Definition at line 240 of file rddf_lexer.c. |
|
Value: ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) Definition at line 267 of file rddf_lexer.c. |
|
Definition at line 274 of file rddf_lexer.c. |
|
Definition at line 593 of file rddf_lexer.c. |
|
Definition at line 589 of file rddf_lexer.c. |
|
Value: (yytext_ptr) = yy_bp; \ rddfleng = (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 rddf_lexer.c. |
|
Definition at line 420 of file rddf_lexer.c. |
|
Definition at line 139 of file rddf_lexer.c. |
|
Definition at line 1480 of file rddf_lexer.c. |
|
Definition at line 495 of file rddf_lexer.c. |
|
Definition at line 580 of file rddf_lexer.c. |
|
Definition at line 10 of file rddf_lexer.c. |
|
Definition at line 11 of file rddf_lexer.c. |
|
Definition at line 12 of file rddf_lexer.c. |
|
Definition at line 303 of file rddf_lexer.c. |
|
Value: errno=0; \ while ( (result = read( fileno(rddfin), (char *) buf, max_size )) < 0 ) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(rddfin); \ }\ \ Definition at line 549 of file rddf_lexer.c. |
|
Definition at line 5 of file rddf_lexer.c. |
|
Definition at line 163 of file rddf_lexer.c. |
|
Definition at line 474 of file rddf_lexer.c. |
|
Definition at line 313 of file rddf_lexer.c. |
|
Definition at line 137 of file rddf_lexer.c. |
|
Definition at line 111 of file rddf_lexer.c. |
|
Definition at line 419 of file rddf_lexer.c. |
|
Definition at line 534 of file rddf_lexer.c. |
|
Definition at line 475 of file rddf_lexer.c. |
|
Definition at line 608 of file rddf_lexer.c. |
|
Definition at line 118 of file rddf_lexer.c. |
|
Value: { \ if ( ! YY_CURRENT_BUFFER ){\ rddfensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ rddf_create_buffer(rddfin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } Definition at line 325 of file rddf_lexer.c. |
|
Value: { \ if ( ! YY_CURRENT_BUFFER ){ \ rddfensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ rddf_create_buffer(rddfin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } Definition at line 315 of file rddf_lexer.c. |
|
Definition at line 130 of file rddf_lexer.c. |
|
Definition at line 575 of file rddf_lexer.c. |
|
Definition at line 148 of file rddf_lexer.c. |
|
Definition at line 134 of file rddf_lexer.c. |
|
Definition at line 107 of file rddf_lexer.c. |
|
Value: do \ { \ /* Undo effects of setting up rddftext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ rddftext[rddfleng] = (yy_hold_char); \ (yy_c_buf_p) = rddftext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ rddfleng = yyless_macro_arg; \ } \ while ( 0 ) Definition at line 1492 of file rddf_lexer.c. |
|
Value: do \ { \ /* Undo effects of setting up rddftext. */ \ 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 rddftext again */ \ } \ while ( 0 ) Definition at line 1492 of file rddf_lexer.c. |
|
Definition at line 473 of file rddf_lexer.c. |
|
Definition at line 131 of file rddf_lexer.c. |
|
Definition at line 1682 of file rddf_lexer.c. |
|
Definition at line 570 of file rddf_lexer.c. |
|
Definition at line 350 of file rddf_lexer.c. |
|
Definition at line 52 of file rddf_lexer.c. |
|
Definition at line 53 of file rddf_lexer.c. |
|
Definition at line 51 of file rddf_lexer.c. |
|
Definition at line 55 of file rddf_lexer.c. |
|
Definition at line 56 of file rddf_lexer.c. |
|
Definition at line 54 of file rddf_lexer.c. |
|
Definition at line 152 of file rddf_lexer.c. |
|
Definition at line 339 of file rddf_lexer.c. |
|
Definition at line 188 of file rddf_lexer.c. |
|
Definition at line 343 of file rddf_lexer.c. |
|
|
|
|
|
Discard all buffered characters. On the next scan, YY_INPUT will be called.
Definition at line 1276 of file rddf_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 rddf_lexer.c. References rddf_switch_to_buffer(), rddfalloc(), 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 rddflex() will scan from a copy of bytes.
Definition at line 1449 of file rddf_lexer.c. References rddf_scan_buffer(), rddfalloc(), 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 rddflex() will scan from a copy of str.
Definition at line 1436 of file rddf_lexer.c. References rddf_scan_bytes(), and YY_BUFFER_STATE. |
Here is the call graph for this function:
|
|
|
Definition at line 1660 of file rddf_lexer.c. |
|
Definition at line 1677 of file rddf_lexer.c. |
|
Definition at line 1576 of file rddf_lexer.c. |
|
Get the input stream. Definition at line 1520 of file rddf_lexer.c. |
|
Get the length of the current token. Definition at line 1536 of file rddf_lexer.c. |
|
Get the current line number. Definition at line 1511 of file rddf_lexer.c. |
|
Get the output stream. Definition at line 1528 of file rddf_lexer.c. |
|
Get the current token. Definition at line 1545 of file rddf_lexer.c. |
|
|
|
Definition at line 1615 of file rddf_lexer.c. References rddf_delete_buffer(), rddffree(), rddfpop_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 rddf_lexer.c. References rddf_delete_buffer(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE. Referenced by rddflex_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 rddf_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 rddf_lexer.c. |
|
|
|
Definition at line 1581 of file rddf_lexer.c. References rddf_flex_debug. |
|
Set the input stream. This does not discard the current input buffer.
Definition at line 1566 of file rddf_lexer.c. References rddfin. |
|
Set the current line number.
Definition at line 1554 of file rddf_lexer.c. References rddflineno. |
|
Definition at line 1571 of file rddf_lexer.c. References rddfout. |
|
Definition at line 113 of file rddf_parser.c. |
|
Definition at line 467 of file rddf_lexer.c. Referenced by rddfset_debug(). |
|
Definition at line 341 of file rddf_lexer.c. Referenced by rddfset_in(). |
|
Definition at line 279 of file rddf_lexer.c. |
|
Definition at line 347 of file rddf_lexer.c. Referenced by rddfset_lineno(). |
|
Referenced by rddfset_out(). |
|
Definition at line 476 of file rddf_lexer.c. |