Graphviz  2.29.20120524.0446
Data Structures | Defines | Typedefs | Enumerations | Functions | Variables
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.5"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYPUSH   0
#define YYPULL   1
#define YYLSP_NEEDED   0
#define GSTACK_SIZE   64
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define YYTOKENTYPE
#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 YYSTYPE_IS_TRIVIAL   1
#define agstype   YYSTYPE
#define YYSTYPE_IS_DECLARED   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_NEEDED   1
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define YYCOPY(To, From, Count)
#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 agpact_value_is_default(agstate)   ((agstate) == (-68))
#define agtable_value_is_error(agtable_value)   YYID (0)
#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 union YYSTYPE YYSTYPE
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

static char In_edge_stmt
static int Agraph_type
int agchar
YYSTYPE aglval
int agnerrs

Define Documentation

#define agclearin   (agchar = YYEMPTY)

Definition at line 919 of file parser.c.

#define agerrok   (agerrstatus = 0)

Definition at line 918 of file parser.c.

#define agpact_value_is_default (   agstate)    ((agstate) == (-68))

Definition at line 884 of file parser.c.

Referenced by agparse().

#define agstype   YYSTYPE

Definition at line 436 of file parser.c.

#define agtable_value_is_error (   agtable_value)    YYID (0)

Definition at line 887 of file parser.c.

Referenced by agparse().

#define GSTACK_SIZE   64

Definition at line 87 of file parser.c.

#define T_digraph   259

Definition at line 406 of file parser.c.

#define T_edge   262

Definition at line 409 of file parser.c.

#define T_edgeop   263

Definition at line 410 of file parser.c.

Referenced by aglex().

#define T_graph   258

Definition at line 405 of file parser.c.

#define T_node   261

Definition at line 408 of file parser.c.

#define T_qsymbol   265

Definition at line 412 of file parser.c.

Referenced by aglex().

#define T_strict   260

Definition at line 407 of file parser.c.

#define T_subgraph   266

Definition at line 413 of file parser.c.

#define T_symbol   264

Definition at line 411 of file parser.c.

Referenced by myaglex(), and aglex().

#define YY_ (   msgid)    msgid

Definition at line 502 of file parser.c.

Referenced by agparse().

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

Definition at line 995 of file parser.c.

#define YY_REDUCE_PRINT (   Rule)

Definition at line 1167 of file parser.c.

Referenced by agparse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 1166 of file parser.c.

Referenced by agparse().

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

Definition at line 1165 of file parser.c.

Referenced by agparse().

#define YYABORT   goto agabortlab

Definition at line 924 of file parser.c.

Referenced by agparse().

#define YYACCEPT   goto agacceptlab

Definition at line 923 of file parser.c.

Referenced by agparse().

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

Definition at line 945 of file parser.c.

#define YYBISON   1

Definition at line 44 of file parser.c.

#define YYBISON_VERSION   "2.5"

Definition at line 47 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 649 of file parser.c.

#define YYCOPY_NEEDED   1

Definition at line 621 of file parser.c.

#define YYDEBUG   0

Definition at line 370 of file parser.c.

#define YYDPRINTF (   Args)

Definition at line 1164 of file parser.c.

Referenced by agparse().

#define YYEMPTY   (-2)

Definition at line 920 of file parser.c.

Referenced by agparse().

#define YYEOF   0

Definition at line 921 of file parser.c.

Referenced by agparse().

#define YYERRCODE   256

Definition at line 963 of file parser.c.

#define YYERROR   goto agerrorlab

Definition at line 925 of file parser.c.

#define YYERROR_VERBOSE   0

Definition at line 378 of file parser.c.

#define YYFAIL   goto agerrlab

Definition at line 935 of file parser.c.

#define YYFINAL   9

Definition at line 662 of file parser.c.

Referenced by agparse().

#define YYFREE   free

Definition at line 591 of file parser.c.

#define YYID (   n)    (n)

Definition at line 515 of file parser.c.

Referenced by agparse().

#define YYINITDEPTH   200

Definition at line 1173 of file parser.c.

Referenced by agparse().

#define YYLAST   80

Definition at line 664 of file parser.c.

Referenced by agparse().

#define YYLEX   aglex ()

Definition at line 1004 of file parser.c.

Referenced by agparse().

#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 972 of file parser.c.

#define YYLSP_NEEDED   0

Definition at line 62 of file parser.c.

#define YYMALLOC   malloc

Definition at line 584 of file parser.c.

#define YYMAXDEPTH   10000

Definition at line 1184 of file parser.c.

Referenced by agparse().

#define YYMAXUTOK   266

Definition at line 677 of file parser.c.

#define YYNNTS   37

Definition at line 669 of file parser.c.

#define YYNRULES   68

Definition at line 671 of file parser.c.

#define YYNSTATES   90

Definition at line 673 of file parser.c.

#define YYNTOKENS   21

Definition at line 667 of file parser.c.

Referenced by agparse().

#define YYPACT_NINF   -68

Definition at line 844 of file parser.c.

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

Definition at line 59 of file parser.c.

#define YYPURE   0

Definition at line 53 of file parser.c.

#define YYPUSH   0

Definition at line 56 of file parser.c.

#define YYRECOVERING ( )    (!!agerrstatus)

Definition at line 943 of file parser.c.

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

Definition at line 970 of file parser.c.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 492 of file parser.c.

#define YYSIZE_T   unsigned int

Definition at line 488 of file parser.c.

Referenced by agparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 50 of file parser.c.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 570 of file parser.c.

Referenced by agparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 573 of file parser.c.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (agtype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 617 of file parser.c.

Referenced by agparse().

#define YYSTACK_FREE   YYFREE

Definition at line 571 of file parser.c.

Referenced by agparse().

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

Definition at line 613 of file parser.c.

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

Definition at line 628 of file parser.c.

Referenced by agparse().

#define YYSTYPE_IS_DECLARED   1

Definition at line 437 of file parser.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 435 of file parser.c.

#define YYTABLE_NINF   -57

Definition at line 870 of file parser.c.

#define YYTERROR   1

Definition at line 962 of file parser.c.

Referenced by agparse().

#define YYTOKEN_TABLE   0

Definition at line 383 of file parser.c.

#define YYTOKENTYPE

Definition at line 389 of file parser.c.

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

Definition at line 679 of file parser.c.

Referenced by agparse().

#define YYUNDEFTOK   2

Definition at line 676 of file parser.c.

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

Definition at line 508 of file parser.c.


Typedef Documentation

typedef short int agtype_int16

Definition at line 475 of file parser.c.

typedef short int agtype_int8

Definition at line 463 of file parser.c.

typedef unsigned short int agtype_uint16

Definition at line 469 of file parser.c.

typedef unsigned char agtype_uint8

Definition at line 454 of file parser.c.

typedef union YYSTYPE YYSTYPE

Enumeration Type Documentation

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 392 of file parser.c.


Function Documentation

int agparse ( void  )

Variable Documentation

int agchar

Definition at line 1475 of file parser.c.

Definition at line 1478 of file parser.c.

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

int agnerrs

Definition at line 1481 of file parser.c.

Referenced by agparse().

Definition at line 80 of file parser.c.

Referenced by agparse().

Definition at line 79 of file parser.c.