Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gmlscan.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <cgraph/alloc.h>
#include <gml2gv.h>
#include <gmlparse.h>
#include "config.h"
#include <unistd.h>
Include dependency graph for gmlscan.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   gml_create_buffer
 
#define yy_delete_buffer   gml_delete_buffer
 
#define yy_scan_buffer   gml_scan_buffer
 
#define yy_scan_string   gml_scan_string
 
#define yy_scan_bytes   gml_scan_bytes
 
#define yy_init_buffer   gml_init_buffer
 
#define yy_flush_buffer   gml_flush_buffer
 
#define yy_load_buffer_state   gml_load_buffer_state
 
#define yy_switch_to_buffer   gml_switch_to_buffer
 
#define yypush_buffer_state   gmlpush_buffer_state
 
#define yypop_buffer_state   gmlpop_buffer_state
 
#define yyensure_buffer_stack   gmlensure_buffer_stack
 
#define yy_flex_debug   gml_flex_debug
 
#define yyin   gmlin
 
#define yyleng   gmlleng
 
#define yylex   gmllex
 
#define yylineno   gmllineno
 
#define yyout   gmlout
 
#define yyrestart   gmlrestart
 
#define yytext   gmltext
 
#define yywrap   gmlwrap
 
#define yyalloc   gmlalloc
 
#define yyrealloc   gmlrealloc
 
#define yyfree   gmlfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define gml_create_buffer_ALREADY_DEFINED
 
#define gml_delete_buffer_ALREADY_DEFINED
 
#define gml_scan_buffer_ALREADY_DEFINED
 
#define gml_scan_string_ALREADY_DEFINED
 
#define gml_scan_bytes_ALREADY_DEFINED
 
#define gml_init_buffer_ALREADY_DEFINED
 
#define gml_flush_buffer_ALREADY_DEFINED
 
#define gml_load_buffer_state_ALREADY_DEFINED
 
#define gml_switch_to_buffer_ALREADY_DEFINED
 
#define gmlpush_buffer_state_ALREADY_DEFINED
 
#define gmlpop_buffer_state_ALREADY_DEFINED
 
#define gmlensure_buffer_stack_ALREADY_DEFINED
 
#define gmllex_ALREADY_DEFINED
 
#define gmlrestart_ALREADY_DEFINED
 
#define yylex_init   gmllex_init
 
#define yylex_init_extra   gmllex_init_extra
 
#define yylex_destroy   gmllex_destroy
 
#define yyget_debug   gmlget_debug
 
#define yyset_debug   gmlset_debug
 
#define yyget_extra   gmlget_extra
 
#define yyset_extra   gmlset_extra
 
#define yyget_in   gmlget_in
 
#define yyset_in   gmlset_in
 
#define yyget_out   gmlget_out
 
#define yyset_out   gmlset_out
 
#define yyget_leng   gmlget_leng
 
#define yyget_text   gmlget_text
 
#define yyget_lineno   gmlget_lineno
 
#define yyset_lineno   gmlset_lineno
 
#define gmlwrap_ALREADY_DEFINED
 
#define gmlalloc_ALREADY_DEFINED
 
#define gmlrealloc_ALREADY_DEFINED
 
#define gmlfree_ALREADY_DEFINED
 
#define gmltext_ALREADY_DEFINED
 
#define gmlleng_ALREADY_DEFINED
 
#define gmlin_ALREADY_DEFINED
 
#define gmlout_ALREADY_DEFINED
 
#define gml_flex_debug_ALREADY_DEFINED
 
#define gmllineno_ALREADY_DEFINED
 
#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 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 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, (yytext_ptr) )
 
#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   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#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_LVALUE->yy_at_bol)
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   39
 
#define YY_END_OF_BUFFER   40
 
#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 YY_INPUT(buf, result, max_size)
 
#define INITIAL   0
 
#define qstring   1
 
#define YY_EXTRA_TYPE   void *
 
#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 )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#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   void
 

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_stateYY_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_STATEyy_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 char * Sbuf
 
 YY_DECL
 
char * yy_cp
 
char * yy_bp
 
int yy_act
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 377 of file gmlscan.c.

◆ ECHO

#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)

Definition at line 993 of file gmlscan.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 421 of file gmlscan.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 422 of file gmlscan.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 423 of file gmlscan.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 34 of file gmlscan.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 289 of file gmlscan.c.

◆ gml_create_buffer_ALREADY_DEFINED

#define gml_create_buffer_ALREADY_DEFINED

Definition at line 43 of file gmlscan.c.

◆ gml_delete_buffer_ALREADY_DEFINED

#define gml_delete_buffer_ALREADY_DEFINED

Definition at line 49 of file gmlscan.c.

◆ gml_flex_debug_ALREADY_DEFINED

#define gml_flex_debug_ALREADY_DEFINED

Definition at line 265 of file gmlscan.c.

◆ gml_flush_buffer_ALREADY_DEFINED

#define gml_flush_buffer_ALREADY_DEFINED

Definition at line 79 of file gmlscan.c.

◆ gml_init_buffer_ALREADY_DEFINED

#define gml_init_buffer_ALREADY_DEFINED

Definition at line 73 of file gmlscan.c.

◆ gml_load_buffer_state_ALREADY_DEFINED

#define gml_load_buffer_state_ALREADY_DEFINED

Definition at line 85 of file gmlscan.c.

◆ gml_scan_buffer_ALREADY_DEFINED

#define gml_scan_buffer_ALREADY_DEFINED

Definition at line 55 of file gmlscan.c.

◆ gml_scan_bytes_ALREADY_DEFINED

#define gml_scan_bytes_ALREADY_DEFINED

Definition at line 67 of file gmlscan.c.

◆ gml_scan_string_ALREADY_DEFINED

#define gml_scan_string_ALREADY_DEFINED

Definition at line 61 of file gmlscan.c.

◆ gml_switch_to_buffer_ALREADY_DEFINED

#define gml_switch_to_buffer_ALREADY_DEFINED

Definition at line 91 of file gmlscan.c.

◆ gmlalloc_ALREADY_DEFINED

#define gmlalloc_ALREADY_DEFINED

Definition at line 223 of file gmlscan.c.

◆ gmlensure_buffer_stack_ALREADY_DEFINED

#define gmlensure_buffer_stack_ALREADY_DEFINED

Definition at line 109 of file gmlscan.c.

◆ gmlfree_ALREADY_DEFINED

#define gmlfree_ALREADY_DEFINED

Definition at line 235 of file gmlscan.c.

◆ gmlin_ALREADY_DEFINED

#define gmlin_ALREADY_DEFINED

Definition at line 253 of file gmlscan.c.

◆ gmlleng_ALREADY_DEFINED

#define gmlleng_ALREADY_DEFINED

Definition at line 247 of file gmlscan.c.

◆ gmllex_ALREADY_DEFINED

#define gmllex_ALREADY_DEFINED

Definition at line 115 of file gmlscan.c.

◆ gmllineno_ALREADY_DEFINED

#define gmllineno_ALREADY_DEFINED

Definition at line 271 of file gmlscan.c.

◆ gmlout_ALREADY_DEFINED

#define gmlout_ALREADY_DEFINED

Definition at line 259 of file gmlscan.c.

◆ gmlpop_buffer_state_ALREADY_DEFINED

#define gmlpop_buffer_state_ALREADY_DEFINED

Definition at line 103 of file gmlscan.c.

◆ gmlpush_buffer_state_ALREADY_DEFINED

#define gmlpush_buffer_state_ALREADY_DEFINED

Definition at line 97 of file gmlscan.c.

◆ gmlrealloc_ALREADY_DEFINED

#define gmlrealloc_ALREADY_DEFINED

Definition at line 229 of file gmlscan.c.

◆ gmlrestart_ALREADY_DEFINED

#define gmlrestart_ALREADY_DEFINED

Definition at line 121 of file gmlscan.c.

◆ gmltext_ALREADY_DEFINED

#define gmltext_ALREADY_DEFINED

Definition at line 241 of file gmlscan.c.

◆ gmlwrap_ALREADY_DEFINED

#define gmlwrap_ALREADY_DEFINED

Definition at line 217 of file gmlscan.c.

◆ GRAPH_EOF_TOKEN

#define GRAPH_EOF_TOKEN   '@' /* lex class must be defined below */

Definition at line 843 of file gmlscan.c.

◆ INITIAL

#define INITIAL   0

Definition at line 897 of file gmlscan.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 331 of file gmlscan.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 322 of file gmlscan.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 334 of file gmlscan.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 325 of file gmlscan.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 328 of file gmlscan.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 319 of file gmlscan.c.

◆ qstring

#define qstring   1

Definition at line 898 of file gmlscan.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 820 of file gmlscan.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 347 of file gmlscan.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 340 of file gmlscan.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 343 of file gmlscan.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 337 of file gmlscan.c.

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 441 of file gmlscan.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 582 of file gmlscan.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1072 of file gmlscan.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 399 of file gmlscan.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 503 of file gmlscan.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 491 of file gmlscan.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 492 of file gmlscan.c.

◆ YY_CALL_ONLY_ARG

#define YY_CALL_ONLY_ARG   void

◆ yy_create_buffer

#define yy_create_buffer   gml_create_buffer

Definition at line 9 of file gmlscan.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Definition gmlscan.c:511
static size_t yy_buffer_stack_top
Definition gmlscan.c:509
node NULL
Definition grammar.y:149

Definition at line 519 of file gmlscan.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 525 of file gmlscan.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 1060 of file gmlscan.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 1056 of file gmlscan.c.

◆ yy_delete_buffer

#define yy_delete_buffer   gml_delete_buffer

Definition at line 10 of file gmlscan.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
static char yy_hold_char
Definition gmlscan.c:528
#define yyleng
Definition gmlscan.c:23
char * yy_cp
Definition gmlscan.c:1086
#define yytext_ptr
Definition gmlscan.c:598
char * yy_bp
Definition gmlscan.c:1086
static char * yy_c_buf_p
Definition gmlscan.c:533

Definition at line 608 of file gmlscan.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   40

Definition at line 615 of file gmlscan.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 388 of file gmlscan.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 909 of file gmlscan.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1047 of file gmlscan.c.

◆ yy_flex_debug

int yy_flex_debug   gml_flex_debug

Definition at line 21 of file gmlscan.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 35 of file gmlscan.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 36 of file gmlscan.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 37 of file gmlscan.c.

◆ yy_flush_buffer

#define yy_flush_buffer   gml_flush_buffer

Definition at line 15 of file gmlscan.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 553 of file gmlscan.c.

◆ yy_init_buffer

#define yy_init_buffer   gml_init_buffer

Definition at line 14 of file gmlscan.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ((result = fread(buf, 1, max_size, Ifile)) < 0) \
YY_FATAL_ERROR( "input in flex scanner failed" )
static FILE * Ifile
Definition gmlscan.c:847

Definition at line 859 of file gmlscan.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 5 of file gmlscan.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 425 of file gmlscan.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 426 of file gmlscan.c.

◆ yy_load_buffer_state

static void yy_load_buffer_state   gml_load_buffer_state

Definition at line 16 of file gmlscan.c.

Referenced by if().

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 822 of file gmlscan.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 563 of file gmlscan.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 387 of file gmlscan.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 834 of file gmlscan.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 366 of file gmlscan.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   39

Definition at line 614 of file gmlscan.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 984 of file gmlscan.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 823 of file gmlscan.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if ( yyleng > 0 ) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
#define yytext
Definition gmlscan.c:28
#define YY_USER_ACTION
Definition gmlscan.c:1067
#define YY_CURRENT_BUFFER_LVALUE
Definition gmlscan.c:525

Definition at line 1075 of file gmlscan.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR) (c))

Definition at line 371 of file gmlscan.c.

◆ yy_scan_buffer

#define yy_scan_buffer   gml_scan_buffer

Definition at line 11 of file gmlscan.c.

◆ yy_scan_bytes

#define yy_scan_bytes   gml_scan_bytes

Definition at line 13 of file gmlscan.c.

◆ yy_scan_string

#define yy_scan_string   gml_scan_string

Definition at line 12 of file gmlscan.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define yyin
Definition gmlscan.c:22
#define YY_CURRENT_BUFFER
Definition gmlscan.c:519
#define YY_BUF_SIZE
Definition gmlscan.c:399

Definition at line 573 of file gmlscan.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

Definition at line 564 of file gmlscan.c.

◆ YY_START

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 382 of file gmlscan.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1042 of file gmlscan.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 405 of file gmlscan.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 385 of file gmlscan.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 444 of file gmlscan.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   gml_switch_to_buffer

Definition at line 17 of file gmlscan.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 408 of file gmlscan.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 413 of file gmlscan.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1067 of file gmlscan.c.

◆ yyalloc

#define yyalloc   gmlalloc

Definition at line 30 of file gmlscan.c.

◆ yyconst

#define yyconst   const

Definition at line 357 of file gmlscan.c.

◆ yyensure_buffer_stack

static void yyensure_buffer_stack   gmlensure_buffer_stack

Definition at line 20 of file gmlscan.c.

Referenced by if().

◆ yyfree

#define yyfree   gmlfree

Definition at line 32 of file gmlscan.c.

◆ yyget_debug

int yyget_debug   gmlget_debug

Definition at line 147 of file gmlscan.c.

◆ yyget_extra

YY_EXTRA_TYPE yyget_extra   gmlget_extra

Definition at line 159 of file gmlscan.c.

◆ yyget_in

FILE * yyget_in   gmlget_in

Definition at line 171 of file gmlscan.c.

◆ yyget_leng

int yyget_leng   gmlget_leng

Definition at line 195 of file gmlscan.c.

◆ yyget_lineno

int yyget_lineno   gmlget_lineno

Definition at line 207 of file gmlscan.c.

◆ yyget_out

FILE * yyget_out   gmlget_out

Definition at line 183 of file gmlscan.c.

◆ yyget_text

char * yyget_text   gmlget_text

Definition at line 201 of file gmlscan.c.

◆ yyin

FILE * yyin   gmlin

Definition at line 22 of file gmlscan.c.

Referenced by if().

◆ yyleng

int yyleng   gmlleng

Definition at line 23 of file gmlscan.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define YY_RESTORE_YY_MORE_OFFSET
Definition gmlscan.c:823
#define YY_MORE_ADJ
Definition gmlscan.c:822
#define YY_DO_BEFORE_ACTION
Definition gmlscan.c:608

Definition at line 429 of file gmlscan.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yytext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )

Definition at line 429 of file gmlscan.c.

◆ yylex

#define yylex (   void)    gmllex

Definition at line 24 of file gmlscan.c.

◆ yylex_destroy

int yylex_destroy   gmllex_destroy

Definition at line 141 of file gmlscan.c.

◆ yylex_init

#define yylex_init   gmllex_init

Definition at line 129 of file gmlscan.c.

◆ yylex_init_extra

#define yylex_init_extra   gmllex_init_extra

Definition at line 135 of file gmlscan.c.

◆ yylineno

int yylineno   gmllineno

Definition at line 25 of file gmlscan.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 821 of file gmlscan.c.

◆ yynoreturn

#define yynoreturn

Definition at line 362 of file gmlscan.c.

◆ yyout

FILE * yyout   gmlout

Definition at line 26 of file gmlscan.c.

Referenced by if().

◆ yypop_buffer_state

void yypop_buffer_state   gmlpop_buffer_state

Definition at line 19 of file gmlscan.c.

◆ yypush_buffer_state

#define yypush_buffer_state   gmlpush_buffer_state

Definition at line 18 of file gmlscan.c.

◆ yyrealloc

#define yyrealloc   gmlrealloc

Definition at line 31 of file gmlscan.c.

◆ yyrestart

#define yyrestart   gmlrestart

Definition at line 27 of file gmlscan.c.

◆ yyset_debug

#define yyset_debug   gmlset_debug

Definition at line 153 of file gmlscan.c.

◆ yyset_extra

#define yyset_extra   gmlset_extra

Definition at line 165 of file gmlscan.c.

◆ yyset_in

#define yyset_in   gmlset_in

Definition at line 177 of file gmlscan.c.

◆ yyset_lineno

#define yyset_lineno   gmlset_lineno

Definition at line 213 of file gmlscan.c.

◆ yyset_out

#define yyset_out   gmlset_out

Definition at line 189 of file gmlscan.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 383 of file gmlscan.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1037 of file gmlscan.c.

◆ yytext

char * yytext   gmltext

Definition at line 28 of file gmlscan.c.

Referenced by gmlerror().

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 598 of file gmlscan.c.

◆ yywrap

int yywrap   gmlwrap

Definition at line 29 of file gmlscan.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 311 of file gmlscan.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 312 of file gmlscan.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 310 of file gmlscan.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 314 of file gmlscan.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 315 of file gmlscan.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 313 of file gmlscan.c.

◆ YY_BUFFER_STATE

Definition at line 409 of file gmlscan.c.

◆ YY_CHAR

Definition at line 585 of file gmlscan.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 414 of file gmlscan.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 589 of file gmlscan.c.

Function Documentation

◆ addstr()

static void addstr ( const char *  src)
static

Definition at line 872 of file gmlscan.c.

References gv_realloc(), NULL, and Sbuf.

Here is the call graph for this function:

◆ beginstr()

static void beginstr ( void  )
static

Definition at line 867 of file gmlscan.c.

References gv_strdup(), NULL, and Sbuf.

Here is the call graph for this function:

◆ endstr()

static void endstr ( void  )
static

Definition at line 885 of file gmlscan.c.

References gmllval, NULL, Sbuf, and GMLSTYPE::str.

◆ if()

◆ initgmlscan()

void initgmlscan ( FILE *  ifile)

Definition at line 849 of file gmlscan.c.

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char *  msg)
static

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b)

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

◆ yy_init_buffer()

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size 
)

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char *  bytes,
int  len 
)

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char *  yy_str)

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

◆ yyalloc()

void * yyalloc ( yy_size_t  )

◆ yyfree()

void yyfree ( void *  )

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

◆ yyrealloc()

void * yyrealloc ( void *  ,
yy_size_t   
)

◆ yyrestart()

void yyrestart ( FILE *  input_file)

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE *  _in_str)

◆ yyset_lineno()

void yyset_lineno ( int  _line_number)

◆ yyset_out()

void yyset_out ( FILE *  _out_str)

◆ yyunput()

static void yyunput ( int  c,
char *  buf_ptr 
)
static

Variable Documentation

◆ errors

int errors
static

Definition at line 846 of file gmlscan.c.

Referenced by gml_to_gv(), gml_to_gv(), initgmlscan(), and setErrorErrors().

◆ Ifile

FILE* Ifile
static

Definition at line 847 of file gmlscan.c.

Referenced by initgmlscan().

◆ line_num

int line_num = 1
static

Definition at line 845 of file gmlscan.c.

Referenced by initgmlscan().

◆ Sbuf

char* Sbuf
static

Definition at line 865 of file gmlscan.c.

Referenced by addstr(), beginstr(), and endstr().

◆ yy_accept

const flex_int16_t yy_accept[143]
static
Initial value:
=
{ 0,
0, 0, 0, 0, 40, 38, 4, 2, 35, 38,
33, 32, 1, 34, 34, 34, 34, 34, 34, 15,
34, 34, 34, 34, 34, 34, 34, 14, 12, 13,
3, 37, 2, 36, 33, 32, 33, 0, 34, 34,
34, 34, 34, 34, 34, 9, 34, 34, 34, 34,
34, 34, 34, 34, 34, 34, 34, 3, 37, 0,
33, 34, 34, 34, 34, 34, 34, 34, 34, 34,
34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
7, 20, 34, 34, 34, 26, 6, 34, 34, 34,
34, 34, 28, 19, 34, 31, 34, 34, 34, 5,
16, 34, 27, 34, 25, 34, 24, 34, 34, 34,
34, 34, 34, 10, 11, 34, 34, 34, 34, 34,
21, 8, 30, 29, 17, 34, 34, 34, 34, 34,
34, 34, 34, 34, 34, 34, 34, 34, 22, 23,
18, 0
}

Definition at line 623 of file gmlscan.c.

◆ yy_act

int yy_act

Definition at line 1087 of file gmlscan.c.

◆ yy_base

const flex_int16_t yy_base[147]
static
Initial value:
=
{ 0,
0, 78, 52, 54, 75, 301, 301, 301, 301, 52,
53, 55, 301, 0, 41, 47, 53, 50, 45, 0,
58, 64, 53, 49, 55, 57, 93, 63, 0, 0,
0, 0, 0, 301, 71, 102, 79, 105, 0, 76,
76, 96, 94, 93, 107, 0, 108, 99, 109, 98,
109, 101, 100, 107, 103, 110, 125, 0, 0, 64,
301, 118, 125, 130, 128, 122, 128, 143, 144, 145,
144, 143, 141, 148, 144, 142, 158, 148, 151, 161,
0, 0, 163, 160, 159, 0, 0, 174, 157, 181,
180, 185, 0, 0, 185, 0, 177, 195, 190, 191,
194, 190, 0, 199, 0, 191, 0, 200, 198, 188,
209, 198, 210, 0, 0, 214, 215, 216, 209, 228,
217, 0, 0, 0, 0, 224, 222, 221, 234, 223,
242, 238, 238, 232, 248, 249, 247, 240, 0, 0,
0, 301, 288, 65, 292, 296
}

Definition at line 685 of file gmlscan.c.

◆ yy_bp

char * yy_bp

Definition at line 1086 of file gmlscan.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 511 of file gmlscan.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 510 of file gmlscan.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 509 of file gmlscan.c.

◆ yy_c_buf_p

char* yy_c_buf_p = NULL
static

Definition at line 533 of file gmlscan.c.

◆ yy_chk

const flex_int16_t yy_chk[356]
static

Definition at line 768 of file gmlscan.c.

◆ yy_cp

char* yy_cp

Definition at line 1086 of file gmlscan.c.

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state
int yy_state_type
Definition gmlscan.c:589

The main scanner function which does all the work.

Definition at line 1083 of file gmlscan.c.

◆ yy_def

const flex_int16_t yy_def[147]
static
Initial value:
=
{ 0,
142, 1, 143, 143, 142, 142, 142, 142, 142, 142,
142, 142, 142, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
145, 146, 146, 142, 142, 142, 142, 142, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 145, 146, 142,
142, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 0, 142, 142, 142, 142
}

Definition at line 705 of file gmlscan.c.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 540 of file gmlscan.c.

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 643 of file gmlscan.c.

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 815 of file gmlscan.c.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 528 of file gmlscan.c.

◆ yy_init

int yy_init = 0
static

Definition at line 534 of file gmlscan.c.

Referenced by if().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 812 of file gmlscan.c.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 811 of file gmlscan.c.

◆ yy_meta

const YY_CHAR yy_meta[55]
static
Initial value:
=
{ 0,
1, 1, 2, 3, 1, 1, 1, 4, 1, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4
}

Definition at line 675 of file gmlscan.c.

◆ yy_n_chars

int yy_n_chars
static

Definition at line 529 of file gmlscan.c.

◆ yy_nxt

const flex_int16_t yy_nxt[356]
static

Definition at line 725 of file gmlscan.c.

◆ yy_start

int yy_start = 0
static

Definition at line 535 of file gmlscan.c.

Referenced by if().

◆ yyin

FILE* yyin = NULL

Definition at line 587 of file gmlscan.c.

◆ yyleng

int yyleng

Definition at line 530 of file gmlscan.c.

◆ yylineno

int yylineno = 1

Definition at line 592 of file gmlscan.c.

◆ yyout

FILE * yyout = NULL

Definition at line 419 of file gmlscan.c.

◆ yytext

char* yytext

Definition at line 824 of file gmlscan.c.