Graphviz 13.0.0~dev.20250608.0154
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 <stdbool.h>
#include <stddef.h>
#include <util/agxbuf.h>
#include <util/gv_ctype.h>
#include <util/startswith.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
 
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_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, 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)
 
YYSTYPEyyget_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_tyyg = (struct yyguts_t*)yyscanner
 
 yylval = yylval_param
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   yyg->yy_start = 1 + 2 *

Definition at line 357 of file scan.c.

◆ comment

#define comment   1

Definition at line 830 of file scan.c.

◆ ECHO

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

Definition at line 977 of file scan.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 397 of file scan.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 398 of file scan.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 399 of file scan.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 9 of file scan.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 252 of file scan.c.

◆ GRAPH_EOF_TOKEN

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

Definition at line 770 of file scan.c.

◆ hstring

#define hstring   3

Definition at line 832 of file scan.c.

◆ INITIAL

#define INITIAL   0

Definition at line 829 of file scan.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 294 of file scan.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 285 of file scan.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 297 of file scan.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 288 of file scan.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 291 of file scan.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 282 of file scan.c.

◆ isatty

#define isatty (   x)    gv_isatty_suppression

Definition at line 780 of file scan.c.

◆ qstring

#define qstring   2

Definition at line 831 of file scan.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 727 of file scan.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 310 of file scan.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 303 of file scan.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 306 of file scan.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 300 of file scan.c.

◆ unput

#define unput (   c)    yyunput( c, yyg->yytext_ptr , yyscanner )

Definition at line 417 of file scan.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 538 of file scan.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1058 of file scan.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 379 of file scan.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 479 of file scan.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 467 of file scan.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 468 of file scan.c.

◆ YY_CALL_ONLY_ARG

#define YY_CALL_ONLY_ARG   aagscan_t yyscanner

◆ yy_create_buffer

#define yy_create_buffer   aag_create_buffer

Definition at line 20 of file scan.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
node NULL
Definition grammar.y:180
struct yyguts_t * yyg
Definition scan.c:1074
YY_BUFFER_STATE * yy_buffer_stack
Definition scan.c:855
size_t yy_buffer_stack_top
Definition scan.c:853

Definition at line 490 of file scan.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]

Definition at line 496 of file scan.c.

◆ YY_DECL

#define YY_DECL
Value:
int yylex \
(YYSTYPE * yylval_param , yyscan_t yyscanner)
void * yyscan_t
Definition scan.c:339
#define YYSTYPE
Definition scan.c:773
#define yylex
Definition scan.c:92

Definition at line 1045 of file scan.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 1040 of file scan.c.

◆ yy_delete_buffer

#define yy_delete_buffer   aag_delete_buffer

Definition at line 26 of file scan.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyg->yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
char * yy_cp
Definition scan.c:1072
char * yy_bp
Definition scan.c:1072
#define yyleng
Definition scan.c:347
char * yy_c_buf_p
Definition scan.c:859
char yy_hold_char
Definition scan.c:856

Definition at line 555 of file scan.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   36

Definition at line 562 of file scan.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 368 of file scan.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   struct aagextra_s *

Definition at line 842 of file scan.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg , yyscanner)

Definition at line 1031 of file scan.c.

◆ yy_flex_debug

#define yy_flex_debug   yyg->yy_flex_debug_r

Definition at line 351 of file scan.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 10 of file scan.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 11 of file scan.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 12 of file scan.c.

◆ yy_flush_buffer

#define yy_flush_buffer   aag_flush_buffer

Definition at line 56 of file scan.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)

Definition at line 509 of file scan.c.

◆ yy_init_buffer

#define yy_init_buffer   aag_init_buffer

Definition at line 50 of file scan.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ((result = read_input(yyscanner, buf, max_size)) < 0) \
YY_FATAL_ERROR( "input in flex scanner failed" )
static int read_input(aagscan_t yyscanner, char *buf, int max_size)

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

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 402 of file scan.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state   aag_load_buffer_state

Definition at line 62 of file scan.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 729 of file scan.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 519 of file scan.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin , yyscanner )

Definition at line 367 of file scan.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 759 of file scan.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 329 of file scan.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   35

Definition at line 561 of file scan.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 968 of file scan.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 730 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:348
#define YY_USER_ACTION
Definition scan.c:1053
#define YY_CURRENT_BUFFER_LVALUE
Definition scan.c:496

Definition at line 1061 of file scan.c.

◆ YY_SC_TO_UI

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

Definition at line 334 of file scan.c.

◆ yy_scan_buffer

#define yy_scan_buffer   aag_scan_buffer

Definition at line 32 of file scan.c.

◆ yy_scan_bytes

#define yy_scan_bytes   aag_scan_bytes

Definition at line 44 of file scan.c.

◆ yy_scan_string

#define yy_scan_string   aag_scan_string

Definition at line 38 of file scan.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (yyscanner); \
yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition scan.c:490
#define yyin
Definition scan.c:344
#define YY_BUF_SIZE
Definition scan.c:379

Definition at line 529 of file scan.c.

◆ yy_set_interactive

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

Definition at line 520 of file scan.c.

◆ YY_START

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

Definition at line 362 of file scan.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1026 of file scan.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 385 of file scan.c.

◆ YY_STATE_EOF

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

Definition at line 365 of file scan.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 420 of file scan.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   aag_switch_to_buffer

Definition at line 68 of file scan.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 388 of file scan.c.

◆ YY_TYPEDEF_YY_SCANNER_T

#define YY_TYPEDEF_YY_SCANNER_T

Definition at line 338 of file scan.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 393 of file scan.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1053 of file scan.c.

◆ yyalloc

#define yyalloc   aagalloc

Definition at line 224 of file scan.c.

◆ yycolumn

#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)

Definition at line 350 of file scan.c.

◆ yyconst

#define yyconst   const

Definition at line 320 of file scan.c.

◆ yyensure_buffer_stack

#define yyensure_buffer_stack   aagensure_buffer_stack

Definition at line 86 of file scan.c.

◆ yyextra

#define yyextra   yyg->yyextra_r

Definition at line 346 of file scan.c.

◆ yyfree

#define yyfree   aagfree

Definition at line 236 of file scan.c.

◆ yyget_column

#define yyget_column   aagget_column

Definition at line 194 of file scan.c.

◆ yyget_debug

#define yyget_debug   aagget_debug

Definition at line 122 of file scan.c.

◆ yyget_extra

#define yyget_extra   aagget_extra

Definition at line 134 of file scan.c.

◆ yyget_in

#define yyget_in   aagget_in

Definition at line 146 of file scan.c.

◆ yyget_leng

#define yyget_leng   aagget_leng

Definition at line 170 of file scan.c.

◆ yyget_lineno

#define yyget_lineno   aagget_lineno

Definition at line 182 of file scan.c.

◆ yyget_lval

#define yyget_lval   aagget_lval

Definition at line 212 of file scan.c.

◆ yyget_out

#define yyget_out   aagget_out

Definition at line 158 of file scan.c.

◆ yyget_text

#define yyget_text   aagget_text

Definition at line 176 of file scan.c.

◆ yyin

#define yyin   yyg->yyin_r

Definition at line 344 of file scan.c.

◆ yyleng

#define yyleng   yyg->yyleng_r

Definition at line 347 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_RESTORE_YY_MORE_OFFSET \
yyg->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_MORE_ADJ
Definition scan.c:729
#define YY_DO_BEFORE_ACTION
Definition scan.c:555

Definition at line 405 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);\
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
*yyg->yy_c_buf_p = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )

Definition at line 405 of file scan.c.

◆ yylex

#define yylex (   void)    aaglex

Definition at line 92 of file scan.c.

◆ yylex_destroy

#define yylex_destroy   aaglex_destroy

Definition at line 116 of file scan.c.

◆ yylex_init

#define yylex_init   aaglex_init

Definition at line 104 of file scan.c.

◆ yylex_init_extra

#define yylex_init_extra   aaglex_init_extra

Definition at line 110 of file scan.c.

◆ yylineno

#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)

Definition at line 349 of file scan.c.

◆ yylval

#define yylval   yyg->yylval_r

Definition at line 884 of file scan.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 728 of file scan.c.

◆ yynoreturn

#define yynoreturn

Definition at line 325 of file scan.c.

◆ yyout

#define yyout   yyg->yyout_r

Definition at line 345 of file scan.c.

◆ yypop_buffer_state

#define yypop_buffer_state   aagpop_buffer_state

Definition at line 80 of file scan.c.

◆ yypush_buffer_state

#define yypush_buffer_state   aagpush_buffer_state

Definition at line 74 of file scan.c.

◆ yyrealloc

#define yyrealloc   aagrealloc

Definition at line 230 of file scan.c.

◆ yyrestart

#define yyrestart   aagrestart

Definition at line 98 of file scan.c.

◆ yyset_column

#define yyset_column   aagset_column

Definition at line 200 of file scan.c.

◆ yyset_debug

#define yyset_debug   aagset_debug

Definition at line 128 of file scan.c.

◆ yyset_extra

#define yyset_extra   aagset_extra

Definition at line 140 of file scan.c.

◆ yyset_in

#define yyset_in   aagset_in

Definition at line 152 of file scan.c.

◆ yyset_lineno

#define yyset_lineno   aagset_lineno

Definition at line 188 of file scan.c.

◆ yyset_lval

#define yyset_lval   aagset_lval

Definition at line 218 of file scan.c.

◆ yyset_out

#define yyset_out   aagset_out

Definition at line 164 of file scan.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 363 of file scan.c.

◆ YYSTYPE

#define YYSTYPE   AAGSTYPE

Definition at line 773 of file scan.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1021 of file scan.c.

◆ yytext

#define yytext   yyg->yytext_r

Definition at line 348 of file scan.c.

◆ yytext_ptr

#define yytext_ptr   yytext_r

Definition at line 545 of file scan.c.

◆ yywrap

#define yywrap   aagwrap

Definition at line 206 of file scan.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 274 of file scan.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 275 of file scan.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 273 of file scan.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 277 of file scan.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 278 of file scan.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 276 of file scan.c.

◆ YY_BUFFER_STATE

Definition at line 389 of file scan.c.

◆ YY_CHAR

Definition at line 541 of file scan.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 394 of file scan.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 543 of file scan.c.

◆ yyscan_t

typedef void* yyscan_t

Definition at line 339 of file scan.c.

Function Documentation

◆ addstr()

static void addstr ( aagscan_t  yyscanner,
char *  src 
)
static

◆ beginstr()

static void beginstr ( aagscan_t  yyscanner)
static

◆ chkNum()

static int chkNum ( aagscan_t  yyscanner)
static

◆ endstr()

static void endstr ( aagscan_t  yyscanner)
static

◆ endstr_html()

static void endstr_html ( aagscan_t  yyscanner)
static

◆ if()

◆ ppDirective()

static void ppDirective ( aagscan_t  yyscanner)
static

◆ read_input()

static int read_input ( aagscan_t  yyscanner,
char *  buf,
int  max_size 
)
static

◆ storeFileName()

static void storeFileName ( aagscan_t  yyscanner,
const char *  fname,
size_t  len 
)
static

◆ twoDots()

static bool twoDots ( aagscan_t  yyscanner)
static

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size,
yyscan_t  yyscanner 
)

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char *  msg,
yyscan_t  yyscanner 
)
static

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( yyscan_t  yyscanner)
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( yyscan_t  yyscanner)
static

◆ yy_init_buffer()

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

◆ yy_init_globals()

static int yy_init_globals ( yyscan_t  yyscanner)
static

◆ yy_load_buffer_state()

static void yy_load_buffer_state ( yyscan_t  yyscanner)
static

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size,
yyscan_t  yyscanner 
)

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char *  bytes,
int  len,
yyscan_t  yyscanner 
)

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char *  yy_str,
yyscan_t  yyscanner 
)

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state,
yyscan_t  yyscanner 
)
static

◆ yyalloc()

void * yyalloc ( yy_size_t  ,
yyscan_t  yyscanner 
)

◆ yyensure_buffer_stack()

static void yyensure_buffer_stack ( yyscan_t  yyscanner)
static

◆ yyfree()

void yyfree ( void *  ,
yyscan_t  yyscanner 
)

◆ yyget_column()

int yyget_column ( yyscan_t  yyscanner)

◆ yyget_debug()

int yyget_debug ( yyscan_t  yyscanner)

◆ yyget_extra()

YY_EXTRA_TYPE yyget_extra ( yyscan_t  yyscanner)

◆ yyget_in()

FILE * yyget_in ( yyscan_t  yyscanner)

◆ yyget_leng()

int yyget_leng ( yyscan_t  yyscanner)

◆ yyget_lineno()

int yyget_lineno ( yyscan_t  yyscanner)

◆ yyget_lval()

YYSTYPE * yyget_lval ( yyscan_t  yyscanner)

◆ yyget_out()

FILE * yyget_out ( yyscan_t  yyscanner)

◆ yyget_text()

char * yyget_text ( yyscan_t  yyscanner)

◆ yylex()

int yylex ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)
extern

Definition at line 114 of file scan.l.

◆ yylex_destroy()

int yylex_destroy ( yyscan_t  yyscanner)

◆ yylex_init()

int yylex_init ( yyscan_t scanner)

◆ yylex_init_extra()

int yylex_init_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t scanner 
)

◆ yypop_buffer_state()

void yypop_buffer_state ( yyscan_t  yyscanner)

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

◆ yyrealloc()

void * yyrealloc ( void *  ,
yy_size_t  ,
yyscan_t  yyscanner 
)

◆ yyrestart()

void yyrestart ( FILE *  input_file,
yyscan_t  yyscanner 
)

◆ yyset_column()

void yyset_column ( int  _column_no,
yyscan_t  yyscanner 
)

◆ yyset_debug()

void yyset_debug ( int  debug_flag,
yyscan_t  yyscanner 
)

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t  yyscanner 
)

◆ yyset_in()

void yyset_in ( FILE *  _in_str,
yyscan_t  yyscanner 
)

◆ yyset_lineno()

void yyset_lineno ( int  _line_number,
yyscan_t  yyscanner 
)

◆ yyset_lval()

void yyset_lval ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)

◆ yyset_out()

void yyset_out ( FILE *  _out_str,
yyscan_t  yyscanner 
)

◆ yyunput()

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

◆ yywrap()

int yywrap ( yyscan_t  yyscanner)
extern

Variable Documentation

◆ gv_isatty_suppression

int gv_isatty_suppression

Definition at line 781 of file scan.c.

◆ 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 570 of file scan.c.

◆ yy_act

int yy_act

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

◆ yy_bp

char * yy_bp

Definition at line 1072 of file scan.c.

◆ yy_chk

const flex_int16_t yy_chk[268]
static

Definition at line 691 of file scan.c.

◆ yy_cp

char* yy_cp

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

◆ yy_ec

const YY_CHAR yy_ec[256]
static

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

◆ yy_nxt

const flex_int16_t yy_nxt[268]
static

Definition at line 658 of file scan.c.

◆ yyg

struct yyguts_t* yyg = (struct yyguts_t*)yyscanner

Definition at line 1074 of file scan.c.

Referenced by aagerror(), aglexbad(), aglexeof(), and if().

◆ yylval

yylval = yylval_param

Definition at line 1076 of file scan.c.