nsgenbind
Loading...
Searching...
No Matches
build-x86_64-linux-gnu-x86_64-linux-gnu-release-binary
nsgenbind-parser.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_NSGENBIND_BUILD_X86_64_LINUX_GNU_X86_64_LINUX_GNU_RELEASE_BINARY_NSGENBIND_PARSER_H_INCLUDED
39
# define YY_NSGENBIND_BUILD_X86_64_LINUX_GNU_X86_64_LINUX_GNU_RELEASE_BINARY_NSGENBIND_PARSER_H_INCLUDED
40
/* Debug traces. */
41
#ifndef NSGENBIND_DEBUG
42
# if defined YYDEBUG
43
#if YYDEBUG
44
# define NSGENBIND_DEBUG 1
45
# else
46
# define NSGENBIND_DEBUG 0
47
# endif
48
# else
/* ! defined YYDEBUG */
49
# define NSGENBIND_DEBUG 1
50
# endif
/* ! defined YYDEBUG */
51
#endif
/* ! defined NSGENBIND_DEBUG */
52
#if NSGENBIND_DEBUG
53
extern
int
nsgenbind_debug
;
54
#endif
55
/* "%code requires" blocks. */
56
#line 21 "src/nsgenbind-parser.y"
57
58
59
#ifndef YYLTYPE
60
/* Bison <3.0 */
61
#define YYLTYPE YYLTYPE
62
#else
63
/* Bison 3.0 or later */
64
/* Keep in sync with the defined API prefix */
65
#define NSGENBIND_LTYPE_IS_DECLARED 1
66
#endif
67
68
typedef
struct
YYLTYPE
{
69
struct
YYLTYPE
*
next
;
70
int
start_line
;
71
char
*
filename
;
72
73
int
first_line
;
74
int
first_column
;
75
int
last_line
;
76
int
last_column
;
77
}
YYLTYPE
;
78
79
80
#define YYLLOC_DEFAULT(Current, Rhs, N) \
81
do \
82
if (N) { \
83
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
84
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
85
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
86
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
87
(Current).filename = YYRHSLOC (Rhs, 1).filename; \
88
(Current).start_line = YYRHSLOC (Rhs, 1).start_line; \
89
} else {
/* empty RHS */
\
90
(Current).first_line = (Current).last_line = \
91
YYRHSLOC (Rhs, 0).last_line; \
92
(Current).first_column = (Current).last_column = \
93
YYRHSLOC (Rhs, 0).last_column; \
94
(Current).filename = YYRHSLOC (Rhs, 0).filename; \
95
(Current).start_line = YYRHSLOC (Rhs, 0).start_line; \
96
} \
97
while (0)
98
99
100
#line 101 "build-x86_64-linux-gnu-x86_64-linux-gnu-release-binary/nsgenbind-parser.h"
101
102
/* Token kinds. */
103
#ifndef NSGENBIND_TOKENTYPE
104
# define NSGENBIND_TOKENTYPE
105
enum
nsgenbind_tokentype
106
{
107
NSGENBIND_EMPTY
= -2,
108
NSGENBIND_EOF
= 0,
/* "end of file" */
109
NSGENBIND_error
= 256,
/* error */
110
NSGENBIND_UNDEF
= 257,
/* "invalid token" */
111
TOK_BINDING
= 258,
/* TOK_BINDING */
112
TOK_WEBIDL
= 259,
/* TOK_WEBIDL */
113
TOK_PREFACE
= 260,
/* TOK_PREFACE */
114
TOK_PROLOGUE
= 261,
/* TOK_PROLOGUE */
115
TOK_EPILOGUE
= 262,
/* TOK_EPILOGUE */
116
TOK_POSTFACE
= 263,
/* TOK_POSTFACE */
117
TOK_CLASS
= 264,
/* TOK_CLASS */
118
TOK_PRIVATE
= 265,
/* TOK_PRIVATE */
119
TOK_INTERNAL
= 266,
/* TOK_INTERNAL */
120
TOK_FLAGS
= 267,
/* TOK_FLAGS */
121
TOK_TYPE
= 268,
/* TOK_TYPE */
122
TOK_UNSHARED
= 269,
/* TOK_UNSHARED */
123
TOK_SHARED
= 270,
/* TOK_SHARED */
124
TOK_PROPERTY
= 271,
/* TOK_PROPERTY */
125
TOK_INIT
= 272,
/* TOK_INIT */
126
TOK_FINI
= 273,
/* TOK_FINI */
127
TOK_METHOD
= 274,
/* TOK_METHOD */
128
TOK_GETTER
= 275,
/* TOK_GETTER */
129
TOK_SETTER
= 276,
/* TOK_SETTER */
130
TOK_PROTOTYPE
= 277,
/* TOK_PROTOTYPE */
131
TOK_DBLCOLON
= 278,
/* TOK_DBLCOLON */
132
TOK_STRUCT
= 279,
/* TOK_STRUCT */
133
TOK_UNION
= 280,
/* TOK_UNION */
134
TOK_UNSIGNED
= 281,
/* TOK_UNSIGNED */
135
TOK_IDENTIFIER
= 282,
/* TOK_IDENTIFIER */
136
TOK_STRING_LITERAL
= 283,
/* TOK_STRING_LITERAL */
137
TOK_CCODE_LITERAL
= 284
/* TOK_CCODE_LITERAL */
138
};
139
typedef
enum
nsgenbind_tokentype
nsgenbind_token_kind_t
;
140
#endif
141
142
/* Value type. */
143
#if ! defined NSGENBIND_STYPE && ! defined NSGENBIND_STYPE_IS_DECLARED
144
union
NSGENBIND_STYPE
145
{
146
#line 188 "src/nsgenbind-parser.y"
147
148
char
*
text
;
149
struct
genbind_node
*
node
;
150
long
value
;
151
152
#line 153 "build-x86_64-linux-gnu-x86_64-linux-gnu-release-binary/nsgenbind-parser.h"
153
154
};
155
typedef
union
NSGENBIND_STYPE
NSGENBIND_STYPE
;
156
# define NSGENBIND_STYPE_IS_TRIVIAL 1
157
# define NSGENBIND_STYPE_IS_DECLARED 1
158
#endif
159
160
/* Location type. */
161
#if ! defined NSGENBIND_LTYPE && ! defined NSGENBIND_LTYPE_IS_DECLARED
162
typedef
struct
NSGENBIND_LTYPE
NSGENBIND_LTYPE
;
163
struct
NSGENBIND_LTYPE
164
{
165
int
first_line
;
166
int
first_column
;
167
int
last_line
;
168
int
last_column
;
169
};
170
# define NSGENBIND_LTYPE_IS_DECLARED 1
171
# define NSGENBIND_LTYPE_IS_TRIVIAL 1
172
#endif
173
174
175
176
177
int
nsgenbind_parse
(
char
*
filename
,
struct
genbind_node
**genbind_ast);
178
179
180
#endif
/* !YY_NSGENBIND_BUILD_X86_64_LINUX_GNU_X86_64_LINUX_GNU_RELEASE_BINARY_NSGENBIND_PARSER_H_INCLUDED */
filename
DOMString filename
Definition
html.idl:1561
YYLTYPE
#define YYLTYPE
Definition
nsgenbind-parser.h:61
nsgenbind_tokentype
nsgenbind_tokentype
Definition
nsgenbind-parser.h:106
TOK_POSTFACE
@ TOK_POSTFACE
Definition
nsgenbind-parser.h:116
TOK_IDENTIFIER
@ TOK_IDENTIFIER
Definition
nsgenbind-parser.h:135
NSGENBIND_UNDEF
@ NSGENBIND_UNDEF
Definition
nsgenbind-parser.h:110
TOK_STRING_LITERAL
@ TOK_STRING_LITERAL
Definition
nsgenbind-parser.h:136
NSGENBIND_error
@ NSGENBIND_error
Definition
nsgenbind-parser.h:109
TOK_STRUCT
@ TOK_STRUCT
Definition
nsgenbind-parser.h:132
TOK_PREFACE
@ TOK_PREFACE
Definition
nsgenbind-parser.h:113
NSGENBIND_EMPTY
@ NSGENBIND_EMPTY
Definition
nsgenbind-parser.h:107
TOK_PROLOGUE
@ TOK_PROLOGUE
Definition
nsgenbind-parser.h:114
TOK_UNSIGNED
@ TOK_UNSIGNED
Definition
nsgenbind-parser.h:134
TOK_PROPERTY
@ TOK_PROPERTY
Definition
nsgenbind-parser.h:124
TOK_DBLCOLON
@ TOK_DBLCOLON
Definition
nsgenbind-parser.h:131
TOK_TYPE
@ TOK_TYPE
Definition
nsgenbind-parser.h:121
TOK_PROTOTYPE
@ TOK_PROTOTYPE
Definition
nsgenbind-parser.h:130
TOK_UNION
@ TOK_UNION
Definition
nsgenbind-parser.h:133
TOK_UNSHARED
@ TOK_UNSHARED
Definition
nsgenbind-parser.h:122
TOK_INIT
@ TOK_INIT
Definition
nsgenbind-parser.h:125
TOK_FLAGS
@ TOK_FLAGS
Definition
nsgenbind-parser.h:120
TOK_SHARED
@ TOK_SHARED
Definition
nsgenbind-parser.h:123
TOK_WEBIDL
@ TOK_WEBIDL
Definition
nsgenbind-parser.h:112
TOK_BINDING
@ TOK_BINDING
Definition
nsgenbind-parser.h:111
TOK_GETTER
@ TOK_GETTER
Definition
nsgenbind-parser.h:128
TOK_CCODE_LITERAL
@ TOK_CCODE_LITERAL
Definition
nsgenbind-parser.h:137
TOK_METHOD
@ TOK_METHOD
Definition
nsgenbind-parser.h:127
TOK_PRIVATE
@ TOK_PRIVATE
Definition
nsgenbind-parser.h:118
TOK_FINI
@ TOK_FINI
Definition
nsgenbind-parser.h:126
NSGENBIND_EOF
@ NSGENBIND_EOF
Definition
nsgenbind-parser.h:108
TOK_EPILOGUE
@ TOK_EPILOGUE
Definition
nsgenbind-parser.h:115
TOK_SETTER
@ TOK_SETTER
Definition
nsgenbind-parser.h:129
TOK_CLASS
@ TOK_CLASS
Definition
nsgenbind-parser.h:117
TOK_INTERNAL
@ TOK_INTERNAL
Definition
nsgenbind-parser.h:119
nsgenbind_token_kind_t
enum nsgenbind_tokentype nsgenbind_token_kind_t
Definition
nsgenbind-parser.h:139
nsgenbind_debug
int nsgenbind_debug
nsgenbind_parse
int nsgenbind_parse(char *filename, struct genbind_node **genbind_ast)
NSGENBIND_LTYPE
Definition
nsgenbind-parser.h:164
NSGENBIND_LTYPE::first_line
int first_line
Definition
nsgenbind-parser.h:165
NSGENBIND_LTYPE::last_column
int last_column
Definition
nsgenbind-parser.h:168
NSGENBIND_LTYPE::first_column
int first_column
Definition
nsgenbind-parser.h:166
NSGENBIND_LTYPE::last_line
int last_line
Definition
nsgenbind-parser.h:167
YYLTYPE
Definition
nsgenbind-parser.h:68
YYLTYPE::last_line
int last_line
Definition
nsgenbind-parser.h:75
YYLTYPE::first_column
int first_column
Definition
nsgenbind-parser.h:74
YYLTYPE::first_line
int first_line
Definition
nsgenbind-parser.h:73
YYLTYPE::start_line
int start_line
Definition
nsgenbind-parser.h:70
YYLTYPE::next
struct YYLTYPE * next
Definition
nsgenbind-parser.h:69
YYLTYPE::last_column
int last_column
Definition
nsgenbind-parser.h:76
YYLTYPE::filename
char * filename
Definition
nsgenbind-parser.h:71
genbind_node
Definition
nsgenbind-ast.c:35
NSGENBIND_STYPE
Definition
nsgenbind-parser.h:145
NSGENBIND_STYPE::text
char * text
Definition
nsgenbind-parser.h:148
NSGENBIND_STYPE::node
struct genbind_node * node
Definition
nsgenbind-parser.h:149
NSGENBIND_STYPE::value
long value
Definition
nsgenbind-parser.h:150
Generated on Fri Dec 12 2025 12:46:06 for nsgenbind by
1.9.8