nsgenbind
Loading...
Searching...
No Matches
webidl-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_WEBIDL_BUILD_X86_64_LINUX_GNU_X86_64_LINUX_GNU_RELEASE_BINARY_WEBIDL_PARSER_H_INCLUDED
39# define YY_WEBIDL_BUILD_X86_64_LINUX_GNU_X86_64_LINUX_GNU_RELEASE_BINARY_WEBIDL_PARSER_H_INCLUDED
40/* Debug traces. */
41#ifndef WEBIDL_DEBUG
42# if defined YYDEBUG
43#if YYDEBUG
44# define WEBIDL_DEBUG 1
45# else
46# define WEBIDL_DEBUG 0
47# endif
48# else /* ! defined YYDEBUG */
49# define WEBIDL_DEBUG 1
50# endif /* ! defined YYDEBUG */
51#endif /* ! defined WEBIDL_DEBUG */
52#if WEBIDL_DEBUG
53extern int webidl_debug;
54#endif
55
56/* Token kinds. */
57#ifndef WEBIDL_TOKENTYPE
58# define WEBIDL_TOKENTYPE
60 {
62 WEBIDL_EOF = 0, /* "end of file" */
63 WEBIDL_error = 256, /* error */
64 WEBIDL_UNDEF = 257, /* "invalid token" */
65 TOK_ANY = 258, /* TOK_ANY */
66 TOK_ATTRIBUTE = 259, /* TOK_ATTRIBUTE */
67 TOK_BOOLEAN = 260, /* TOK_BOOLEAN */
68 TOK_BYTE = 261, /* TOK_BYTE */
69 TOK_CALLBACK = 262, /* TOK_CALLBACK */
70 TOK_CONST = 263, /* TOK_CONST */
71 TOK_CONSTRUCTOR = 264, /* TOK_CONSTRUCTOR */
72 TOK_CREATOR = 265, /* TOK_CREATOR */
73 TOK_DATE = 266, /* TOK_DATE */
74 TOK_DELETER = 267, /* TOK_DELETER */
75 TOK_DICTIONARY = 268, /* TOK_DICTIONARY */
76 TOK_DOUBLE = 269, /* TOK_DOUBLE */
77 TOK_ELLIPSIS = 270, /* TOK_ELLIPSIS */
78 TOK_ENUM = 271, /* TOK_ENUM */
79 TOK_EOL = 272, /* TOK_EOL */
80 TOK_EXCEPTION = 273, /* TOK_EXCEPTION */
81 TOK_FALSE = 274, /* TOK_FALSE */
82 TOK_FLOAT = 275, /* TOK_FLOAT */
83 TOK_GETRAISES = 276, /* TOK_GETRAISES */
84 TOK_GETTER = 277, /* TOK_GETTER */
85 TOK_IMPLEMENTS = 278, /* TOK_IMPLEMENTS */
86 TOK_IN = 279, /* TOK_IN */
87 TOK_INFINITY = 280, /* TOK_INFINITY */
88 TOK_INHERIT = 281, /* TOK_INHERIT */
89 TOK_INTERFACE = 282, /* TOK_INTERFACE */
90 TOK_ITERABLE = 283, /* TOK_ITERABLE */
91 TOK_LEGACYCALLER = 284, /* TOK_LEGACYCALLER */
92 TOK_LEGACYITERABLE = 285, /* TOK_LEGACYITERABLE */
93 TOK_LONG = 286, /* TOK_LONG */
94 TOK_MODULE = 287, /* TOK_MODULE */
95 TOK_NAN = 288, /* TOK_NAN */
96 TOK_NATIVE = 289, /* TOK_NATIVE */
97 TOK_NAMEDCONSTRUCTOR = 290, /* TOK_NAMEDCONSTRUCTOR */
98 TOK_NULL_LITERAL = 291, /* TOK_NULL_LITERAL */
99 TOK_OBJECT = 292, /* TOK_OBJECT */
100 TOK_OCTET = 293, /* TOK_OCTET */
101 TOK_OMITTABLE = 294, /* TOK_OMITTABLE */
102 TOK_OPTIONAL = 295, /* TOK_OPTIONAL */
103 TOK_OR = 296, /* TOK_OR */
104 TOK_PARTIAL = 297, /* TOK_PARTIAL */
105 TOK_PROMISE = 298, /* TOK_PROMISE */
106 TOK_RAISES = 299, /* TOK_RAISES */
107 TOK_READONLY = 300, /* TOK_READONLY */
108 TOK_REQUIRED = 301, /* TOK_REQUIRED */
109 TOK_SETRAISES = 302, /* TOK_SETRAISES */
110 TOK_SETTER = 303, /* TOK_SETTER */
111 TOK_SEQUENCE = 304, /* TOK_SEQUENCE */
112 TOK_SHORT = 305, /* TOK_SHORT */
113 TOK_STATIC = 306, /* TOK_STATIC */
114 TOK_STRING = 307, /* TOK_STRING */
115 TOK_STRINGIFIER = 308, /* TOK_STRINGIFIER */
116 TOK_TRUE = 309, /* TOK_TRUE */
117 TOK_TYPEDEF = 310, /* TOK_TYPEDEF */
118 TOK_UNRESTRICTED = 311, /* TOK_UNRESTRICTED */
119 TOK_UNSIGNED = 312, /* TOK_UNSIGNED */
120 TOK_VOID = 313, /* TOK_VOID */
121 TOK_POUND_SIGN = 314, /* TOK_POUND_SIGN */
122 TOK_IDENTIFIER = 315, /* TOK_IDENTIFIER */
123 TOK_INT_LITERAL = 316, /* TOK_INT_LITERAL */
124 TOK_FLOAT_LITERAL = 317, /* TOK_FLOAT_LITERAL */
125 TOK_STRING_LITERAL = 318, /* TOK_STRING_LITERAL */
126 TOK_OTHER_LITERAL = 319, /* TOK_OTHER_LITERAL */
127 TOK_JAVADOC = 320 /* TOK_JAVADOC */
128 };
130#endif
131
132/* Value type. */
133#if ! defined WEBIDL_STYPE && ! defined WEBIDL_STYPE_IS_DECLARED
135{
136#line 56 "src/webidl-parser.y"
137
138 int attr;
139 long value;
140 bool isit;
141 char* text;
143
144#line 145 "build-x86_64-linux-gnu-x86_64-linux-gnu-release-binary/webidl-parser.h"
145
146};
148# define WEBIDL_STYPE_IS_TRIVIAL 1
149# define WEBIDL_STYPE_IS_DECLARED 1
150#endif
151
152/* Location type. */
153#if ! defined WEBIDL_LTYPE && ! defined WEBIDL_LTYPE_IS_DECLARED
162# define WEBIDL_LTYPE_IS_DECLARED 1
163# define WEBIDL_LTYPE_IS_TRIVIAL 1
164#endif
165
166
167
168
169int webidl_parse (struct webidl_node **webidl_ast);
170
171
172#endif /* !YY_WEBIDL_BUILD_X86_64_LINUX_GNU_X86_64_LINUX_GNU_RELEASE_BINARY_WEBIDL_PARSER_H_INCLUDED */
struct webidl_node * node
int webidl_parse(struct webidl_node **webidl_ast)
enum webidl_tokentype webidl_token_kind_t
int webidl_debug
webidl_tokentype
@ TOK_ELLIPSIS
@ TOK_SEQUENCE
@ TOK_READONLY
@ TOK_ANY
@ TOK_IDENTIFIER
@ TOK_GETRAISES
@ TOK_TYPEDEF
@ WEBIDL_EOF
@ TOK_RAISES
@ TOK_DELETER
@ TOK_POUND_SIGN
@ TOK_OPTIONAL
@ TOK_REQUIRED
@ TOK_PROMISE
@ TOK_STRING_LITERAL
@ TOK_DATE
@ TOK_NULL_LITERAL
@ TOK_CONSTRUCTOR
@ TOK_INFINITY
@ TOK_JAVADOC
@ TOK_ITERABLE
@ TOK_UNSIGNED
@ TOK_INHERIT
@ TOK_STRING
@ TOK_FALSE
@ TOK_INTERFACE
@ TOK_OR
@ TOK_PARTIAL
@ TOK_TRUE
@ TOK_BOOLEAN
@ TOK_DOUBLE
@ WEBIDL_error
@ WEBIDL_EMPTY
@ TOK_NAN
@ TOK_BYTE
@ TOK_MODULE
@ TOK_OTHER_LITERAL
@ TOK_LEGACYCALLER
@ TOK_LEGACYITERABLE
@ TOK_CALLBACK
@ TOK_LONG
@ TOK_GETTER
@ TOK_NATIVE
@ TOK_SETRAISES
@ TOK_CONST
@ TOK_FLOAT_LITERAL
@ TOK_EOL
@ TOK_OMITTABLE
@ TOK_STATIC
@ TOK_SHORT
@ TOK_FLOAT
@ TOK_VOID
@ TOK_OBJECT
@ TOK_IN
@ TOK_STRINGIFIER
@ TOK_EXCEPTION
@ TOK_OCTET
@ TOK_UNRESTRICTED
@ TOK_ENUM
@ TOK_INT_LITERAL
@ TOK_NAMEDCONSTRUCTOR
@ TOK_IMPLEMENTS
@ WEBIDL_UNDEF
@ TOK_ATTRIBUTE
@ TOK_SETTER
@ TOK_CREATOR
@ TOK_DICTIONARY