nsgenbind
Loading...
Searching...
No Matches
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
53extern 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
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
106 {
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 };
140#endif
141
142/* Value type. */
143#if ! defined NSGENBIND_STYPE && ! defined NSGENBIND_STYPE_IS_DECLARED
145{
146#line 188 "src/nsgenbind-parser.y"
147
148 char *text;
150 long value;
151
152#line 153 "build-x86_64-linux-gnu-x86_64-linux-gnu-release-binary/nsgenbind-parser.h"
153
154};
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
170# define NSGENBIND_LTYPE_IS_DECLARED 1
171# define NSGENBIND_LTYPE_IS_TRIVIAL 1
172#endif
173
174
175
176
177int 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 */
DOMString filename
Definition html.idl:1561
#define YYLTYPE
nsgenbind_tokentype
@ TOK_POSTFACE
@ TOK_IDENTIFIER
@ NSGENBIND_UNDEF
@ TOK_STRING_LITERAL
@ NSGENBIND_error
@ TOK_STRUCT
@ TOK_PREFACE
@ NSGENBIND_EMPTY
@ TOK_PROLOGUE
@ TOK_UNSIGNED
@ TOK_PROPERTY
@ TOK_DBLCOLON
@ TOK_TYPE
@ TOK_PROTOTYPE
@ TOK_UNION
@ TOK_UNSHARED
@ TOK_INIT
@ TOK_FLAGS
@ TOK_SHARED
@ TOK_WEBIDL
@ TOK_BINDING
@ TOK_GETTER
@ TOK_CCODE_LITERAL
@ TOK_METHOD
@ TOK_PRIVATE
@ TOK_FINI
@ NSGENBIND_EOF
@ TOK_EPILOGUE
@ TOK_SETTER
@ TOK_CLASS
@ TOK_INTERNAL
enum nsgenbind_tokentype nsgenbind_token_kind_t
int nsgenbind_debug
int nsgenbind_parse(char *filename, struct genbind_node **genbind_ast)
struct YYLTYPE * next
char * filename
struct genbind_node * node