Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Functions | Variables
scan.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <grammar.h>
#include <cghdr.h>
#include <agxbuf.h>
#include <ctype.h>
#include <unistd.h>
Include dependency graph for scan.c:

Go to the source code of this file.

Data Structures

struct  aag_buffer_state
 
struct  aag_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   37
 
#define FLEX_BETA
 
#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 aagconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (aag_start) = 1 + 2 *
 
#define YY_START   (((aag_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   aagrestart(aagin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(aag_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 aagless(n)
 
#define unput(c)   aagunput( c, (aagtext_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   (aag_buffer_stack)[(aag_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   aag_flush_buffer(YY_CURRENT_BUFFER )
 
#define aag_new_buffer   aag_create_buffer
 
#define aag_set_interactive(is_interactive)
 
#define aag_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->aag_at_bol)
 
#define aagtext_ptr   aagtext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   34
 
#define YY_END_OF_BUFFER   35
 
#define REJECT   reject_used_but_not_detected
 
#define aagmore()   aagmore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define GRAPH_EOF_TOKEN   '@' /* lex class must be defined below */
 
#define isatty(x)   0
 
#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( aagtext, aagleng, 1, aagout )) {} } while (0)
 
#define aagterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   aag_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int aaglex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define aagless(n)
 
#define YYTABLES_NAME   "aagtables"
 
#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 aag_buffer_stateYY_BUFFER_STATE
 
typedef size_t aag_size_t
 
typedef unsigned char YY_CHAR
 
typedef int aag_state_type
 

Functions

void aagrestart (FILE *input_file)
 
void aag_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE aag_create_buffer (FILE *file, int size)
 
void aag_delete_buffer (YY_BUFFER_STATE b)
 
void aag_flush_buffer (YY_BUFFER_STATE b)
 
void aagpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void aagpop_buffer_state (void)
 
YY_BUFFER_STATE aag_scan_buffer (char *base, aag_size_t size)
 
YY_BUFFER_STATE aag_scan_string (aagconst char *aag_str)
 
YY_BUFFER_STATE aag_scan_bytes (aagconst char *bytes, aag_size_t len)
 
void * aagalloc (aag_size_t)
 
void * aagrealloc (void *, aag_size_t)
 
void aagfree (void *)
 
void agreadline (int n)
 
void agsetfile (char *f)
 
void aglexinit (Agdisc_t *disc, void *ifile)
 
int aaglex_destroy (void)
 
int aagget_debug (void)
 
void aagset_debug (int debug_flag)
 
YY_EXTRA_TYPE aagget_extra (void)
 
void aagset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * aagget_in (void)
 
void aagset_in (FILE *in_str)
 
FILE * aagget_out (void)
 
void aagset_out (FILE *out_str)
 
aag_size_t aagget_leng (void)
 
char * aagget_text (void)
 
int aagget_lineno (void)
 
void aagset_lineno (int line_number)
 
int aagwrap (void)
 
int aaglex (void)
 
 if (!YY_CURRENT_BUFFER)
 
 while (1)
 
void aagerror (char *str)
 
void aglexeof ()
 
void aglexbad ()
 
int aagwrap (YY_CALL_ONLY_ARG)
 

Variables

aag_size_t aagleng
 
FILE * aagin = (FILE *) 0
 
FILE * aagout = (FILE *) 0
 
int aaglineno = 1
 
char * aagtext
 
int aag_flex_debug = 0
 
 YY_DECL
 
register char * aag_cp
 
register char * aag_bp
 
register int aag_act
 

Macro Definition Documentation

#define aag_new_buffer   aag_create_buffer

Definition at line 309 of file scan.c.

#define aag_set_bol (   at_bol)
Value:
{ \
aagensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->aag_at_bol = at_bol; \
}
#define YY_BUF_SIZE
Definition: scan.c:144
#define YY_CURRENT_BUFFER
Definition: scan.c:263
if(aagss+aagstacksize-1<=aagssp)
Definition: grammar.c:1332
#define YY_CURRENT_BUFFER_LVALUE
Definition: scan.c:270
FILE * aagin
Definition: scan.c:337
YY_BUFFER_STATE aag_create_buffer(FILE *file, int size)
Definition: scan.c:1685

Definition at line 321 of file scan.c.

#define aag_set_interactive (   is_interactive)
Value:
{ \
aagensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->aag_is_interactive = is_interactive; \
}
#define YY_BUF_SIZE
Definition: scan.c:144
#define YY_CURRENT_BUFFER
Definition: scan.c:263
if(aagss+aagstacksize-1<=aagssp)
Definition: grammar.c:1332
#define YY_CURRENT_BUFFER_LVALUE
Definition: scan.c:270
FILE * aagin
Definition: scan.c:337
YY_BUFFER_STATE aag_create_buffer(FILE *file, int size)
Definition: scan.c:1685

Definition at line 311 of file scan.c.

#define aagconst

Definition at line 108 of file scan.c.

#define aagless (   n)
Value:
do \
{ \
/* Undo effects of setting up aagtext. */ \
int aagless_macro_arg = (n); \
YY_LESS_LINENO(aagless_macro_arg);\
*aag_cp = (aag_hold_char); \
(aag_c_buf_p) = aag_cp = aag_bp + aagless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up aagtext again */ \
} \
while ( 0 )
register char * aag_cp
Definition: scan.c:909
#define YY_LESS_LINENO(n)
Definition: scan.c:169
#define YY_RESTORE_YY_MORE_OFFSET
Definition: scan.c:538
#define YY_DO_BEFORE_ACTION
Definition: scan.c:356
int
Definition: grammar.c:1264
#define YY_MORE_ADJ
Definition: scan.c:537
register char * aag_bp
Definition: scan.c:909
while(aagssp!=aagss)
Definition: grammar.c:1921

Definition at line 1980 of file scan.c.

Referenced by while().

#define aagless (   n)
Value:
do \
{ \
/* Undo effects of setting up aagtext. */ \
int aagless_macro_arg = (n); \
YY_LESS_LINENO(aagless_macro_arg);\
aagtext[aagleng] = (aag_hold_char); \
(aag_c_buf_p) = aagtext + aagless_macro_arg; \
(aag_hold_char) = *(aag_c_buf_p); \
*(aag_c_buf_p) = '\0'; \
aagleng = aagless_macro_arg; \
} \
while ( 0 )
#define YY_LESS_LINENO(n)
Definition: scan.c:169
aag_size_t aagleng
Definition: scan.c:275
int
Definition: grammar.c:1264
char * aagtext
Definition: scan.c:539
while(aagssp!=aagss)
Definition: grammar.c:1921

Definition at line 1980 of file scan.c.

#define aagmore ( )    aagmore_used_but_not_detected

Definition at line 536 of file scan.c.

#define aagterminate ( )    return YY_NULL

Definition at line 860 of file scan.c.

Referenced by while().

#define aagtext_ptr   aagtext

Definition at line 346 of file scan.c.

Referenced by while().

#define BEGIN   (aag_start) = 1 + 2 *

Definition at line 125 of file scan.c.

Referenced by aagerror(), and while().

#define comment   1

Definition at line 727 of file scan.c.

Referenced by aagerror(), and while().

#define ECHO   do { if (fwrite( aagtext, aagleng, 1, aagout )) {} } while (0)

Definition at line 816 of file scan.c.

Referenced by while().

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 165 of file scan.c.

Referenced by while().

#define EOB_ACT_END_OF_FILE   1

Definition at line 166 of file scan.c.

Referenced by while().

#define EOB_ACT_LAST_MATCH   2

Definition at line 167 of file scan.c.

Referenced by while().

#define FLEX_BETA

Definition at line 13 of file scan.c.

#define FLEX_SCANNER

Definition at line 8 of file scan.c.

#define FLEXINT_H

Definition at line 29 of file scan.c.

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

Definition at line 559 of file scan.c.

Referenced by aglexeof().

#define hstring   3

Definition at line 729 of file scan.c.

Referenced by aagerror(), and while().

#define INITIAL   0

Definition at line 726 of file scan.c.

Referenced by aagerror(), and while().

#define INT16_MAX   (32767)

Definition at line 71 of file scan.c.

#define INT16_MIN   (-32767-1)

Definition at line 62 of file scan.c.

#define INT32_MAX   (2147483647)

Definition at line 74 of file scan.c.

#define INT32_MIN   (-2147483647-1)

Definition at line 65 of file scan.c.

#define INT8_MAX   (127)

Definition at line 68 of file scan.c.

#define INT8_MIN   (-128)

Definition at line 59 of file scan.c.

#define isatty (   x)    0

Definition at line 581 of file scan.c.

#define qstring   2

Definition at line 728 of file scan.c.

Referenced by aagerror(), and while().

#define REJECT   reject_used_but_not_detected

Definition at line 535 of file scan.c.

#define UINT16_MAX   (65535U)

Definition at line 80 of file scan.c.

#define UINT32_MAX   (4294967295U)

Definition at line 83 of file scan.c.

#define UINT8_MAX   (255U)

Definition at line 77 of file scan.c.

#define unput (   c)    aagunput( c, (aagtext_ptr) )

Definition at line 185 of file scan.c.

Referenced by aglexeof().

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->aag_at_bol)

Definition at line 331 of file scan.c.

Referenced by while().

#define YY_BREAK   break;

Definition at line 895 of file scan.c.

Referenced by while().

#define YY_BUF_SIZE   16384

Definition at line 144 of file scan.c.

Referenced by aagerror(), aagrestart(), and if().

#define YY_BUFFER_EOF_PENDING   2

Definition at line 247 of file scan.c.

#define YY_BUFFER_NEW   0

Definition at line 235 of file scan.c.

Referenced by aag_flush_buffer(), aag_scan_buffer(), and while().

#define YY_BUFFER_NORMAL   1

Definition at line 236 of file scan.c.

Referenced by while().

#define YY_CALL_ONLY_ARG   void

Definition at line 2234 of file scan.c.

#define YY_CURRENT_BUFFER
Value:
( (aag_buffer_stack) \
? (aag_buffer_stack)[(aag_buffer_stack_top)] \
: NULL)
#define NULL
Definition: logic.h:39

Definition at line 263 of file scan.c.

Referenced by aag_delete_buffer(), aag_flush_buffer(), aag_switch_to_buffer(), aaglex_destroy(), aagpop_buffer_state(), aagpush_buffer_state(), and aagrestart().

#define YY_CURRENT_BUFFER_LVALUE   (aag_buffer_stack)[(aag_buffer_stack_top)]
#define YY_DECL   int aaglex (void)

Definition at line 883 of file scan.c.

#define YY_DECL_IS_OURS   1

Definition at line 879 of file scan.c.

#define YY_DO_BEFORE_ACTION
Value:
aagleng = (size_t) (aag_cp - aag_bp); \
(aag_hold_char) = *aag_cp; \
*aag_cp = '\0'; \
(aag_c_buf_p) = aag_cp;
register char * aag_cp
Definition: scan.c:909
aag_size_t aagleng
Definition: scan.c:275
#define aagtext_ptr
Definition: scan.c:346
register char * aag_bp
Definition: scan.c:909

Definition at line 356 of file scan.c.

Referenced by while().

#define YY_END_OF_BUFFER   35

Definition at line 364 of file scan.c.

Referenced by while().

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 140 of file scan.c.

Referenced by aag_flush_buffer(), aag_scan_buffer(), and aag_scan_bytes().

#define YY_EXIT_FAILURE   2

Definition at line 1968 of file scan.c.

#define YY_EXTRA_TYPE   void *

Definition at line 740 of file scan.c.

#define YY_FATAL_ERROR (   msg)    aag_fatal_error( msg )

Definition at line 870 of file scan.c.

Referenced by aag_create_buffer(), aag_scan_buffer(), aag_scan_bytes(), and while().

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file scan.c.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file scan.c.

#define YY_FLEX_SUBMINOR_VERSION   37

Definition at line 11 of file scan.c.

#define YY_FLUSH_BUFFER   aag_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 299 of file scan.c.

Referenced by aglexbad().

#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" )
#define YY_FATAL_ERROR(msg)
Definition: scan.c:870
int(* afread)(void *chan, char *buf, int bufsize)
Definition: cgraph.h:183
Agiodisc_t * io
Definition: cgraph.h:192

Definition at line 583 of file scan.c.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file scan.c.

#define YY_LESS_LINENO (   n)

Definition at line 169 of file scan.c.

#define YY_MORE_ADJ   0

Definition at line 537 of file scan.c.

Referenced by while().

#define YY_NEW_FILE   aagrestart(aagin )

Definition at line 138 of file scan.c.

Referenced by while().

#define YY_NULL   0

Definition at line 112 of file scan.c.

#define YY_NUM_RULES   34

Definition at line 363 of file scan.c.

#define YY_READ_BUF_SIZE   8192

Definition at line 808 of file scan.c.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 538 of file scan.c.

Referenced by while().

#define YY_RULE_SETUP
Value:
if ( aagleng > 0 ) \
(aagtext[aagleng - 1] == '\n'); \
aag_size_t aagleng
Definition: scan.c:275
#define YY_CURRENT_BUFFER_LVALUE
Definition: scan.c:270
char * aagtext
Definition: scan.c:539
#define YY_USER_ACTION
Definition: scan.c:890

Definition at line 898 of file scan.c.

Referenced by while().

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 119 of file scan.c.

Referenced by while().

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

Definition at line 131 of file scan.c.

Referenced by while().

#define YY_START_STACK_INCR   25

Definition at line 865 of file scan.c.

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

Definition at line 149 of file scan.c.

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

Definition at line 135 of file scan.c.

Referenced by while().

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 188 of file scan.c.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 152 of file scan.c.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 157 of file scan.c.

#define YY_USER_ACTION

Definition at line 890 of file scan.c.

#define YYSTATE   YY_START

Definition at line 132 of file scan.c.

Referenced by aagerror().

#define YYTABLES_NAME   "aagtables"

Definition at line 2170 of file scan.c.

Typedef Documentation

typedef size_t aag_size_t

Definition at line 158 of file scan.c.

Definition at line 339 of file scan.c.

typedef short int flex_int16_t

Definition at line 51 of file scan.c.

typedef int flex_int32_t

Definition at line 52 of file scan.c.

typedef signed char flex_int8_t

Definition at line 50 of file scan.c.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file scan.c.

typedef unsigned int flex_uint32_t

Definition at line 55 of file scan.c.

typedef unsigned char flex_uint8_t

Definition at line 53 of file scan.c.

Definition at line 153 of file scan.c.

typedef unsigned char YY_CHAR

Definition at line 335 of file scan.c.

Function Documentation

YY_BUFFER_STATE aag_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1685 of file scan.c.

References aag_buffer_state::aag_buf_size, aag_buffer_state::aag_ch_buf, aag_buffer_state::aag_is_our_buffer, aagalloc(), and YY_FATAL_ERROR.

Referenced by aagrestart(), and if().

void aag_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with aag_create_buffer()

Definition at line 1713 of file scan.c.

References aag_buffer_state::aag_ch_buf, aag_buffer_state::aag_is_our_buffer, aagfree(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by aaglex_destroy(), and aagpop_buffer_state().

void aag_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1760 of file scan.c.

References aag_buffer_state::aag_at_bol, aag_buffer_state::aag_buf_pos, aag_buffer_state::aag_buffer_status, aag_buffer_state::aag_ch_buf, aag_buffer_state::aag_n_chars, YY_BUFFER_NEW, YY_CURRENT_BUFFER, and YY_END_OF_BUFFER_CHAR.

YY_BUFFER_STATE aag_scan_buffer ( char *  base,
aag_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1887 of file scan.c.

References aag_buffer_state::aag_at_bol, aag_buffer_state::aag_buf_pos, aag_buffer_state::aag_buf_size, aag_buffer_state::aag_buffer_status, aag_buffer_state::aag_ch_buf, aag_buffer_state::aag_fill_buffer, aag_buffer_state::aag_input_file, aag_buffer_state::aag_is_interactive, aag_buffer_state::aag_is_our_buffer, aag_buffer_state::aag_n_chars, aag_switch_to_buffer(), aagalloc(), YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.

Referenced by aag_scan_bytes().

YY_BUFFER_STATE aag_scan_bytes ( aagconst char *  aagbytes,
aag_size_t  _aagbytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to aaglex() will scan from a copy of bytes.

Parameters
aagbytesthe byte buffer to scan
_aagbytes_lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 1937 of file scan.c.

References aag_buffer_state::aag_is_our_buffer, aag_scan_buffer(), aagalloc(), YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.

Referenced by aag_scan_string().

YY_BUFFER_STATE aag_scan_string ( aagconst char *  aagstr)

Setup the input buffer state to scan a string. The next call to aaglex() will scan from a copy of str.

Parameters
aagstra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use aag_scan_bytes() instead.

Definition at line 1924 of file scan.c.

References aag_scan_bytes().

void aag_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1640 of file scan.c.

References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by aag_scan_buffer().

void * aagalloc ( aag_size_t  size)

Definition at line 2148 of file scan.c.

Referenced by aag_create_buffer(), aag_scan_buffer(), and aag_scan_bytes().

void aagerror ( char *  str)

Definition at line 2176 of file scan.c.

References agerr(), AGERR, agxbfree(), agxbinit(), agxbput(), agxbputc, agxbuse, BEGIN, comment, hstring, INITIAL, qstring, YY_BUF_SIZE, and YYSTATE.

Referenced by if().

void aagfree ( void *  ptr)

Definition at line 2165 of file scan.c.

Referenced by aag_delete_buffer(), and aaglex_destroy().

int aagget_debug ( void  )

Definition at line 2064 of file scan.c.

References aag_flex_debug.

YY_EXTRA_TYPE aagget_extra ( void  )
FILE * aagget_in ( void  )

Get the input stream.

Definition at line 2008 of file scan.c.

References aagin.

aag_size_t aagget_leng ( void  )

Get the length of the current token.

Definition at line 2024 of file scan.c.

References aagleng.

int aagget_lineno ( void  )

Get the current line number.

Definition at line 1999 of file scan.c.

References aaglineno.

FILE * aagget_out ( void  )

Get the output stream.

Definition at line 2016 of file scan.c.

References aagout.

char * aagget_text ( void  )

Get the current token.

Definition at line 2033 of file scan.c.

References aagtext.

int aaglex ( void  )
int aaglex_destroy ( void  )
void aagpop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1819 of file scan.c.

References aag_delete_buffer(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by aaglex_destroy().

void aagpush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1789 of file scan.c.

References NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void * aagrealloc ( void *  ptr,
aag_size_t  size 
)

Definition at line 2153 of file scan.c.

void aagrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1623 of file scan.c.

References aag_create_buffer(), aagin, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void aagset_debug ( int  debug_flag)

Definition at line 2069 of file scan.c.

void aagset_extra ( YY_EXTRA_TYPE  user_defined)
void aagset_in ( FILE *  in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See Also
aag_switch_to_buffer

Definition at line 2054 of file scan.c.

References aagin.

void aagset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2042 of file scan.c.

void aagset_out ( FILE *  out_str)

Definition at line 2059 of file scan.c.

References aagout.

int aagwrap ( void  )

Referenced by while().

int aagwrap ( YY_CALL_ONLY_ARG  )

Definition at line 2237 of file scan.c.

void aglexbad ( void  )

Definition at line 2231 of file scan.c.

References YY_FLUSH_BUFFER.

Referenced by agconcat().

void aglexeof ( void  )

Definition at line 2229 of file scan.c.

References GRAPH_EOF_TOKEN, and unput.

void aglexinit ( Agdisc_t disc,
void *  ifile 
)

Definition at line 579 of file scan.c.

Referenced by agconcat().

void agreadline ( int  n)

Definition at line 569 of file scan.c.

void agsetfile ( char *  f)

Definition at line 573 of file scan.c.

Referenced by agmemread(), and gvNextInputGraph().

if ( YY_CURRENT_BUFFER)

Definition at line 933 of file scan.c.

References aag_create_buffer(), aagin, YY_BUF_SIZE, and YY_CURRENT_BUFFER_LVALUE.

while ( )

Variable Documentation

register int aag_act

Definition at line 910 of file scan.c.

register char * aag_bp

Definition at line 909 of file scan.c.

register char* aag_cp

Definition at line 909 of file scan.c.

Referenced by while().

int aag_flex_debug = 0

Definition at line 530 of file scan.c.

Referenced by aagget_debug().

aagin = (FILE *) 0

Definition at line 337 of file scan.c.

aag_size_t aagleng

Definition at line 275 of file scan.c.

Referenced by aagget_leng(), and while().

int aaglineno = 1

Definition at line 343 of file scan.c.

Referenced by aagget_lineno().

FILE * aagout = (FILE *) 0

Definition at line 337 of file scan.c.

Referenced by aagget_out(), and aagset_out().

char * aagtext

Definition at line 539 of file scan.c.

Referenced by aagget_text().

YY_DECL
Initial value:
{
register aag_state_type aag_current_state
int aag_state_type
Definition: scan.c:339

The main scanner function which does all the work.

Definition at line 907 of file scan.c.