PostGIS  2.3.8dev-r@@SVN_REVISION@@
lwin_wkt_parse.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * PostGIS - Spatial Types for PostgreSQL
4  * http://postgis.net
5  *
6  * PostGIS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * PostGIS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with PostGIS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  **********************************************************************
20  *
21  Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
22  *
23  **********************************************************************/
24 
25 
26 /* Bison interface for Yacc-like parsers in C
27 
28  Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
29 
30  This program is free software: you can redistribute it and/or modify
31  it under the terms of the GNU General Public License as published by
32  the Free Software Foundation, either version 3 of the License, or
33  (at your option) any later version.
34 
35  This program is distributed in the hope that it will be useful,
36  but WITHOUT ANY WARRANTY; without even the implied warranty of
37  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38  GNU General Public License for more details.
39 
40  You should have received a copy of the GNU General Public License
41  along with this program. If not, see <http://www.gnu.org/licenses/>. */
42 
43 /* As a special exception, you may create a larger work that contains
44  part or all of the Bison parser skeleton and distribute that work
45  under terms of your choice, so long as that work isn't itself a
46  parser generator using the skeleton or a modified version thereof
47  as a parser skeleton. Alternatively, if you modify or redistribute
48  the parser skeleton itself, you may (at your option) remove this
49  special exception, which will cause the skeleton and the resulting
50  Bison output files to be licensed under the GNU General Public
51  License without this special exception.
52 
53  This special exception was added by the Free Software Foundation in
54  version 2.2 of Bison. */
55 
56 #ifndef YY_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED
57 # define YY_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED
58 /* Debug traces. */
59 #ifndef YYDEBUG
60 # define YYDEBUG 0
61 #endif
62 #if YYDEBUG
63 extern int wkt_yydebug;
64 #endif
65 
66 /* Token type. */
67 #ifndef YYTOKENTYPE
68 # define YYTOKENTYPE
70  {
71  POINT_TOK = 258,
73  POLYGON_TOK = 260,
74  MPOINT_TOK = 261,
76  MPOLYGON_TOK = 263,
77  MSURFACE_TOK = 264,
78  MCURVE_TOK = 265,
83  RBRACKET_TOK = 270,
84  LBRACKET_TOK = 271,
85  COMMA_TOK = 272,
86  EMPTY_TOK = 273,
88  TRIANGLE_TOK = 275,
89  TIN_TOK = 276,
91  DOUBLE_TOK = 278,
93  SRID_TOK = 280
94  };
95 #endif
96 /* Tokens. */
97 #define POINT_TOK 258
98 #define LINESTRING_TOK 259
99 #define POLYGON_TOK 260
100 #define MPOINT_TOK 261
101 #define MLINESTRING_TOK 262
102 #define MPOLYGON_TOK 263
103 #define MSURFACE_TOK 264
104 #define MCURVE_TOK 265
105 #define CURVEPOLYGON_TOK 266
106 #define COMPOUNDCURVE_TOK 267
107 #define CIRCULARSTRING_TOK 268
108 #define COLLECTION_TOK 269
109 #define RBRACKET_TOK 270
110 #define LBRACKET_TOK 271
111 #define COMMA_TOK 272
112 #define EMPTY_TOK 273
113 #define SEMICOLON_TOK 274
114 #define TRIANGLE_TOK 275
115 #define TIN_TOK 276
116 #define POLYHEDRALSURFACE_TOK 277
117 #define DOUBLE_TOK 278
118 #define DIMENSIONALITY_TOK 279
119 #define SRID_TOK 280
120 
121 /* Value type. */
122 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
123 
124 union YYSTYPE
125 {
126 #line 108 "lwin_wkt_parse.y" /* yacc.c:1909 */
127 
129  double doublevalue;
130  char *stringvalue;
134 
135 #line 113 "lwin_wkt_parse.h" /* yacc.c:1909 */
136 };
137 
138 typedef union YYSTYPE YYSTYPE;
139 # define YYSTYPE_IS_TRIVIAL 1
140 # define YYSTYPE_IS_DECLARED 1
141 #endif
142 
143 /* Location type. */
144 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
145 typedef struct YYLTYPE YYLTYPE;
146 struct YYLTYPE
147 {
152 };
153 # define YYLTYPE_IS_DECLARED 1
154 # define YYLTYPE_IS_TRIVIAL 1
155 #endif
156 
157 
158 extern YYSTYPE wkt_yylval;
159 extern YYLTYPE wkt_yylloc;
160 int wkt_yyparse (void);
161 
162 #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