PostGIS
3.7.0dev-r@@SVN_REVISION@@
lwin_wkt_parse.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_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED
39
# define YY_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED
40
/* Debug traces. */
41
#ifndef YYDEBUG
42
# define YYDEBUG 0
43
#endif
44
#if YYDEBUG
45
extern
int
wkt_yydebug
;
46
#endif
47
48
/* Token kinds. */
49
#ifndef YYTOKENTYPE
50
# define YYTOKENTYPE
51
enum
yytokentype
52
{
53
YYEMPTY
= -2,
54
YYEOF
= 0,
/* "end of file" */
55
YYerror
= 256,
/* error */
56
YYUNDEF
= 257,
/* "invalid token" */
57
POINT_TOK
= 258,
/* POINT_TOK */
58
LINESTRING_TOK
= 259,
/* LINESTRING_TOK */
59
POLYGON_TOK
= 260,
/* POLYGON_TOK */
60
MPOINT_TOK
= 261,
/* MPOINT_TOK */
61
MLINESTRING_TOK
= 262,
/* MLINESTRING_TOK */
62
MPOLYGON_TOK
= 263,
/* MPOLYGON_TOK */
63
MSURFACE_TOK
= 264,
/* MSURFACE_TOK */
64
MCURVE_TOK
= 265,
/* MCURVE_TOK */
65
CURVEPOLYGON_TOK
= 266,
/* CURVEPOLYGON_TOK */
66
COMPOUNDCURVE_TOK
= 267,
/* COMPOUNDCURVE_TOK */
67
CIRCULARSTRING_TOK
= 268,
/* CIRCULARSTRING_TOK */
68
COLLECTION_TOK
= 269,
/* COLLECTION_TOK */
69
RBRACKET_TOK
= 270,
/* RBRACKET_TOK */
70
LBRACKET_TOK
= 271,
/* LBRACKET_TOK */
71
COMMA_TOK
= 272,
/* COMMA_TOK */
72
EMPTY_TOK
= 273,
/* EMPTY_TOK */
73
SEMICOLON_TOK
= 274,
/* SEMICOLON_TOK */
74
TRIANGLE_TOK
= 275,
/* TRIANGLE_TOK */
75
TIN_TOK
= 276,
/* TIN_TOK */
76
POLYHEDRALSURFACE_TOK
= 277,
/* POLYHEDRALSURFACE_TOK */
77
DOUBLE_TOK
= 278,
/* DOUBLE_TOK */
78
DIMENSIONALITY_TOK
= 279,
/* DIMENSIONALITY_TOK */
79
SRID_TOK
= 280
/* SRID_TOK */
80
};
81
typedef
enum
yytokentype
yytoken_kind_t
;
82
#endif
83
84
/* Value type. */
85
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
86
union
YYSTYPE
87
{
88
#line 112 "lwin_wkt_parse.y"
89
90
int
integervalue
;
91
double
doublevalue
;
92
char
*
stringvalue
;
93
LWGEOM
*
geometryvalue
;
94
POINT
coordinatevalue
;
95
POINTARRAY
*
ptarrayvalue
;
96
97
#line 98 "lwin_wkt_parse.h"
98
99
};
100
typedef
union
YYSTYPE
YYSTYPE
;
101
# define YYSTYPE_IS_TRIVIAL 1
102
# define YYSTYPE_IS_DECLARED 1
103
#endif
104
105
/* Location type. */
106
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
107
typedef
struct
YYLTYPE
YYLTYPE
;
108
struct
YYLTYPE
109
{
110
int
first_line
;
111
int
first_column
;
112
int
last_line
;
113
int
last_column
;
114
};
115
# define YYLTYPE_IS_DECLARED 1
116
# define YYLTYPE_IS_TRIVIAL 1
117
#endif
118
119
120
extern
YYSTYPE
wkt_yylval
;
121
extern
YYLTYPE
wkt_yylloc
;
122
123
int
wkt_yyparse
(
void
);
124
125
126
#endif
/* !YY_WKT_YY_LWIN_WKT_PARSE_H_INCLUDED */
wkt_yydebug
int wkt_yydebug
Definition:
lwin_wkt_parse.c:100
wkt_yylval
YYSTYPE wkt_yylval
yytokentype
yytokentype
Definition:
lwin_wkt_parse.h:52
SEMICOLON_TOK
@ SEMICOLON_TOK
Definition:
lwin_wkt_parse.h:73
COMMA_TOK
@ COMMA_TOK
Definition:
lwin_wkt_parse.h:71
LINESTRING_TOK
@ LINESTRING_TOK
Definition:
lwin_wkt_parse.h:58
YYEOF
@ YYEOF
Definition:
lwin_wkt_parse.h:54
COMPOUNDCURVE_TOK
@ COMPOUNDCURVE_TOK
Definition:
lwin_wkt_parse.h:66
MSURFACE_TOK
@ MSURFACE_TOK
Definition:
lwin_wkt_parse.h:63
COLLECTION_TOK
@ COLLECTION_TOK
Definition:
lwin_wkt_parse.h:68
POLYHEDRALSURFACE_TOK
@ POLYHEDRALSURFACE_TOK
Definition:
lwin_wkt_parse.h:76
RBRACKET_TOK
@ RBRACKET_TOK
Definition:
lwin_wkt_parse.h:69
YYerror
@ YYerror
Definition:
lwin_wkt_parse.h:55
YYEMPTY
@ YYEMPTY
Definition:
lwin_wkt_parse.h:53
MLINESTRING_TOK
@ MLINESTRING_TOK
Definition:
lwin_wkt_parse.h:61
POINT_TOK
@ POINT_TOK
Definition:
lwin_wkt_parse.h:57
CURVEPOLYGON_TOK
@ CURVEPOLYGON_TOK
Definition:
lwin_wkt_parse.h:65
EMPTY_TOK
@ EMPTY_TOK
Definition:
lwin_wkt_parse.h:72
LBRACKET_TOK
@ LBRACKET_TOK
Definition:
lwin_wkt_parse.h:70
TRIANGLE_TOK
@ TRIANGLE_TOK
Definition:
lwin_wkt_parse.h:74
SRID_TOK
@ SRID_TOK
Definition:
lwin_wkt_parse.h:79
MPOLYGON_TOK
@ MPOLYGON_TOK
Definition:
lwin_wkt_parse.h:62
YYUNDEF
@ YYUNDEF
Definition:
lwin_wkt_parse.h:56
TIN_TOK
@ TIN_TOK
Definition:
lwin_wkt_parse.h:75
CIRCULARSTRING_TOK
@ CIRCULARSTRING_TOK
Definition:
lwin_wkt_parse.h:67
MPOINT_TOK
@ MPOINT_TOK
Definition:
lwin_wkt_parse.h:60
DIMENSIONALITY_TOK
@ DIMENSIONALITY_TOK
Definition:
lwin_wkt_parse.h:78
POLYGON_TOK
@ POLYGON_TOK
Definition:
lwin_wkt_parse.h:59
MCURVE_TOK
@ MCURVE_TOK
Definition:
lwin_wkt_parse.h:64
DOUBLE_TOK
@ DOUBLE_TOK
Definition:
lwin_wkt_parse.h:77
wkt_yylloc
YYLTYPE wkt_yylloc
wkt_yyparse
int wkt_yyparse(void)
yytoken_kind_t
enum yytokentype yytoken_kind_t
Definition:
lwin_wkt_parse.h:81
LWGEOM
Definition:
liblwgeom.h:457
POINTARRAY
Definition:
liblwgeom.h:426
POINT
Definition:
lwin_wkt.h:33
YYLTYPE::last_line
int last_line
Definition:
lwin_wkt_parse.h:112
YYLTYPE::first_column
int first_column
Definition:
lwin_wkt_parse.h:111
YYLTYPE::first_line
int first_line
Definition:
lwin_wkt_parse.h:110
YYLTYPE::last_column
int last_column
Definition:
lwin_wkt_parse.h:113
YYLTYPE
Definition:
lwin_wkt_parse.h:109
YYSTYPE::ptarrayvalue
POINTARRAY * ptarrayvalue
Definition:
lwin_wkt_parse.h:95
YYSTYPE::geometryvalue
LWGEOM * geometryvalue
Definition:
lwin_wkt_parse.h:93
YYSTYPE::stringvalue
char * stringvalue
Definition:
lwin_wkt_parse.h:92
YYSTYPE::integervalue
int integervalue
Definition:
lwin_wkt_parse.h:90
YYSTYPE::doublevalue
double doublevalue
Definition:
lwin_wkt_parse.h:91
YYSTYPE::coordinatevalue
POINT coordinatevalue
Definition:
lwin_wkt_parse.h:94
YYSTYPE
Definition:
lwin_wkt_parse.h:87
liblwgeom
lwin_wkt_parse.h
Generated by
1.9.1