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_YY_OUT_SOONG_TEMP_SBOX_46EB4B39A488FDBBDBC9225FC77700EE87F82F59_OUT_EXTERNAL_DTC_DTC_PARSER_H_INCLUDED
39 # define YY_YY_OUT_SOONG_TEMP_SBOX_46EB4B39A488FDBBDBC9225FC77700EE87F82F59_OUT_EXTERNAL_DTC_DTC_PARSER_H_INCLUDED
40 /* Debug traces.  */
41 #ifndef YYDEBUG
42 # define YYDEBUG 0
43 #endif
44 #if YYDEBUG
45 extern int 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     DT_V1 = 258,                   /* DT_V1  */
58     DT_PLUGIN = 259,               /* DT_PLUGIN  */
59     DT_MEMRESERVE = 260,           /* DT_MEMRESERVE  */
60     DT_LSHIFT = 261,               /* DT_LSHIFT  */
61     DT_RSHIFT = 262,               /* DT_RSHIFT  */
62     DT_LE = 263,                   /* DT_LE  */
63     DT_GE = 264,                   /* DT_GE  */
64     DT_EQ = 265,                   /* DT_EQ  */
65     DT_NE = 266,                   /* DT_NE  */
66     DT_AND = 267,                  /* DT_AND  */
67     DT_OR = 268,                   /* DT_OR  */
68     DT_BITS = 269,                 /* DT_BITS  */
69     DT_DEL_PROP = 270,             /* DT_DEL_PROP  */
70     DT_DEL_NODE = 271,             /* DT_DEL_NODE  */
71     DT_OMIT_NO_REF = 272,          /* DT_OMIT_NO_REF  */
72     DT_PROPNODENAME = 273,         /* DT_PROPNODENAME  */
73     DT_LITERAL = 274,              /* DT_LITERAL  */
74     DT_CHAR_LITERAL = 275,         /* DT_CHAR_LITERAL  */
75     DT_BYTE = 276,                 /* DT_BYTE  */
76     DT_STRING = 277,               /* DT_STRING  */
77     DT_LABEL = 278,                /* DT_LABEL  */
78     DT_LABEL_REF = 279,            /* DT_LABEL_REF  */
79     DT_PATH_REF = 280,             /* DT_PATH_REF  */
80     DT_INCBIN = 281                /* DT_INCBIN  */
81   };
82   typedef enum yytokentype yytoken_kind_t;
83 #endif
84 
85 /* Value type.  */
86 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
87 union YYSTYPE
88 {
89 #line 34 "external/dtc/dtc-parser.y"
90 
91 	char *propnodename;
92 	char *labelref;
93 	uint8_t byte;
94 	struct data data;
95 
96 	struct {
97 		struct data	data;
98 		int		bits;
99 	} array;
100 
101 	struct property *prop;
102 	struct property *proplist;
103 	struct node *node;
104 	struct node *nodelist;
105 	struct reserve_info *re;
106 	uint64_t integer;
107 	unsigned int flags;
108 
109 #line 110 "out/soong/.intermediates/external/dtc/dtc/linux_glibc_x86_64/gen/yacc/external/dtc/dtc-parser.h"
110 
111 };
112 typedef union YYSTYPE YYSTYPE;
113 # define YYSTYPE_IS_TRIVIAL 1
114 # define YYSTYPE_IS_DECLARED 1
115 #endif
116 
117 /* Location type.  */
118 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
119 typedef struct YYLTYPE YYLTYPE;
120 struct YYLTYPE
121 {
122   int first_line;
123   int first_column;
124   int last_line;
125   int last_column;
126 };
127 # define YYLTYPE_IS_DECLARED 1
128 # define YYLTYPE_IS_TRIVIAL 1
129 #endif
130 
131 
132 extern YYSTYPE yylval;
133 extern YYLTYPE yylloc;
134 
135 int yyparse (void);
136 
137 
138 #endif /* !YY_YY_OUT_SOONG_TEMP_SBOX_46EB4B39A488FDBBDBC9225FC77700EE87F82F59_OUT_EXTERNAL_DTC_DTC_PARSER_H_INCLUDED  */
139