Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
grammar.h
Go to the documentation of this file.
1/* A Bison parser, made by GNU Bison 3.5.1. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
6 Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21/* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
30
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
33
34/* Undocumented macros, especially those whose name start with YY_,
35 are private implementation details. Do not rely on them. */
36
37#ifndef YY_AAG_GRAMMAR_H_INCLUDED
38# define YY_AAG_GRAMMAR_H_INCLUDED
39/* Debug traces. */
40#ifndef AAGDEBUG
41# if defined YYDEBUG
42#if YYDEBUG
43# define AAGDEBUG 1
44# else
45# define AAGDEBUG 0
46# endif
47# else /* ! defined YYDEBUG */
48# define AAGDEBUG 0
49# endif /* ! defined YYDEBUG */
50#endif /* ! defined AAGDEBUG */
51#if AAGDEBUG
52extern int aagdebug;
53#endif
54
55/* Token type. */
56#ifndef AAGTOKENTYPE
57# define AAGTOKENTYPE
59 {
60 T_graph = 258,
61 T_node = 259,
62 T_edge = 260,
63 T_digraph = 261,
65 T_strict = 263,
66 T_edgeop = 264,
67 T_list = 265,
68 T_attr = 266,
69 T_atom = 267,
70 T_qatom = 268
71 };
72#endif
73/* Tokens. */
74#define T_graph 258
75#define T_node 259
76#define T_edge 260
77#define T_digraph 261
78#define T_subgraph 262
79#define T_strict 263
80#define T_edgeop 264
81#define T_list 265
82#define T_attr 266
83#define T_atom 267
84#define T_qatom 268
85
86/* Value type. */
87#if ! defined AAGSTYPE && ! defined AAGSTYPE_IS_DECLARED
88union AAGSTYPE
89{
90#line 93 "../../lib/cgraph/grammar.y"
91
92 int i;
93 char *str;
94 struct Agnode_s *n;
95
96#line 97 "grammar.h"
97
98};
99typedef union AAGSTYPE AAGSTYPE;
100# define AAGSTYPE_IS_TRIVIAL 1
101# define AAGSTYPE_IS_DECLARED 1
102#endif
103
104
105extern AAGSTYPE aaglval;
106
107int aagparse (void);
108
109#endif /* !YY_AAG_GRAMMAR_H_INCLUDED */
aagtokentype
Definition grammar.c:202
#define T_node
Definition grammar.h:75
#define T_atom
Definition grammar.h:83
AAGSTYPE aaglval
#define T_attr
Definition grammar.h:82
#define T_subgraph
Definition grammar.h:78
#define T_edge
Definition grammar.h:76
#define T_strict
Definition grammar.h:79
int aagparse(void)
#define T_qatom
Definition grammar.h:84
#define T_digraph
Definition grammar.h:77
#define T_graph
Definition grammar.h:74
#define T_list
Definition grammar.h:81
#define T_edgeop
Definition grammar.h:80
char * str
Definition grammar.c:236
int i
Definition grammar.c:235
struct Agnode_s * n
Definition grammar.c:237