Graphviz 13.0.0~dev.20241220.2304
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/* "%code requires" blocks. */
55#line 22 "../../lib/cgraph/grammar.y"
56
57#include <cghdr.h>
58#include <util/agxbuf.h>
59
60struct gstack_s;
61
62struct aagextra_s {
63 int dummy; /* struct must not be empty */
64 /* Common */
65 /* Parser */
66 /* Lexer */
67};
68
69
70#line 71 "grammar.h"
71
72/* Token type. */
73#ifndef AAGTOKENTYPE
74# define AAGTOKENTYPE
76 {
77 T_graph = 258,
78 T_node = 259,
79 T_edge = 260,
80 T_digraph = 261,
82 T_strict = 263,
83 T_edgeop = 264,
84 T_list = 265,
85 T_attr = 266,
86 T_atom = 267,
87 T_qatom = 268
88 };
89#endif
90/* Tokens. */
91#define T_graph 258
92#define T_node 259
93#define T_edge 260
94#define T_digraph 261
95#define T_subgraph 262
96#define T_strict 263
97#define T_edgeop 264
98#define T_list 265
99#define T_attr 266
100#define T_atom 267
101#define T_qatom 268
102
103/* Value type. */
104#if ! defined AAGSTYPE && ! defined AAGSTYPE_IS_DECLARED
105union AAGSTYPE
106{
107#line 107 "../../lib/cgraph/grammar.y"
108
109 int i;
110 char *str;
111 struct Agnode_s *n;
112
113#line 114 "grammar.h"
114
115};
116typedef union AAGSTYPE AAGSTYPE;
117# define AAGSTYPE_IS_TRIVIAL 1
118# define AAGSTYPE_IS_DECLARED 1
119#endif
120
121
122extern AAGSTYPE aaglval;
123
124int aagparse (void);
125
126#endif /* !YY_AAG_GRAMMAR_H_INCLUDED */
cgraph.h additions
aagtokentype
Definition grammar.c:219
#define T_node
Definition grammar.h:92
#define T_atom
Definition grammar.h:100
AAGSTYPE aaglval
#define T_attr
Definition grammar.h:99
#define T_subgraph
Definition grammar.h:95
#define T_edge
Definition grammar.h:93
#define T_strict
Definition grammar.h:96
int aagparse(void)
#define T_qatom
Definition grammar.h:101
#define T_digraph
Definition grammar.h:94
#define T_graph
Definition grammar.h:91
#define T_list
Definition grammar.h:98
#define T_edgeop
Definition grammar.h:97
int dummy
Definition grammar.c:206
char * str
Definition grammar.c:253
int i
Definition grammar.c:252
struct Agnode_s * n
Definition grammar.c:254