#include <stdio.h>
#include <unistd.h>
#include "dotty_parser.h"
#include "strdup.h"
#include <string>
Go to the source code of this file.
Compounds | |
struct | yy_buffer_state |
Defines | |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | yyconst |
#define | YY_PROTO(proto) () |
#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 yyrestart( yyin ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#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 yy_current_buffer |
#define | YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
#define | yy_new_buffer yy_create_buffer |
#define | yy_set_interactive(is_interactive) |
#define | yy_set_bol(at_bol) |
#define | YY_AT_BOL() (yy_current_buffer->yy_at_bol) |
#define | yytext_ptr yytext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 8 |
#define | YY_END_OF_BUFFER 9 |
#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_NEVER_INTERACTIVE 1 |
#define | YY_NO_PUSH_STATE 1 |
#define | YY_NO_POP_STATE 1 |
#define | YY_NO_TOP_STATE 1 |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO (void) fwrite( yytext, yyleng, 1, yyout ) |
#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 int yylex YY_PROTO(( void )) |
#define | YY_BREAK break; |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
Typedefs | |
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 yyrestart | YY_PROTO ((FILE *input_file)) |
void yy_switch_to_buffer | YY_PROTO ((YY_BUFFER_STATE new_buffer)) |
void yy_load_buffer_state | YY_PROTO ((void)) |
YY_BUFFER_STATE yy_create_buffer | YY_PROTO ((FILE *file, int size)) |
void yy_delete_buffer | YY_PROTO ((YY_BUFFER_STATE b)) |
void yy_init_buffer | YY_PROTO ((YY_BUFFER_STATE b, FILE *file)) |
YY_BUFFER_STATE yy_scan_buffer | YY_PROTO ((char *base, yy_size_t size)) |
YY_BUFFER_STATE yy_scan_string | YY_PROTO ((yyconst char *yy_str)) |
YY_BUFFER_STATE yy_scan_bytes | YY_PROTO ((yyconst char *bytes, int len)) |
void *yy_flex_alloc | YY_PROTO ((yy_size_t)) |
void *yy_flex_realloc | YY_PROTO ((void *, yy_size_t)) |
void yy_flex_free | YY_PROTO ((void *)) |
yy_state_type yy_try_NUL_trans | YY_PROTO ((yy_state_type current_state)) |
void yy_fatal_error | YY_PROTO ((yyconst char msg[])) |
void yyunput | YY_PROTO ((int c, char *buf_ptr)) |
Variables | |
int | yyleng |
FILE * | yyin = (FILE *) 0 |
FILE * | yyout = (FILE *) 0 |
YY_BUFFER_STATE | yy_current_buffer = 0 |
char | yy_hold_char |
int | yy_n_chars |
char * | yy_c_buf_p = (char *) 0 |
int | yy_init = 1 |
int | yy_start = 0 |
int | yy_did_buffer_switch_on_eof |
char * | yytext |
yyconst short int | yy_accept [24] |
yyconst int | yy_ec [256] |
yyconst int | yy_meta [11] |
yyconst short int | yy_base [29] |
yyconst short int | yy_def [29] |
yyconst short int | yy_nxt [54] |
yyconst short int | yy_chk [54] |
yy_state_type | yy_last_accepting_state |
char * | yy_last_accepting_cpos |
char * | yyfilename |
int | yylineno |
register char * | yy_bp |
int | size |
FILE * | file |
int | len |
|
Definition at line 79 of file dotty_scanner.cc. |
|
Definition at line 476 of file dotty_scanner.cc. |
|
Definition at line 104 of file dotty_scanner.cc. |
|
Definition at line 105 of file dotty_scanner.cc. |
|
Definition at line 106 of file dotty_scanner.cc. |
|
Definition at line 7 of file dotty_scanner.cc. |
|
Definition at line 377 of file dotty_scanner.cc. |
|
Definition at line 371 of file dotty_scanner.cc. |
|
Definition at line 135 of file dotty_scanner.cc. |
|
Definition at line 262 of file dotty_scanner.cc. |
|
Definition at line 535 of file dotty_scanner.cc. |
|
Definition at line 97 of file dotty_scanner.cc. |
|
Definition at line 198 of file dotty_scanner.cc. |
|
Definition at line 186 of file dotty_scanner.cc. |
|
Definition at line 187 of file dotty_scanner.cc. |
|
Definition at line 207 of file dotty_scanner.cc. |
|
Definition at line 523 of file dotty_scanner.cc. |
|
Value: yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; Definition at line 278 of file dotty_scanner.cc. |
|
Definition at line 286 of file dotty_scanner.cc. |
|
Definition at line 94 of file dotty_scanner.cc. |
|
|
|
Definition at line 516 of file dotty_scanner.cc. |
|
Definition at line 8 of file dotty_scanner.cc. |
|
Definition at line 9 of file dotty_scanner.cc. |
|
Definition at line 236 of file dotty_scanner.cc. |
|
Value: if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); Definition at line 483 of file dotty_scanner.cc. |
|
Definition at line 373 of file dotty_scanner.cc. |
|
Definition at line 387 of file dotty_scanner.cc. |
|
Definition at line 246 of file dotty_scanner.cc. |
|
Definition at line 92 of file dotty_scanner.cc. |
|
Definition at line 446 of file dotty_scanner.cc. |
|
Definition at line 445 of file dotty_scanner.cc. |
|
Definition at line 447 of file dotty_scanner.cc. |
|
Definition at line 66 of file dotty_scanner.cc. |
|
Definition at line 285 of file dotty_scanner.cc. |
|
Definition at line 62 of file dotty_scanner.cc. |
|
Definition at line 467 of file dotty_scanner.cc. |
|
Definition at line 374 of file dotty_scanner.cc. |
|
Definition at line 538 of file dotty_scanner.cc. |
|
Definition at line 73 of file dotty_scanner.cc. |
|
Value: { \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
Definition at line 255 of file dotty_scanner.cc. |
|
Value: { \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
Definition at line 248 of file dotty_scanner.cc. |
|
Definition at line 85 of file dotty_scanner.cc. |
|
Definition at line 511 of file dotty_scanner.cc. |
|
Definition at line 89 of file dotty_scanner.cc. |
|
Definition at line 55 of file dotty_scanner.cc. |
|
Value: do \ { \ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) Definition at line 124 of file dotty_scanner.cc. |
|
Value: do \ { \ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; \ } \ while ( 0 ) Definition at line 124 of file dotty_scanner.cc. |
|
Definition at line 372 of file dotty_scanner.cc. |
|
Definition at line 86 of file dotty_scanner.cc. |
|
Definition at line 506 of file dotty_scanner.cc. |
|
Definition at line 268 of file dotty_scanner.cc. |
|
Definition at line 99 of file dotty_scanner.cc. |
|
Definition at line 264 of file dotty_scanner.cc. |
|
Definition at line 141 of file dotty_scanner.cc. |
|
Definition at line 266 of file dotty_scanner.cc. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1240 of file dotty_scanner.cc. |
|
Definition at line 1353 of file dotty_scanner.cc. Referenced by serial_out_str(). |
|
Definition at line 1521 of file dotty_scanner.cc. Referenced by trt_malloc(). |
|
Initial value: { 0, 0, 0, 9, 7, 4, 3, 7, 2, 1, 0, 5, 2, 0, 1, 0, 0, 5, 0, 2, 1, 1, 6, 0 } Definition at line 287 of file dotty_scanner.cc. |
|
Initial value: { 0, 0, 0, 42, 43, 43, 43, 7, 7, 0, 37, 0, 0, 32, 33, 34, 20, 0, 8, 5, 6, 0, 43, 43, 13, 19, 25, 29, 31 } Definition at line 331 of file dotty_scanner.cc. |
|
Definition at line 1012 of file dotty_scanner.cc. |
|
Definition at line 219 of file dotty_scanner.cc. |
|
Initial value: { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 20, 19, 7, 8, 18, 8, 24, 24, 25, 25, 25, 25, 25, 25, 26, 16, 26, 26, 26, 26, 27, 27, 27, 28, 28, 28, 15, 14, 13, 10, 3, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23 } Definition at line 355 of file dotty_scanner.cc. |
|
Definition at line 201 of file dotty_scanner.cc. |
|
Initial value: { 0, 23, 1, 23, 23, 23, 23, 23, 23, 24, 25, 26, 8, 27, 28, 25, 25, 26, 23, 23, 28, 20, 23, 0, 23, 23, 23, 23, 23 } Definition at line 338 of file dotty_scanner.cc. |
|
Definition at line 226 of file dotty_scanner.cc. |
|
Definition at line 294 of file dotty_scanner.cc. |
|
Definition at line 211 of file dotty_scanner.cc. |
|
Definition at line 220 of file dotty_scanner.cc. |
|
Definition at line 366 of file dotty_scanner.cc. |
|
Definition at line 365 of file dotty_scanner.cc. |
|
Initial value: { 0, 1, 1, 2, 1, 3, 4, 1, 5, 6, 6 } Definition at line 326 of file dotty_scanner.cc. |
|
Definition at line 213 of file dotty_scanner.cc. |
|
Initial value: { 0, 4, 5, 6, 4, 4, 4, 7, 8, 9, 9, 10, 20, 19, 11, 12, 19, 13, 14, 14, 15, 15, 15, 15, 15, 15, 17, 22, 17, 17, 17, 17, 18, 18, 18, 21, 21, 21, 16, 20, 19, 16, 23, 3, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23 } Definition at line 345 of file dotty_scanner.cc. |
|
Definition at line 221 of file dotty_scanner.cc. |
|
Definition at line 394 of file dotty_scanner.cc. Referenced by readDottyConfiguration(), and yyline(). |
|
Definition at line 265 of file dotty_scanner.cc. |
|
Definition at line 216 of file dotty_scanner.cc. |
|
Definition at line 395 of file dotty_scanner.cc. Referenced by readDottyConfiguration(), and yyline(). |
|
Definition at line 265 of file dotty_scanner.cc. |
|
Definition at line 375 of file dotty_scanner.cc. |