PostGIS  2.1.10dev-r@@SVN_REVISION@@
lwin_wkt_parse.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 2.5. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 
34 /* Tokens. */
35 #ifndef YYTOKENTYPE
36 # define YYTOKENTYPE
37  /* Put the tokens into the symbol table, so that GDB and other debuggers
38  know about them. */
39  enum yytokentype {
40  POINT_TOK = 258,
42  POLYGON_TOK = 260,
43  MPOINT_TOK = 261,
45  MPOLYGON_TOK = 263,
46  MSURFACE_TOK = 264,
47  MCURVE_TOK = 265,
52  RBRACKET_TOK = 270,
53  LBRACKET_TOK = 271,
54  COMMA_TOK = 272,
55  EMPTY_TOK = 273,
57  TRIANGLE_TOK = 275,
58  TIN_TOK = 276,
60  DOUBLE_TOK = 278,
62  SRID_TOK = 280
63  };
64 #endif
65 /* Tokens. */
66 #define POINT_TOK 258
67 #define LINESTRING_TOK 259
68 #define POLYGON_TOK 260
69 #define MPOINT_TOK 261
70 #define MLINESTRING_TOK 262
71 #define MPOLYGON_TOK 263
72 #define MSURFACE_TOK 264
73 #define MCURVE_TOK 265
74 #define CURVEPOLYGON_TOK 266
75 #define COMPOUNDCURVE_TOK 267
76 #define CIRCULARSTRING_TOK 268
77 #define COLLECTION_TOK 269
78 #define RBRACKET_TOK 270
79 #define LBRACKET_TOK 271
80 #define COMMA_TOK 272
81 #define EMPTY_TOK 273
82 #define SEMICOLON_TOK 274
83 #define TRIANGLE_TOK 275
84 #define TIN_TOK 276
85 #define POLYHEDRALSURFACE_TOK 277
86 #define DOUBLE_TOK 278
87 #define DIMENSIONALITY_TOK 279
88 #define SRID_TOK 280
89 
90 
91 
92 
93 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
94 typedef union YYSTYPE
95 {
96 
97 /* Line 2068 of yacc.c */
98 #line 98 "lwin_wkt_parse.y"
99 
101  double doublevalue;
102  char *stringvalue;
106 
107 
108 
109 /* Line 2068 of yacc.c */
110 #line 111 "lwin_wkt_parse.h"
111 } YYSTYPE;
112 # define YYSTYPE_IS_TRIVIAL 1
113 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
114 # define YYSTYPE_IS_DECLARED 1
115 #endif
116 
117 extern YYSTYPE wkt_yylval;
118 
119 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
120 typedef struct YYLTYPE
121 {
126 } YYLTYPE;
127 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
128 # define YYLTYPE_IS_DECLARED 1
129 # define YYLTYPE_IS_TRIVIAL 1
130 #endif
131 
132 extern YYLTYPE wkt_yylloc;
133 
#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
#define EMPTY_TOK
int last_column
yytokentype
YYLTYPE wkt_yylloc
#define MSURFACE_TOK
int integervalue
#define SEMICOLON_TOK
double doublevalue
struct YYLTYPE YYLTYPE
#define TRIANGLE_TOK
#define RBRACKET_TOK
Definition: lwin_wkt.h:7
union YYSTYPE YYSTYPE
int first_column
#define SRID_TOK
#define TIN_TOK
#define CIRCULARSTRING_TOK
#define POLYHEDRALSURFACE_TOK
YYSTYPE wkt_yylval
#define MCURVE_TOK
#define CURVEPOLYGON_TOK