#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <unistd.h>
#define BEGIN (yy_start) = 1 + 2 * |
#define EOB_ACT_CONTINUE_SCAN 0 |
#define EOB_ACT_END_OF_FILE 1 |
#define EOB_ACT_LAST_MATCH 2 |
#define INT16_MAX (32767) |
#define INT16_MIN (-32767-1) |
#define INT32_MAX (2147483647) |
#define INT32_MIN (-2147483647-1) |
#define REJECT reject_used_but_not_detected |
#define splitterwrap |
( |
|
n | ) |
1 |
#define UINT16_MAX (65535U) |
#define UINT32_MAX (4294967295U) |
#define YY_BUF_SIZE 16384 |
#define YY_BUFFER_EOF_PENDING 2 |
#define YY_BUFFER_NORMAL 1 |
#define YY_CURRENT_BUFFER |
Value:( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
#define YY_DECL_IS_OURS 1 |
#define YY_DO_BEFORE_ACTION |
Value:
(yy_hold_char) = *
yy_cp; \
register char * yy_bp
Definition: splitter.cc:763
int splitterleng
Definition: splitter.cc:302
register char * yy_cp
Definition: splitter.cc:763
#define yytext_ptr
Definition: splitter.cc:376
#define YY_END_OF_BUFFER 13 |
#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 ) |
#define YY_FLEX_MAJOR_VERSION 2 |
#define YY_FLEX_MINOR_VERSION 5 |
#define YY_FLEX_SUBMINOR_VERSION 35 |
#define yy_init_buffer splitter_init_buffer |
#define YY_INPUT |
( |
|
buffer, |
|
|
|
count, |
|
|
|
size |
|
) |
| (count = splitterTransfer(buffer, size)) |
#define YY_INT_ALIGNED short int |
#define YY_LESS_LINENO |
( |
|
n | ) |
|
#define yy_load_buffer_state splitter_load_buffer_state |
#define YY_READ_BUF_SIZE 8192 |
#define YY_RESTORE_YY_MORE_OFFSET |
#define YY_SC_TO_UI |
( |
|
c | ) |
((unsigned int) (unsigned char) c) |
#define yy_set_bol |
( |
|
at_bol | ) |
|
Value:
splitterensure_buffer_stack ();
\
}
if(!(yy_init))
Definition: splitter.cc:771
FILE * splitterin
Definition: splitter.cc:367
#define YY_CURRENT_BUFFER_LVALUE
Definition: splitter.cc:297
#define YY_BUF_SIZE
Definition: splitter.cc:170
#define YY_CURRENT_BUFFER
Definition: splitter.cc:290
YY_BUFFER_STATE splitter_create_buffer(FILE *file, int size)
Definition: splitter.cc:1475
#define yy_set_interactive |
( |
|
is_interactive | ) |
|
Value:
splitterensure_buffer_stack ();
\
}
if(!(yy_init))
Definition: splitter.cc:771
FILE * splitterin
Definition: splitter.cc:367
#define YY_CURRENT_BUFFER_LVALUE
Definition: splitter.cc:297
#define YY_BUF_SIZE
Definition: splitter.cc:170
#define YY_CURRENT_BUFFER
Definition: splitter.cc:290
YY_BUFFER_STATE splitter_create_buffer(FILE *file, int size)
Definition: splitter.cc:1475
#define YY_START (((yy_start) - 1) / 2) |
#define YY_START_STACK_INCR 25 |
#define YY_STRUCT_YY_BUFFER_STATE |
#define YY_TYPEDEF_YY_BUFFER_STATE |
#define YY_TYPEDEF_YY_SIZE_T |
Value:do \
{ \
\
int yyless_macro_arg = (n);
\
#define YY_LESS_LINENO(n)
Definition: splitter.cc:191
register char * yy_bp
Definition: splitter.cc:763
#define YY_DO_BEFORE_ACTION
Definition: splitter.cc:386
#define YY_MORE_ADJ
Definition: splitter.cc:547
register char * yy_cp
Definition: splitter.cc:763
while(1)
Definition: splitter.cc:797
#define YY_RESTORE_YY_MORE_OFFSET
Definition: splitter.cc:548
Value:do \
{ \
\
int yyless_macro_arg = (n);
\
(yy_hold_char) = *(yy_c_buf_p); \
char * splittertext
Definition: splitter.cc:549
#define YY_LESS_LINENO(n)
Definition: splitter.cc:191
int splitterleng
Definition: splitter.cc:302
while(1)
Definition: splitter.cc:797
#define yymore |
( |
| ) |
yymore_used_but_not_detected |
#define YYTABLES_NAME "yytables" |
#define yyterminate |
( |
| ) |
return YY_NULL |
Allocate and initialize an input buffer state.
- Parameters
-
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
- Returns
- the allocated buffer state.
Destroy the buffer.
- Parameters
-
Discard all buffered characters. On the next scan, YY_INPUT will be called.
- Parameters
-
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Setup the input buffer state to scan directly from a user-specified character buffer.
- Parameters
-
base | the character buffer |
size | the size in bytes of the character buffer |
- Returns
- the newly allocated buffer state object.
Setup the input buffer state to scan the given bytes. The next call to splitterlex() will scan from a copy of bytes.
- Parameters
-
yybytes | the byte buffer to scan |
_yybytes_len | the number of bytes in the buffer pointed to by bytes. |
- Returns
- the newly allocated buffer state object.
Setup the input buffer state to scan a string. The next call to splitterlex() will scan from a copy of str.
- Parameters
-
yystr | a NUL-terminated string to scan |
- Returns
- the newly allocated buffer state object.
- Note
- If you want to scan bytes that may contain NUL values, then use splitter_scan_bytes() instead.
Switch to a different input buffer.
- Parameters
-
new_buffer | The new input buffer. |
void splitterfree |
( |
void * |
ptr | ) |
|
int splitterget_debug |
( |
void |
| ) |
|
FILE * splitterget_in |
( |
void |
| ) |
|
int splitterget_leng |
( |
void |
| ) |
|
Get the length of the current token.
int splitterget_lineno |
( |
void |
| ) |
|
Get the current line number.
FILE * splitterget_out |
( |
void |
| ) |
|
char * splitterget_text |
( |
void |
| ) |
|
int splitterlex_destroy |
( |
void |
| ) |
|
void splitterpop_buffer_state |
( |
void |
| ) |
|
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
- Parameters
-
void * splitterrealloc |
( |
void * |
ptr, |
|
|
yy_size_t |
size |
|
) |
| |
void splitterrestart |
( |
FILE * |
input_file | ) |
|
Immediately switch to a different input stream.
- Parameters
-
input_file | A readable stream. |
- Note
- This function does not reset the start condition to
INITIAL
.
void splitterset_debug |
( |
int |
debug_flag | ) |
|
void splitterset_in |
( |
FILE * |
in_str | ) |
|
void splitterset_lineno |
( |
int |
line_number | ) |
|
Set the current line number.
- Parameters
-
void splitterset_out |
( |
FILE * |
out_str | ) |
|
void unitSplit |
( |
const char * |
inputBuffer, |
|
|
unsigned int |
inputSize, |
|
|
std::vector< std::string > & |
output |
|
) |
| |
int splitter_flex_debug = 0 |
FILE * splitterin = (FILE *) 0 |
FILE * splitterout = (FILE *) 0 |
Initial value:{
int yy_state_type
Definition: splitter.cc:369
The main scanner function which does all the work.