Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
scan.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <grammar.h>
#include <cgraph/cghdr.h>
#include <cgraph/agxbuf.h>
#include <cgraph/gv_ctype.h>
#include <cgraph/startswith.h>
#include <stdbool.h>
#include <stddef.h>
#include <unistd.h>
Include dependency graph for scan.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   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 yy_flex_debug   aag_flex_debug
 
#define yyin   aagin
 
#define yyleng   aagleng
 
#define yylex   aaglex
 
#define yylineno   aaglineno
 
#define yyout   aagout
 
#define yyrestart   aagrestart
 
#define yytext   aagtext
 
#define yywrap   aagwrap
 
#define yyalloc   aagalloc
 
#define yyrealloc   aagrealloc
 
#define yyfree   aagfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define aag_create_buffer_ALREADY_DEFINED
 
#define aag_delete_buffer_ALREADY_DEFINED
 
#define aag_scan_buffer_ALREADY_DEFINED
 
#define aag_scan_string_ALREADY_DEFINED
 
#define aag_scan_bytes_ALREADY_DEFINED
 
#define aag_init_buffer_ALREADY_DEFINED
 
#define aag_flush_buffer_ALREADY_DEFINED
 
#define aag_load_buffer_state_ALREADY_DEFINED
 
#define aag_switch_to_buffer_ALREADY_DEFINED
 
#define aagpush_buffer_state_ALREADY_DEFINED
 
#define aagpop_buffer_state_ALREADY_DEFINED
 
#define aagensure_buffer_stack_ALREADY_DEFINED
 
#define aaglex_ALREADY_DEFINED
 
#define aagrestart_ALREADY_DEFINED
 
#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 aagwrap_ALREADY_DEFINED
 
#define aagalloc_ALREADY_DEFINED
 
#define aagrealloc_ALREADY_DEFINED
 
#define aagfree_ALREADY_DEFINED
 
#define aagtext_ALREADY_DEFINED
 
#define aagleng_ALREADY_DEFINED
 
#define aagin_ALREADY_DEFINED
 
#define aagout_ALREADY_DEFINED
 
#define aag_flex_debug_ALREADY_DEFINED
 
#define aaglineno_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   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 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   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 agreadline (int n)
 sets input line number for subsequent error reporting
 
void agsetfile (const char *f)
 sets the current file name for subsequent error reporting
 
void aglexinit (Agdisc_t *disc, void *ifile)
 
static void beginstr (void)
 
static void addstr (char *src)
 
static void endstr (void)
 
static void endstr_html (void)
 
static void storeFileName (char *fname, size_t len)
 
static void ppDirective (void)
 
static bool twoDots (void)
 
static int chkNum (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))
 
void aagerror (const char *str)
 
void aglexeof (void)
 
void aglexbad (void)
 
int aagwrap (YY_CALL_ONLY_ARG)
 

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 [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]
 
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 html_nest = 0
 
static const char * InputFile
 
static Agdisc_tDisc
 
static void * Ifile
 
static int graphType
 
int gv_isatty_suppression
 
static agxbuf Sbuf
 
 YY_DECL
 
char * yy_cp
 
char * yy_bp
 
int yy_act
 

Macro Definition Documentation

◆ aag_create_buffer_ALREADY_DEFINED

#define aag_create_buffer_ALREADY_DEFINED

Definition at line 43 of file scan.c.

◆ aag_delete_buffer_ALREADY_DEFINED

#define aag_delete_buffer_ALREADY_DEFINED

Definition at line 49 of file scan.c.

◆ aag_flex_debug_ALREADY_DEFINED

#define aag_flex_debug_ALREADY_DEFINED

Definition at line 265 of file scan.c.

◆ aag_flush_buffer_ALREADY_DEFINED

#define aag_flush_buffer_ALREADY_DEFINED

Definition at line 79 of file scan.c.

◆ aag_init_buffer_ALREADY_DEFINED

#define aag_init_buffer_ALREADY_DEFINED

Definition at line 73 of file scan.c.

◆ aag_load_buffer_state_ALREADY_DEFINED

#define aag_load_buffer_state_ALREADY_DEFINED

Definition at line 85 of file scan.c.

◆ aag_scan_buffer_ALREADY_DEFINED

#define aag_scan_buffer_ALREADY_DEFINED

Definition at line 55 of file scan.c.

◆ aag_scan_bytes_ALREADY_DEFINED

#define aag_scan_bytes_ALREADY_DEFINED

Definition at line 67 of file scan.c.

◆ aag_scan_string_ALREADY_DEFINED

#define aag_scan_string_ALREADY_DEFINED

Definition at line 61 of file scan.c.

◆ aag_switch_to_buffer_ALREADY_DEFINED

#define aag_switch_to_buffer_ALREADY_DEFINED

Definition at line 91 of file scan.c.

◆ aagalloc_ALREADY_DEFINED

#define aagalloc_ALREADY_DEFINED

Definition at line 223 of file scan.c.

◆ aagensure_buffer_stack_ALREADY_DEFINED

#define aagensure_buffer_stack_ALREADY_DEFINED

Definition at line 109 of file scan.c.

◆ aagfree_ALREADY_DEFINED

#define aagfree_ALREADY_DEFINED

Definition at line 235 of file scan.c.

◆ aagin_ALREADY_DEFINED

#define aagin_ALREADY_DEFINED

Definition at line 253 of file scan.c.

◆ aagleng_ALREADY_DEFINED

#define aagleng_ALREADY_DEFINED

Definition at line 247 of file scan.c.

◆ aaglex_ALREADY_DEFINED

#define aaglex_ALREADY_DEFINED

Definition at line 115 of file scan.c.

◆ aaglineno_ALREADY_DEFINED

#define aaglineno_ALREADY_DEFINED

Definition at line 271 of file scan.c.

◆ aagout_ALREADY_DEFINED

#define aagout_ALREADY_DEFINED

Definition at line 259 of file scan.c.

◆ aagpop_buffer_state_ALREADY_DEFINED

#define aagpop_buffer_state_ALREADY_DEFINED

Definition at line 103 of file scan.c.

◆ aagpush_buffer_state_ALREADY_DEFINED

#define aagpush_buffer_state_ALREADY_DEFINED

Definition at line 97 of file scan.c.

◆ aagrealloc_ALREADY_DEFINED

#define aagrealloc_ALREADY_DEFINED

Definition at line 229 of file scan.c.

◆ aagrestart_ALREADY_DEFINED

#define aagrestart_ALREADY_DEFINED

Definition at line 121 of file scan.c.

◆ aagtext_ALREADY_DEFINED

#define aagtext_ALREADY_DEFINED

Definition at line 241 of file scan.c.

◆ aagwrap_ALREADY_DEFINED

#define aagwrap_ALREADY_DEFINED

Definition at line 217 of file scan.c.

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 377 of file scan.c.

◆ comment

#define comment   1

Definition at line 970 of file scan.c.

◆ ECHO

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

Definition at line 1067 of file scan.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 421 of file scan.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 422 of file scan.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 423 of file scan.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 34 of file scan.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 289 of file scan.c.

◆ GRAPH_EOF_TOKEN

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

Definition at line 825 of file scan.c.

◆ hstring

#define hstring   3

Definition at line 972 of file scan.c.

◆ INITIAL

#define INITIAL   0

Definition at line 969 of file scan.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 331 of file scan.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 322 of file scan.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 334 of file scan.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 325 of file scan.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 328 of file scan.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 319 of file scan.c.

◆ isatty

#define isatty (   x)    gv_isatty_suppression

Definition at line 852 of file scan.c.

◆ qstring

#define qstring   2

Definition at line 971 of file scan.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 786 of file scan.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 347 of file scan.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 340 of file scan.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 343 of file scan.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 337 of file scan.c.

◆ unput

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

Definition at line 441 of file scan.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 582 of file scan.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1146 of file scan.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 399 of file scan.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 503 of file scan.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 491 of file scan.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 492 of file scan.c.

◆ YY_CALL_ONLY_ARG

#define YY_CALL_ONLY_ARG   void

Definition at line 2486 of file scan.c.

◆ yy_create_buffer

#define yy_create_buffer   aag_create_buffer

Definition at line 9 of file scan.c.

◆ YY_CURRENT_BUFFER

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

Definition at line 519 of file scan.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 525 of file scan.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 1134 of file scan.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 1130 of file scan.c.

◆ yy_delete_buffer

#define yy_delete_buffer   aag_delete_buffer

Definition at line 10 of file scan.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 scan.c:528
char * yy_cp
Definition scan.c:1160
#define yytext_ptr
Definition scan.c:598
char * yy_bp
Definition scan.c:1160
static char * yy_c_buf_p
Definition scan.c:533
#define yyleng
Definition scan.c:23

Definition at line 608 of file scan.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   36

Definition at line 615 of file scan.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 388 of file scan.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 983 of file scan.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1121 of file scan.c.

◆ yy_flex_debug

#define yy_flex_debug   aag_flex_debug

Definition at line 21 of file scan.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 35 of file scan.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 36 of file scan.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 37 of file scan.c.

◆ yy_flush_buffer

#define yy_flush_buffer   aag_flush_buffer

Definition at line 15 of file scan.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 553 of file scan.c.

◆ yy_init_buffer

#define yy_init_buffer   aag_init_buffer

Definition at line 14 of file scan.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \
YY_FATAL_ERROR( "input in flex scanner failed" )
static Agdisc_t * Disc
Definition scan.c:830
static void * Ifile
Definition scan.c:831
Agiodisc_t * io
Definition cgraph.h:339
int(* afread)(void *chan, char *buf, int bufsize)
Definition cgraph.h:328

Definition at line 856 of file scan.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 5 of file scan.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 425 of file scan.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 426 of file scan.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state (   void)    aag_load_buffer_state

Definition at line 16 of file scan.c.

Referenced by if().

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 788 of file scan.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 563 of file scan.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 387 of file scan.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 814 of file scan.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 366 of file scan.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   35

Definition at line 614 of file scan.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1058 of file scan.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 789 of file scan.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 scan.c:28
#define YY_USER_ACTION
Definition scan.c:1141
#define YY_CURRENT_BUFFER_LVALUE
Definition scan.c:525

Definition at line 1149 of file scan.c.

◆ YY_SC_TO_UI

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

Definition at line 371 of file scan.c.

◆ yy_scan_buffer

#define yy_scan_buffer   aag_scan_buffer

Definition at line 11 of file scan.c.

◆ yy_scan_bytes

#define yy_scan_bytes   aag_scan_bytes

Definition at line 13 of file scan.c.

◆ yy_scan_string

#define yy_scan_string   aag_scan_string

Definition at line 12 of file scan.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 YY_CURRENT_BUFFER
Definition scan.c:519
#define yyin
Definition scan.c:22
#define YY_BUF_SIZE
Definition scan.c:399

Definition at line 573 of file scan.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 scan.c.

◆ YY_START

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

Definition at line 382 of file scan.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1116 of file scan.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 405 of file scan.c.

◆ YY_STATE_EOF

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

Definition at line 385 of file scan.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 444 of file scan.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   aag_switch_to_buffer

Definition at line 17 of file scan.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 408 of file scan.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 413 of file scan.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1141 of file scan.c.

◆ yyalloc

#define yyalloc   aagalloc

Definition at line 30 of file scan.c.

◆ yyconst

#define yyconst   const

Definition at line 357 of file scan.c.

◆ yyensure_buffer_stack

#define yyensure_buffer_stack (   void)    aagensure_buffer_stack

Definition at line 20 of file scan.c.

Referenced by if().

◆ yyfree

#define yyfree   aagfree

Definition at line 32 of file scan.c.

◆ yyget_debug

#define yyget_debug (   void)    aagget_debug

Definition at line 147 of file scan.c.

◆ yyget_extra

#define yyget_extra (   void)    aagget_extra

Definition at line 159 of file scan.c.

◆ yyget_in

#define yyget_in (   void)    aagget_in

Definition at line 171 of file scan.c.

◆ yyget_leng

#define yyget_leng (   void)    aagget_leng

Definition at line 195 of file scan.c.

◆ yyget_lineno

#define yyget_lineno (   void)    aagget_lineno

Definition at line 207 of file scan.c.

◆ yyget_out

#define yyget_out (   void)    aagget_out

Definition at line 183 of file scan.c.

◆ yyget_text

#define yyget_text (   void)    aagget_text

Definition at line 201 of file scan.c.

◆ yyin

#define yyin   aagin

Definition at line 22 of file scan.c.

◆ yyleng

#define yyleng   aagleng

Definition at line 23 of file scan.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 scan.c:789
#define YY_MORE_ADJ
Definition scan.c:788
#define YY_DO_BEFORE_ACTION
Definition scan.c:608

Definition at line 429 of file scan.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 scan.c.

◆ yylex

#define yylex (   void)    aaglex

Definition at line 24 of file scan.c.

◆ yylex_destroy

#define yylex_destroy (   void)    aaglex_destroy

Definition at line 141 of file scan.c.

◆ yylex_init

#define yylex_init   aaglex_init

Definition at line 129 of file scan.c.

◆ yylex_init_extra

#define yylex_init_extra   aaglex_init_extra

Definition at line 135 of file scan.c.

◆ yylineno

#define yylineno   aaglineno

Definition at line 25 of file scan.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 787 of file scan.c.

◆ yynoreturn

#define yynoreturn

Definition at line 362 of file scan.c.

◆ yyout

#define yyout   aagout

Definition at line 26 of file scan.c.

◆ yypop_buffer_state

#define yypop_buffer_state (   void)    aagpop_buffer_state

Definition at line 19 of file scan.c.

◆ yypush_buffer_state

#define yypush_buffer_state   aagpush_buffer_state

Definition at line 18 of file scan.c.

◆ yyrealloc

#define yyrealloc   aagrealloc

Definition at line 31 of file scan.c.

◆ yyrestart

#define yyrestart   aagrestart

Definition at line 27 of file scan.c.

◆ yyset_debug

#define yyset_debug   aagset_debug

Definition at line 153 of file scan.c.

◆ yyset_extra

#define yyset_extra   aagset_extra

Definition at line 165 of file scan.c.

◆ yyset_in

#define yyset_in   aagset_in

Definition at line 177 of file scan.c.

◆ yyset_lineno

#define yyset_lineno   aagset_lineno

Definition at line 213 of file scan.c.

◆ yyset_out

#define yyset_out   aagset_out

Definition at line 189 of file scan.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 383 of file scan.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1111 of file scan.c.

◆ yytext

#define yytext   aagtext

Definition at line 28 of file scan.c.

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 598 of file scan.c.

◆ yywrap

#define yywrap (   void)    aagwrap

Definition at line 29 of file scan.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 311 of file scan.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 312 of file scan.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 310 of file scan.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 314 of file scan.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 315 of file scan.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 313 of file scan.c.

◆ YY_BUFFER_STATE

Definition at line 409 of file scan.c.

◆ YY_CHAR

Definition at line 585 of file scan.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 414 of file scan.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 589 of file scan.c.

Function Documentation

◆ aagerror()

void aagerror ( const char *  str)

Definition at line 2444 of file scan.c.

References agerrorf(), agxbfree(), agxblen(), agxbprint(), agxbputc(), agxbuse(), BEGIN, comment, hstring, INITIAL, InputFile, line_num, qstring, Sbuf, str, YY_BUF_SIZE, and YYSTATE.

Here is the call graph for this function:

◆ aagwrap()

int aagwrap ( YY_CALL_ONLY_ARG  )

Definition at line 2489 of file scan.c.

◆ addstr()

static void addstr ( char *  src)
static

Definition at line 871 of file scan.c.

References agxbput(), and Sbuf.

Here is the call graph for this function:

◆ aglexbad()

void aglexbad ( void  )

Definition at line 2483 of file scan.c.

◆ aglexeof()

void aglexeof ( void  )

Definition at line 2481 of file scan.c.

◆ aglexinit()

void aglexinit ( Agdisc_t disc,
void *  ifile 
)

Definition at line 845 of file scan.c.

◆ beginstr()

static void beginstr ( void  )
static

Definition at line 864 of file scan.c.

References agxblen(), and Sbuf.

Here is the call graph for this function:

◆ chkNum()

static int chkNum ( void  )
static

Definition at line 940 of file scan.c.

References agwarningf(), fname, gv_isdigit(), InputFile, line_num, and twoDots().

Here is the call graph for this function:

◆ endstr()

static void endstr ( void  )
static

Definition at line 875 of file scan.c.

References aaglval, Ag_G_global, agstrdup(), agxbuse(), Sbuf, and AAGSTYPE::str.

Here is the call graph for this function:

◆ endstr_html()

static void endstr_html ( void  )
static

Definition at line 879 of file scan.c.

References aaglval, Ag_G_global, agstrdup_html(), agxbuse(), Sbuf, and AAGSTYPE::str.

Here is the call graph for this function:

◆ if()

◆ ppDirective()

static void ppDirective ( void  )
static

Definition at line 899 of file scan.c.

References cnt(), line_num, lineno, startswith(), and storeFileName().

Here is the call graph for this function:

◆ storeFileName()

static void storeFileName ( char *  fname,
size_t  len 
)
static

Definition at line 883 of file scan.c.

References cnt(), fname, gv_realloc(), InputFile, and len().

Referenced by ppDirective().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ twoDots()

static bool twoDots ( void  )
static

Definition at line 929 of file scan.c.

References dot, and NULL.

Referenced by chkNum().

Here is the caller graph for this function:

◆ 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

◆ Disc

Agdisc_t* Disc
static

Definition at line 830 of file scan.c.

Referenced by aglexinit().

◆ graphType

int graphType
static

Definition at line 832 of file scan.c.

Referenced by aglexinit(), init(), and main().

◆ gv_isatty_suppression

int gv_isatty_suppression

Definition at line 853 of file scan.c.

◆ html_nest

int html_nest = 0
static

Definition at line 828 of file scan.c.

◆ Ifile

void* Ifile
static

Definition at line 831 of file scan.c.

Referenced by aglexinit().

◆ InputFile

const char* InputFile
static

Definition at line 829 of file scan.c.

Referenced by aagerror(), agsetfile(), chkNum(), and storeFileName().

◆ line_num

int line_num = 1
static

Definition at line 827 of file scan.c.

Referenced by aagerror(), agreadline(), agsetfile(), chkNum(), and ppDirective().

◆ Sbuf

agxbuf Sbuf
static

Definition at line 862 of file scan.c.

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

◆ yy_accept

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

Definition at line 623 of file scan.c.

◆ yy_act

int yy_act

Definition at line 1161 of file scan.c.

◆ yy_base

const flex_int16_t yy_base[105]
static
Initial value:
=
{ 0,
0, 174, 46, 47, 51, 53, 48, 55, 170, 219,
219, 219, 219, 0, 61, 135, 55, 55, 219, 219,
0, 40, 53, 46, 50, 47, 98, 0, 0, 71,
0, 219, 219, 81, 0, 219, 219, 219, 0, 219,
132, 85, 219, 130, 219, 0, 129, 219, 0, 62,
66, 65, 72, 68, 82, 91, 0, 0, 94, 95,
219, 0, 219, 219, 219, 0, 0, 123, 73, 87,
82, 90, 90, 93, 0, 95, 0, 95, 0, 101,
93, 95, 0, 93, 110, 106, 0, 105, 0, 110,
0, 219, 147, 154, 161, 168, 171, 112, 177, 184,
191, 198, 205, 211
}

Definition at line 679 of file scan.c.

◆ yy_bp

char * yy_bp

Definition at line 1160 of file scan.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 511 of file scan.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 510 of file scan.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 509 of file scan.c.

◆ yy_c_buf_p

char* yy_c_buf_p = NULL
static

Definition at line 533 of file scan.c.

◆ yy_chk

const flex_int16_t yy_chk[268]
static

Definition at line 744 of file scan.c.

◆ yy_cp

char* yy_cp

Definition at line 1160 of file scan.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 1157 of file scan.c.

◆ yy_def

const flex_int16_t yy_def[105]
static
Initial value:
=
{ 0,
92, 1, 93, 93, 94, 94, 95, 95, 92, 92,
92, 92, 92, 96, 92, 92, 92, 97, 92, 92,
98, 98, 98, 98, 98, 98, 98, 99, 100, 101,
102, 92, 92, 92, 103, 92, 92, 92, 96, 92,
92, 97, 92, 97, 92, 104, 97, 92, 98, 98,
98, 98, 98, 98, 98, 98, 99, 100, 101, 101,
92, 102, 92, 92, 92, 103, 104, 97, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 0, 92, 92, 92, 92, 92, 92, 92, 92,
92, 92, 92, 92
}

Definition at line 695 of file scan.c.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 540 of file scan.c.

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 638 of file scan.c.

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 781 of file scan.c.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 528 of file scan.c.

◆ yy_init

int yy_init = 0
static

Definition at line 534 of file scan.c.

Referenced by if().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 778 of file scan.c.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 777 of file scan.c.

◆ yy_meta

const YY_CHAR yy_meta[49]
static
Initial value:
=
{ 0,
1, 1, 2, 3, 1, 4, 1, 5, 1, 6,
7, 7, 1, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 3,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6
}

Definition at line 670 of file scan.c.

◆ yy_n_chars

int yy_n_chars
static

Definition at line 529 of file scan.c.

◆ yy_nxt

const flex_int16_t yy_nxt[268]
static

Definition at line 711 of file scan.c.

◆ yy_start

int yy_start = 0
static

Definition at line 535 of file scan.c.

Referenced by if().

◆ yyin

FILE* yyin = NULL

Definition at line 587 of file scan.c.

◆ yyleng

int yyleng

Definition at line 530 of file scan.c.

◆ yylineno

int yylineno = 1

Definition at line 592 of file scan.c.

◆ yyout

FILE * yyout = NULL

Definition at line 419 of file scan.c.

◆ yytext

char* yytext

Definition at line 790 of file scan.c.