|
Graphviz 14.0.3~dev.20251028.0232
|
#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include <assert.h>#include <gml2gv.h>#include <gmlparse.h>#include <util/alloc.h>#include <util/agxbuf.h>#include "config.h"#include <unistd.h>Go to the source code of this file.
Data Structures | |
| struct | yy_buffer_state |
| struct | yy_trans_info |
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 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) |
| void | yy_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
| YY_BUFFER_STATE | yy_create_buffer (FILE *file, int size) |
| void | yy_delete_buffer (YY_BUFFER_STATE b) |
| void | yy_flush_buffer (YY_BUFFER_STATE b) |
| void | yypush_buffer_state (YY_BUFFER_STATE new_buffer) |
| static void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
| YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size) |
| YY_BUFFER_STATE | yy_scan_string (const char *yy_str) |
| YY_BUFFER_STATE | yy_scan_bytes (const char *bytes, int len) |
| void * | yyalloc (yy_size_t) |
| void * | yyrealloc (void *, yy_size_t) |
| void | yyfree (void *) |
| static yy_state_type | yy_get_previous_state (void) |
| static yy_state_type | yy_try_NUL_trans (yy_state_type current_state) |
| static int | yy_get_next_buffer (void) |
| static void yynoreturn | yy_fatal_error (const char *msg) |
| void | initgmlscan (FILE *ifile) |
| static void | beginstr (void) |
| static void | addstr (const char *src) |
| static void | endstr (void) |
| static int | yy_init_globals (void) |
| void | yyset_debug (int debug_flag) |
| void | yyset_extra (YY_EXTRA_TYPE user_defined) |
| void | yyset_in (FILE *_in_str) |
| void | yyset_out (FILE *_out_str) |
| void | yyset_lineno (int _line_number) |
| static void | yyunput (int c, char *buf_ptr) |
| if (!(yy_init)) | |
Variables | |
| int | yyleng |
| FILE * | yyin = NULL |
| FILE * | yyout = NULL |
| static size_t | yy_buffer_stack_top = 0 |
| static size_t | yy_buffer_stack_max = 0 |
| static YY_BUFFER_STATE * | yy_buffer_stack = NULL |
| static char | yy_hold_char |
| static int | yy_n_chars |
| static char * | yy_c_buf_p = NULL |
| static int | yy_init = 0 |
| static int | yy_start = 0 |
| static int | yy_did_buffer_switch_on_eof |
| int | yylineno = 1 |
| char * | yytext |
| static const flex_int16_t | yy_accept [143] |
| static const YY_CHAR | yy_ec [256] |
| static const YY_CHAR | yy_meta [55] |
| static const flex_int16_t | yy_base [147] |
| static const flex_int16_t | yy_def [147] |
| static const flex_int16_t | yy_nxt [356] |
| static const flex_int16_t | yy_chk [356] |
| static yy_state_type | yy_last_accepting_state |
| static char * | yy_last_accepting_cpos |
| int | yy_flex_debug = 0 |
| static int | line_num = 1 |
| static int | errors |
| static FILE * | Ifile |
| static agxbuf | Sbuf |
| buffer for arbitrary length strings | |
| YY_DECL | |
| char * | yy_cp |
| char * | yy_bp |
| int | yy_act |
| #define GRAPH_EOF_TOKEN '@' /* lex class must be defined below */ |
| #define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| #define YY_CALL_ONLY_ARG void |
| #define YY_CURRENT_BUFFER |
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define YY_DO_BEFORE_ACTION |
| #define YY_EXIT_FAILURE 2 |
| #define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
| #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) |
| #define YY_INPUT | ( | buf, | |
| result, | |||
| max_size | |||
| ) |
| static void yy_load_buffer_state gml_load_buffer_state |
| #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) |
| static void yyensure_buffer_stack gmlensure_buffer_stack |
| YY_EXTRA_TYPE yyget_extra gmlget_extra |
| #define yyless | ( | n | ) |
| #define yyless | ( | n | ) |
| #define YYTABLES_NAME "yytables" |
| char * yytext gmltext |
Definition at line 28 of file gmlscan.c.
Referenced by gmlerror().
| 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 |
Definition at line 876 of file gmlscan.c.
References agxbdisown(), gmllval, Sbuf, and GMLSTYPE::str.
| if | ( | ! | yy_init | ) |
Definition at line 1077 of file gmlscan.c.
References YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init, yy_load_buffer_state, yy_start, yyensure_buffer_stack, yyin, and yyout.
| YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
| int | size | ||
| ) |
| void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
|
static |
| void yy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
|
static |
|
static |
|
static |
|
static |
| YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
| yy_size_t | size | ||
| ) |
| YY_BUFFER_STATE yy_scan_bytes | ( | const char * | bytes, |
| int | len | ||
| ) |
| YY_BUFFER_STATE yy_scan_string | ( | const char * | yy_str | ) |
| void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
|
static |
| void yyfree | ( | void * | ) |
| void yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
| void * yyrealloc | ( | void * | , |
| yy_size_t | |||
| ) |
| void yyrestart | ( | FILE * | input_file | ) |
| void yyset_debug | ( | int | debug_flag | ) |
| void yyset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
| void yyset_in | ( | FILE * | _in_str | ) |
| void yyset_lineno | ( | int | _line_number | ) |
| void yyset_out | ( | FILE * | _out_str | ) |
|
static |
|
static |
Definition at line 847 of file gmlscan.c.
Referenced by gml_to_gv(), gml_to_gv(), initgmlscan(), and setErrorErrors().
|
static |
Definition at line 848 of file gmlscan.c.
Referenced by initgmlscan().
|
static |
Definition at line 846 of file gmlscan.c.
Referenced by initgmlscan().
|
static |
Definition at line 866 of file gmlscan.c.
Referenced by addstr(), beginstr(), and endstr().
|
static |
|
static |
|
static |
|
static |
|
static |
| YY_DECL |
The main scanner function which does all the work.
|
static |
|
static |
|
static |
|
static |