/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/graph/parser.c File Reference

#include "libgraph.h"

Include dependency graph for parser.c:

Go to the source code of this file.

Data Structures

union  YYSTYPE
union  agalloc

Defines

#define YYBISON   1
#define YYBISON_VERSION   "2.3"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define T_graph   258
#define T_digraph   259
#define T_strict   260
#define T_node   261
#define T_edge   262
#define T_edgeop   263
#define T_symbol   264
#define T_qsymbol   265
#define T_subgraph   266
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define agstype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYSIZE_T   unsigned int
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YY_(msgid)   msgid
#define YYUSE(e)   ((void) (e))
#define YYID(n)   (n)
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
#define YYMALLOC   malloc
#define YYFREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union agalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   9
#define YYLAST   80
#define YYNTOKENS   21
#define YYNNTS   37
#define YYNRULES   68
#define YYNSTATES   90
#define YYUNDEFTOK   2
#define YYMAXUTOK   266
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? agtranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -68
#define YYTABLE_NINF   -57
#define agerrok   (agerrstatus = 0)
#define agclearin   (agchar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto agacceptlab
#define YYABORT   goto agabortlab
#define YYERROR   goto agerrorlab
#define YYFAIL   goto agerrlab
#define YYRECOVERING()   (!!agerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
#define YYLEX   aglex ()
#define YYDPRINTF(Args)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPOPSTACK(N)   (agvsp -= (N), agssp -= (N))

Typedefs

typedef unsigned char agtype_uint8
typedef short int agtype_int8
typedef unsigned short int agtype_uint16
typedef short int agtype_int16

Enumerations

enum  agtokentype {
  T_graph = 258, T_digraph = 259, T_strict = 260, T_node = 261,
  T_edge = 262, T_edgeop = 263, T_symbol = 264, T_qsymbol = 265,
  T_subgraph = 266, T_graph = 258, T_digraph = 259, T_strict = 260,
  T_node = 261, T_edge = 262, T_edgeop = 263, T_symbol = 264,
  T_qsymbol = 265, T_subgraph = 266
}

Functions

int agparse ()

Variables

int agchar
YYSTYPE aglval
int agnerrs


Define Documentation

#define agclearin   (agchar = YYEMPTY)

Definition at line 888 of file parser.c.

#define agerrok   (agerrstatus = 0)

Definition at line 887 of file parser.c.

#define agstype   YYSTYPE

Definition at line 413 of file parser.c.

#define T_digraph   259

Definition at line 82 of file parser.c.

#define T_edge   262

Definition at line 85 of file parser.c.

#define T_edgeop   263

Definition at line 86 of file parser.c.

Referenced by aglex().

#define T_graph   258

Definition at line 81 of file parser.c.

#define T_node   261

Definition at line 84 of file parser.c.

#define T_qsymbol   265

Definition at line 88 of file parser.c.

Referenced by aglex().

#define T_strict   260

Definition at line 83 of file parser.c.

#define T_subgraph   266

Definition at line 89 of file parser.c.

#define T_symbol   264

Definition at line 87 of file parser.c.

Referenced by aglex(), and myaglex().

#define YY_ ( msgid   )     msgid

Definition at line 481 of file parser.c.

#define YY_LOCATION_PRINT ( File,
Loc   )     ((void) 0)

Definition at line 964 of file parser.c.

#define YY_REDUCE_PRINT ( Rule   ) 

Definition at line 1134 of file parser.c.

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Definition at line 1133 of file parser.c.

#define YY_SYMBOL_PRINT ( Title,
Type,
Value,
Location   ) 

Definition at line 1132 of file parser.c.

#define YYABORT   goto agabortlab

Definition at line 893 of file parser.c.

#define YYACCEPT   goto agacceptlab

Definition at line 892 of file parser.c.

#define YYBACKUP ( Token,
Value   ) 

Value:

do                                                              \
  if (agchar == YYEMPTY && aglen == 1)                          \
    {                                                           \
      agchar = (Token);                                         \
      aglval = (Value);                                         \
      agtoken = YYTRANSLATE (agchar);                           \
      YYPOPSTACK (1);                                           \
      goto agbackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      agerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (YYID (0))

Definition at line 905 of file parser.c.

#define YYBISON   1

Definition at line 47 of file parser.c.

#define YYBISON_VERSION   "2.3"

Definition at line 50 of file parser.c.

#define YYCOPY ( To,
From,
Count   ) 

Value:

do                                      \
        {                                       \
          YYSIZE_T agi;                         \
          for (agi = 0; agi < (Count); agi++)   \
            (To)[agi] = (From)[agi];            \
        }                                       \
      while (YYID (0))

Definition at line 607 of file parser.c.

#define YYDEBUG   0

Definition at line 385 of file parser.c.

#define YYDPRINTF ( Args   ) 

Definition at line 1131 of file parser.c.

#define YYEMPTY   (-2)

Definition at line 889 of file parser.c.

#define YYEOF   0

Definition at line 890 of file parser.c.

#define YYERRCODE   256

Definition at line 924 of file parser.c.

#define YYERROR   goto agerrorlab

Definition at line 894 of file parser.c.

#define YYERROR_VERBOSE   0

Definition at line 393 of file parser.c.

#define YYFAIL   goto agerrlab

Definition at line 901 of file parser.c.

#define YYFINAL   9

Definition at line 637 of file parser.c.

#define YYFREE   free

Definition at line 570 of file parser.c.

#define YYID (  )     (n)

Definition at line 494 of file parser.c.

#define YYINITDEPTH   200

Definition at line 1140 of file parser.c.

#define YYLAST   80

Definition at line 639 of file parser.c.

#define YYLEX   aglex ()

Definition at line 974 of file parser.c.

#define YYLLOC_DEFAULT ( Current,
Rhs,
 ) 

Value:

do                                                                      \
      if (YYID (N))                                                    \
        {                                                               \
          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
        }                                                               \
      else                                                              \
        {                                                               \
          (Current).first_line   = (Current).last_line   =              \
            YYRHSLOC (Rhs, 0).last_line;                                \
          (Current).first_column = (Current).last_column =              \
            YYRHSLOC (Rhs, 0).last_column;                              \
        }                                                               \
    while (YYID (0))

Definition at line 933 of file parser.c.

#define YYLSP_NEEDED   0

Definition at line 59 of file parser.c.

#define YYMALLOC   malloc

Definition at line 563 of file parser.c.

#define YYMAXDEPTH   10000

Definition at line 1151 of file parser.c.

#define YYMAXUTOK   266

Definition at line 652 of file parser.c.

#define YYNNTS   37

Definition at line 644 of file parser.c.

#define YYNRULES   68

Definition at line 646 of file parser.c.

#define YYNSTATES   90

Definition at line 648 of file parser.c.

#define YYNTOKENS   21

Definition at line 642 of file parser.c.

#define YYPACT_NINF   -68

Definition at line 818 of file parser.c.

#define YYPOPSTACK (  )     (agvsp -= (N), agssp -= (N))

#define YYPURE   0

Definition at line 56 of file parser.c.

 
#define YYRECOVERING (  )     (!!agerrstatus)

Definition at line 903 of file parser.c.

#define YYRHSLOC ( Rhs,
 )     ((Rhs)[K])

Definition at line 931 of file parser.c.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 471 of file parser.c.

#define YYSIZE_T   unsigned int

Definition at line 467 of file parser.c.

#define YYSKELETON_NAME   "yacc.c"

Definition at line 53 of file parser.c.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 549 of file parser.c.

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 552 of file parser.c.

#define YYSTACK_BYTES (  ) 

Value:

((N) * (sizeof (agtype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 596 of file parser.c.

#define YYSTACK_FREE   YYFREE

Definition at line 550 of file parser.c.

#define YYSTACK_GAP_MAXIMUM   (sizeof (union agalloc) - 1)

Definition at line 592 of file parser.c.

#define YYSTACK_RELOCATE ( Stack   ) 

Value:

do                                                                      \
      {                                                                 \
        YYSIZE_T agnewbytes;                                            \
        YYCOPY (&agptr->Stack, Stack, agsize);                          \
        Stack = &agptr->Stack;                                          \
        agnewbytes = agstacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        agptr += agnewbytes / sizeof (*agptr);                          \
      }                                                                 \
    while (YYID (0))

Definition at line 623 of file parser.c.

#define YYSTYPE_IS_DECLARED   1

Definition at line 414 of file parser.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 415 of file parser.c.

#define YYTABLE_NINF   -57

Definition at line 845 of file parser.c.

#define YYTERROR   1

Definition at line 923 of file parser.c.

#define YYTOKEN_TABLE   0

Definition at line 398 of file parser.c.

#define YYTRANSLATE ( YYX   )     ((unsigned int) (YYX) <= YYMAXUTOK ? agtranslate[YYX] : YYUNDEFTOK)

Definition at line 654 of file parser.c.

#define YYUNDEFTOK   2

Definition at line 651 of file parser.c.

#define YYUSE (  )     ((void) (e))

Definition at line 487 of file parser.c.


Typedef Documentation

typedef short int agtype_int16

Definition at line 454 of file parser.c.

typedef short int agtype_int8

Definition at line 442 of file parser.c.

typedef unsigned short int agtype_uint16

Definition at line 448 of file parser.c.

typedef unsigned char agtype_uint8

Definition at line 433 of file parser.c.


Enumeration Type Documentation

enum agtokentype

Enumerator:
T_graph 
T_digraph 
T_strict 
T_node 
T_edge 
T_edgeop 
T_symbol 
T_qsymbol 
T_subgraph 
T_graph 
T_digraph 
T_strict 
T_node 
T_edge 
T_edgeop 
T_symbol 
T_qsymbol 
T_subgraph 

Definition at line 68 of file parser.c.


Function Documentation

int agparse (  ) 


Variable Documentation

int agchar

Definition at line 1418 of file parser.c.

YYSTYPE aglval

Definition at line 1421 of file parser.c.

Referenced by aglex(), agparse(), and myaglex().

int agnerrs

Definition at line 1424 of file parser.c.


Generated on Mon Mar 31 19:05:55 2008 for Graphviz by  doxygen 1.5.1