Graphviz 13.0.0~dev.20250608.0154
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <grammar.h>
#include <cgraph/cghdr.h>
#include <stdbool.h>
#include <stddef.h>
#include <util/agxbuf.h>
#include <util/gv_ctype.h>
#include <util/startswith.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | yyguts_t |
Macros | |
#define | YY_INT_ALIGNED short int |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 6 |
#define | YY_FLEX_SUBMINOR_VERSION 4 |
#define | yy_create_buffer aag_create_buffer |
#define | yy_delete_buffer aag_delete_buffer |
#define | yy_scan_buffer aag_scan_buffer |
#define | yy_scan_string aag_scan_string |
#define | yy_scan_bytes aag_scan_bytes |
#define | yy_init_buffer aag_init_buffer |
#define | yy_flush_buffer aag_flush_buffer |
#define | yy_load_buffer_state aag_load_buffer_state |
#define | yy_switch_to_buffer aag_switch_to_buffer |
#define | yypush_buffer_state aagpush_buffer_state |
#define | yypop_buffer_state aagpop_buffer_state |
#define | yyensure_buffer_stack aagensure_buffer_stack |
#define | yylex aaglex |
#define | yyrestart aagrestart |
#define | yylex_init aaglex_init |
#define | yylex_init_extra aaglex_init_extra |
#define | yylex_destroy aaglex_destroy |
#define | yyget_debug aagget_debug |
#define | yyset_debug aagset_debug |
#define | yyget_extra aagget_extra |
#define | yyset_extra aagset_extra |
#define | yyget_in aagget_in |
#define | yyset_in aagset_in |
#define | yyget_out aagget_out |
#define | yyset_out aagset_out |
#define | yyget_leng aagget_leng |
#define | yyget_text aagget_text |
#define | yyget_lineno aagget_lineno |
#define | yyset_lineno aagset_lineno |
#define | yyget_column aagget_column |
#define | yyset_column aagset_column |
#define | yywrap aagwrap |
#define | yyget_lval aagget_lval |
#define | yyset_lval aagset_lval |
#define | yyalloc aagalloc |
#define | yyrealloc aagrealloc |
#define | yyfree aagfree |
#define | FLEXINT_H |
#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 | SIZE_MAX (~(size_t)0) |
#define | yyconst const |
#define | yynoreturn |
#define | YY_NULL 0 |
#define | YY_SC_TO_UI(c) ((YY_CHAR) (c)) |
#define | YY_TYPEDEF_YY_SCANNER_T |
#define | yyin yyg->yyin_r |
#define | yyout yyg->yyout_r |
#define | yyextra yyg->yyextra_r |
#define | yyleng yyg->yyleng_r |
#define | yytext yyg->yytext_r |
#define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define | yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define | yy_flex_debug yyg->yy_flex_debug_r |
#define | BEGIN yyg->yy_start = 1 + 2 * |
#define | YY_START ((yyg->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 , yyscanner ) |
#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 | YY_TYPEDEF_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_SIZE_T |
#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 | YY_LINENO_REWIND_TO(ptr) |
#define | yyless(n) |
#define | unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define | YY_STRUCT_YY_BUFFER_STATE |
#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 yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define | YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) |
#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_LVALUE->yy_at_bol) |
#define | yytext_ptr yytext_r |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 35 |
#define | YY_END_OF_BUFFER 36 |
#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 | YY_NO_INPUT 1 |
#define | GRAPH_EOF_TOKEN '@' /* lex class must be defined below */ |
#define | YYSTYPE AAGSTYPE |
#define | isatty(x) gv_isatty_suppression |
#define | YY_INPUT(buf, result, max_size) |
#define | INITIAL 0 |
#define | comment 1 |
#define | qstring 2 |
#define | hstring 3 |
#define | YY_EXTRA_TYPE struct aagextra_s * |
#define | yylval yyg->yylval_r |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) |
#define | yyterminate() return YY_NULL |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DECL |
#define | YY_USER_ACTION |
#define | YY_BREAK /*LINTED*/break; |
#define | YY_RULE_SETUP |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
#define | YYTABLES_NAME "yytables" |
#define | YY_CALL_ONLY_ARG aagscan_t yyscanner |
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 void * | yyscan_t |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef flex_uint8_t | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | yyrestart (FILE *input_file, yyscan_t yyscanner) |
void | yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
YY_BUFFER_STATE | yy_create_buffer (FILE *file, int size, yyscan_t yyscanner) |
void | yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
void | yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
void | yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
void | yypop_buffer_state (yyscan_t yyscanner) |
static void | yyensure_buffer_stack (yyscan_t yyscanner) |
static void | yy_load_buffer_state (yyscan_t yyscanner) |
static void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner) |
YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner) |
YY_BUFFER_STATE | yy_scan_string (const char *yy_str, yyscan_t yyscanner) |
YY_BUFFER_STATE | yy_scan_bytes (const char *bytes, int len, yyscan_t yyscanner) |
void * | yyalloc (yy_size_t, yyscan_t yyscanner) |
void * | yyrealloc (void *, yy_size_t, yyscan_t yyscanner) |
void | yyfree (void *, yyscan_t yyscanner) |
static yy_state_type | yy_get_previous_state (yyscan_t yyscanner) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner) |
static int | yy_get_next_buffer (yyscan_t yyscanner) |
static void yynoreturn | yy_fatal_error (const char *msg, yyscan_t yyscanner) |
static int | read_input (aagscan_t yyscanner, char *buf, int max_size) |
static void | beginstr (aagscan_t yyscanner) |
static void | addstr (aagscan_t yyscanner, char *src) |
static void | endstr (aagscan_t yyscanner) |
static void | endstr_html (aagscan_t yyscanner) |
static void | storeFileName (aagscan_t yyscanner, const char *fname, size_t len) |
static void | ppDirective (aagscan_t yyscanner) |
static bool | twoDots (aagscan_t yyscanner) |
static int | chkNum (aagscan_t yyscanner) |
static int | yy_init_globals (yyscan_t yyscanner) |
int | yylex_init (yyscan_t *scanner) |
int | yylex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner) |
int | yylex_destroy (yyscan_t yyscanner) |
int | yyget_debug (yyscan_t yyscanner) |
void | yyset_debug (int debug_flag, yyscan_t yyscanner) |
YY_EXTRA_TYPE | yyget_extra (yyscan_t yyscanner) |
void | yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner) |
FILE * | yyget_in (yyscan_t yyscanner) |
void | yyset_in (FILE *_in_str, yyscan_t yyscanner) |
FILE * | yyget_out (yyscan_t yyscanner) |
void | yyset_out (FILE *_out_str, yyscan_t yyscanner) |
int | yyget_leng (yyscan_t yyscanner) |
char * | yyget_text (yyscan_t yyscanner) |
int | yyget_lineno (yyscan_t yyscanner) |
void | yyset_lineno (int _line_number, yyscan_t yyscanner) |
int | yyget_column (yyscan_t yyscanner) |
void | yyset_column (int _column_no, yyscan_t yyscanner) |
YYSTYPE * | yyget_lval (yyscan_t yyscanner) |
void | yyset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner) |
int | yywrap (yyscan_t yyscanner) |
static void | yyunput (int c, char *buf_ptr, yyscan_t yyscanner) |
int | yylex (YYSTYPE *yylval_param, yyscan_t yyscanner) |
if (!yyg->yy_init) | |
Variables | |
static const flex_int16_t | yy_accept [93] |
static const YY_CHAR | yy_ec [256] |
static const YY_CHAR | yy_meta [49] |
static const flex_int16_t | yy_base [105] |
static const flex_int16_t | yy_def [105] |
static const flex_int16_t | yy_nxt [268] |
static const flex_int16_t | yy_chk [268] |
int | gv_isatty_suppression |
YY_DECL | |
char * | yy_cp |
char * | yy_bp |
int | yy_act |
struct yyguts_t * | yyg = (struct yyguts_t*)yyscanner |
yylval = yylval_param | |
#define GRAPH_EOF_TOKEN '@' /* lex class must be defined below */ |
#define isatty | ( | x | ) | gv_isatty_suppression |
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define YY_CALL_ONLY_ARG aagscan_t yyscanner |
#define YY_CURRENT_BUFFER |
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define YY_DECL |
#define YY_DO_BEFORE_ACTION |
#define YY_EXIT_FAILURE 2 |
#define YY_EXTRA_TYPE struct aagextra_s * |
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) |
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
#define yy_new_buffer yy_create_buffer |
#define YY_RULE_SETUP |
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#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) |
#define yyget_extra aagget_extra |
#define yyless | ( | n | ) |
#define yyless | ( | n | ) |
#define yylex_destroy aaglex_destroy |
#define yylex_init_extra aaglex_init_extra |
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define YYTABLES_NAME "yytables" |
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 flex_uint8_t YY_CHAR |
typedef int yy_state_type |
|
static |
|
static |
|
static |
|
static |
|
static |
if | ( | !yyg-> | yy_init | ) |
Definition at line 1078 of file scan.c.
References YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_init, yy_load_buffer_state, yyguts_t::yy_start, yyensure_buffer_stack, yyg, yyin, and yyout.
|
static |
|
static |
|
static |
|
static |
YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
int | size, | ||
yyscan_t | yyscanner | ||
) |
void yy_delete_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
|
static |
void yy_flush_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
yy_size_t | size, | ||
yyscan_t | yyscanner | ||
) |
YY_BUFFER_STATE yy_scan_bytes | ( | const char * | bytes, |
int | len, | ||
yyscan_t | yyscanner | ||
) |
YY_BUFFER_STATE yy_scan_string | ( | const char * | yy_str, |
yyscan_t | yyscanner | ||
) |
void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
|
static |
|
static |
void yyfree | ( | void * | , |
yyscan_t | yyscanner | ||
) |
int yyget_column | ( | yyscan_t | yyscanner | ) |
int yyget_debug | ( | yyscan_t | yyscanner | ) |
YY_EXTRA_TYPE yyget_extra | ( | yyscan_t | yyscanner | ) |
FILE * yyget_in | ( | yyscan_t | yyscanner | ) |
int yyget_leng | ( | yyscan_t | yyscanner | ) |
int yyget_lineno | ( | yyscan_t | yyscanner | ) |
FILE * yyget_out | ( | yyscan_t | yyscanner | ) |
char * yyget_text | ( | yyscan_t | yyscanner | ) |
int yylex_destroy | ( | yyscan_t | yyscanner | ) |
int yylex_init | ( | yyscan_t * | scanner | ) |
int yylex_init_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t * | scanner | ||
) |
void yypop_buffer_state | ( | yyscan_t | yyscanner | ) |
void yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
void yyrestart | ( | FILE * | input_file, |
yyscan_t | yyscanner | ||
) |
void yyset_column | ( | int | _column_no, |
yyscan_t | yyscanner | ||
) |
void yyset_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
void yyset_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t | yyscanner | ||
) |
void yyset_in | ( | FILE * | _in_str, |
yyscan_t | yyscanner | ||
) |
void yyset_lineno | ( | int | _line_number, |
yyscan_t | yyscanner | ||
) |
void yyset_out | ( | FILE * | _out_str, |
yyscan_t | yyscanner | ||
) |
|
static |
|
extern |
|
static |
|
static |
|
static |
YY_DECL |
The main scanner function which does all the work.
|
static |
|
static |
|
static |
Definition at line 1074 of file scan.c.
Referenced by aagerror(), aglexbad(), aglexeof(), and if().