Graphviz 13.0.0~dev.20250607.1528
Loading...
Searching...
No Matches
gmlparse.h
Go to the documentation of this file.
1/* A Bison parser, made by GNU Bison 3.8.2. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 <https://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/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35 especially those whose name start with YY_ or yy_. They are
36 private implementation details that can be changed or removed. */
37
38#ifndef YY_GML_GMLPARSE_H_INCLUDED
39# define YY_GML_GMLPARSE_H_INCLUDED
40/* Debug traces. */
41#ifndef GMLDEBUG
42# if defined YYDEBUG
43#if YYDEBUG
44# define GMLDEBUG 1
45# else
46# define GMLDEBUG 0
47# endif
48# else /* ! defined YYDEBUG */
49# define GMLDEBUG 0
50# endif /* ! defined YYDEBUG */
51#endif /* ! defined GMLDEBUG */
52#if GMLDEBUG
53extern int gmldebug;
54#endif
55
56/* Token kinds. */
57#ifndef GMLTOKENTYPE
58# define GMLTOKENTYPE
60 {
62 GMLEOF = 0, /* "end of file" */
63 GMLerror = 256, /* error */
64 GMLUNDEF = 257, /* "invalid token" */
65 GRAPH = 258, /* GRAPH */
66 NODE = 259, /* NODE */
67 EDGE = 260, /* EDGE */
68 DIRECTED = 261, /* DIRECTED */
69 SOURCE = 262, /* SOURCE */
70 TARGET = 263, /* TARGET */
71 XVAL = 264, /* XVAL */
72 YVAL = 265, /* YVAL */
73 WVAL = 266, /* WVAL */
74 HVAL = 267, /* HVAL */
75 LABEL = 268, /* LABEL */
76 GRAPHICS = 269, /* GRAPHICS */
77 LABELGRAPHICS = 270, /* LABELGRAPHICS */
78 TYPE = 271, /* TYPE */
79 FILL = 272, /* FILL */
80 OUTLINE = 273, /* OUTLINE */
81 OUTLINESTYLE = 274, /* OUTLINESTYLE */
82 OUTLINEWIDTH = 275, /* OUTLINEWIDTH */
83 WIDTH = 276, /* WIDTH */
84 STYLE = 277, /* STYLE */
85 LINE = 278, /* LINE */
86 POINT = 279, /* POINT */
87 TEXT = 280, /* TEXT */
88 FONTSIZE = 281, /* FONTSIZE */
89 FONTNAME = 282, /* FONTNAME */
90 COLOR = 283, /* COLOR */
91 INTEGER = 284, /* INTEGER */
92 REAL = 285, /* REAL */
93 STRING = 286, /* STRING */
94 ID = 287, /* ID */
95 NAME = 288, /* NAME */
96 LIST = 289 /* LIST */
97 };
99#endif
100/* Token kinds. */
101#define GMLEMPTY -2
102#define GMLEOF 0
103#define GMLerror 256
104#define GMLUNDEF 257
105#define GRAPH 258
106#define NODE 259
107#define EDGE 260
108#define DIRECTED 261
109#define SOURCE 262
110#define TARGET 263
111#define XVAL 264
112#define YVAL 265
113#define WVAL 266
114#define HVAL 267
115#define LABEL 268
116#define GRAPHICS 269
117#define LABELGRAPHICS 270
118#define TYPE 271
119#define FILL 272
120#define OUTLINE 273
121#define OUTLINESTYLE 274
122#define OUTLINEWIDTH 275
123#define WIDTH 276
124#define STYLE 277
125#define LINE 278
126#define POINT 279
127#define TEXT 280
128#define FONTSIZE 281
129#define FONTNAME 282
130#define COLOR 283
131#define INTEGER 284
132#define REAL 285
133#define STRING 286
134#define ID 287
135#define NAME 288
136#define LIST 289
137
138/* Value type. */
139#if ! defined GMLSTYPE && ! defined GMLSTYPE_IS_DECLARED
141{
142#line 196 "../../cmd/tools/gmlparse.y"
143
144 int i;
145 char *str;
149 attrs_t *list;
150
151#line 152 "gmlparse.h"
152
153};
154typedef union GMLSTYPE GMLSTYPE;
155# define GMLSTYPE_IS_TRIVIAL 1
156# define GMLSTYPE_IS_DECLARED 1
157#endif
158
159
160extern GMLSTYPE gmllval;
161
162
163int gmlparse (void);
164
165
166#endif /* !YY_GML_GMLPARSE_H_INCLUDED */
#define LABEL
Definition gmlparse.h:115
#define GMLUNDEF
Definition gmlparse.h:104
#define OUTLINESTYLE
Definition gmlparse.h:121
gmltokentype
Definition gmlparse.h:60
#define WIDTH
Definition gmlparse.h:123
GMLSTYPE gmllval
#define GRAPHICS
Definition gmlparse.h:116
#define REAL
Definition gmlparse.h:132
#define POINT
Definition gmlparse.h:126
#define NAME
Definition gmlparse.h:135
#define COLOR
Definition gmlparse.h:130
#define TEXT
Definition gmlparse.h:127
#define TYPE
Definition gmlparse.h:118
#define FONTSIZE
Definition gmlparse.h:128
#define FILL
Definition gmlparse.h:119
#define ID
Definition gmlparse.h:134
#define OUTLINEWIDTH
Definition gmlparse.h:122
#define SOURCE
Definition gmlparse.h:109
#define DIRECTED
Definition gmlparse.h:108
int gmlparse(void)
#define NODE
Definition gmlparse.h:106
#define GMLEMPTY
Definition gmlparse.h:101
#define GMLEOF
Definition gmlparse.h:102
#define TARGET
Definition gmlparse.h:110
#define STRING
Definition gmlparse.h:133
#define WVAL
Definition gmlparse.h:113
#define EDGE
Definition gmlparse.h:107
#define STYLE
Definition gmlparse.h:124
#define INTEGER
Definition gmlparse.h:131
#define HVAL
Definition gmlparse.h:114
#define YVAL
Definition gmlparse.h:112
#define FONTNAME
Definition gmlparse.h:129
#define LABELGRAPHICS
Definition gmlparse.h:117
#define LIST
Definition gmlparse.h:136
#define XVAL
Definition gmlparse.h:111
enum gmltokentype gmltoken_kind_t
Definition gmlparse.h:98
#define LINE
Definition gmlparse.h:125
#define OUTLINE
Definition gmlparse.h:120
#define GMLerror
Definition gmlparse.h:103
#define GRAPH
Definition gmlparse.h:105
char * str
Definition gmlparse.h:145
gmledge * ep
Definition gmlparse.h:147
gmlattr * ap
Definition gmlparse.h:148
gmlnode * np
Definition gmlparse.h:146
attrs_t * list
Definition gmlparse.h:149