PostGIS  2.4.9dev-r@@SVN_REVISION@@
lwin_wkt_parse.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.4. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 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_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED
38 # define YY_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED
39 /* Debug traces. */
40 #ifndef YYDEBUG
41 # define YYDEBUG 0
42 #endif
43 #if YYDEBUG
44 extern int wkt_yydebug;
45 #endif
46 
47 /* Token type. */
48 #ifndef YYTOKENTYPE
49 # define YYTOKENTYPE
51  {
52  POINT_TOK = 258,
54  POLYGON_TOK = 260,
55  MPOINT_TOK = 261,
57  MPOLYGON_TOK = 263,
58  MSURFACE_TOK = 264,
59  MCURVE_TOK = 265,
64  RBRACKET_TOK = 270,
65  LBRACKET_TOK = 271,
66  COMMA_TOK = 272,
67  EMPTY_TOK = 273,
69  TRIANGLE_TOK = 275,
70  TIN_TOK = 276,
72  DOUBLE_TOK = 278,
74  SRID_TOK = 280
75  };
76 #endif
77 /* Tokens. */
78 #define POINT_TOK 258
79 #define LINESTRING_TOK 259
80 #define POLYGON_TOK 260
81 #define MPOINT_TOK 261
82 #define MLINESTRING_TOK 262
83 #define MPOLYGON_TOK 263
84 #define MSURFACE_TOK 264
85 #define MCURVE_TOK 265
86 #define CURVEPOLYGON_TOK 266
87 #define COMPOUNDCURVE_TOK 267
88 #define CIRCULARSTRING_TOK 268
89 #define COLLECTION_TOK 269
90 #define RBRACKET_TOK 270
91 #define LBRACKET_TOK 271
92 #define COMMA_TOK 272
93 #define EMPTY_TOK 273
94 #define SEMICOLON_TOK 274
95 #define TRIANGLE_TOK 275
96 #define TIN_TOK 276
97 #define POLYHEDRALSURFACE_TOK 277
98 #define DOUBLE_TOK 278
99 #define DIMENSIONALITY_TOK 279
100 #define SRID_TOK 280
101 
102 /* Value type. */
103 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
104 union YYSTYPE
105 {
106 #line 113 "lwin_wkt_parse.y"
107 
109  double doublevalue;
110  char *stringvalue;
114 
115 #line 116 "lwin_wkt_parse.h"
116 
117 };
118 typedef union YYSTYPE YYSTYPE;
119 # define YYSTYPE_IS_TRIVIAL 1
120 # define YYSTYPE_IS_DECLARED 1
121 #endif
122 
123 /* Location type. */
124 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
125 typedef struct YYLTYPE YYLTYPE;
126 struct YYLTYPE
127 {
132 };
133 # define YYLTYPE_IS_DECLARED 1
134 # define YYLTYPE_IS_TRIVIAL 1
135 #endif
136 
137 
138 extern YYSTYPE wkt_yylval;
139 extern YYLTYPE wkt_yylloc;
140 int wkt_yyparse (void);
141 
142 #endif /* !YY_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED */
#define MLINESTRING_TOK
#define COLLECTION_TOK
#define LBRACKET_TOK
POINT coordinatevalue
#define COMPOUNDCURVE_TOK
#define MPOINT_TOK
#define LINESTRING_TOK
int first_line
char * stringvalue
POINTARRAY * ptarrayvalue
#define POINT_TOK
#define POLYGON_TOK
#define DOUBLE_TOK
#define DIMENSIONALITY_TOK
#define MPOLYGON_TOK
#define COMMA_TOK
LWGEOM * geometryvalue
yytokentype
#define EMPTY_TOK
int last_column
YYLTYPE wkt_yylloc
#define MSURFACE_TOK
int integervalue
#define SEMICOLON_TOK
double doublevalue
#define TRIANGLE_TOK
#define RBRACKET_TOK
Definition: lwin_wkt.h:32
int first_column
#define SRID_TOK
#define TIN_TOK
#define CIRCULARSTRING_TOK
#define POLYHEDRALSURFACE_TOK
int wkt_yyparse(void)
YYSTYPE wkt_yylval
int wkt_yydebug
#define MCURVE_TOK
#define CURVEPOLYGON_TOK