xref: /rk3399_rockchip-uboot/scripts/dtc/dtc-parser.tab.h_shipped (revision 14df9b242f1aeec4707933666e9581796e2e1597)
1*14df9b24SMasahiro Yamada/* A Bison parser, made by GNU Bison 3.0.4.  */
2d18719a4STom Rini
3d18719a4STom Rini/* Bison interface for Yacc-like parsers in C
4d18719a4STom Rini
5*14df9b24SMasahiro Yamada   Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
6d18719a4STom Rini
7d18719a4STom Rini   This program is free software: you can redistribute it and/or modify
8d18719a4STom Rini   it under the terms of the GNU General Public License as published by
9d18719a4STom Rini   the Free Software Foundation, either version 3 of the License, or
10d18719a4STom Rini   (at your option) any later version.
11d18719a4STom Rini
12d18719a4STom Rini   This program is distributed in the hope that it will be useful,
13d18719a4STom Rini   but WITHOUT ANY WARRANTY; without even the implied warranty of
14d18719a4STom Rini   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15d18719a4STom Rini   GNU General Public License for more details.
16d18719a4STom Rini
17d18719a4STom Rini   You should have received a copy of the GNU General Public License
18d18719a4STom Rini   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19d18719a4STom Rini
20d18719a4STom Rini/* As a special exception, you may create a larger work that contains
21d18719a4STom Rini   part or all of the Bison parser skeleton and distribute that work
22d18719a4STom Rini   under terms of your choice, so long as that work isn't itself a
23d18719a4STom Rini   parser generator using the skeleton or a modified version thereof
24d18719a4STom Rini   as a parser skeleton.  Alternatively, if you modify or redistribute
25d18719a4STom Rini   the parser skeleton itself, you may (at your option) remove this
26d18719a4STom Rini   special exception, which will cause the skeleton and the resulting
27d18719a4STom Rini   Bison output files to be licensed under the GNU General Public
28d18719a4STom Rini   License without this special exception.
29d18719a4STom Rini
30d18719a4STom Rini   This special exception was added by the Free Software Foundation in
31d18719a4STom Rini   version 2.2 of Bison.  */
32d18719a4STom Rini
33d18719a4STom Rini#ifndef YY_YY_DTC_PARSER_TAB_H_INCLUDED
34d18719a4STom Rini# define YY_YY_DTC_PARSER_TAB_H_INCLUDED
35d18719a4STom Rini/* Debug traces.  */
36d18719a4STom Rini#ifndef YYDEBUG
37d18719a4STom Rini# define YYDEBUG 0
38d18719a4STom Rini#endif
39d18719a4STom Rini#if YYDEBUG
40d18719a4STom Riniextern int yydebug;
41d18719a4STom Rini#endif
42d18719a4STom Rini
43d18719a4STom Rini/* Token type.  */
44d18719a4STom Rini#ifndef YYTOKENTYPE
45d18719a4STom Rini# define YYTOKENTYPE
46d18719a4STom Rini  enum yytokentype
47d18719a4STom Rini  {
48d18719a4STom Rini    DT_V1 = 258,
49d18719a4STom Rini    DT_PLUGIN = 259,
50d18719a4STom Rini    DT_MEMRESERVE = 260,
51d18719a4STom Rini    DT_LSHIFT = 261,
52d18719a4STom Rini    DT_RSHIFT = 262,
53d18719a4STom Rini    DT_LE = 263,
54d18719a4STom Rini    DT_GE = 264,
55d18719a4STom Rini    DT_EQ = 265,
56d18719a4STom Rini    DT_NE = 266,
57d18719a4STom Rini    DT_AND = 267,
58d18719a4STom Rini    DT_OR = 268,
59d18719a4STom Rini    DT_BITS = 269,
60d18719a4STom Rini    DT_DEL_PROP = 270,
61d18719a4STom Rini    DT_DEL_NODE = 271,
62d18719a4STom Rini    DT_PROPNODENAME = 272,
63d18719a4STom Rini    DT_LITERAL = 273,
64d18719a4STom Rini    DT_CHAR_LITERAL = 274,
65d18719a4STom Rini    DT_BYTE = 275,
66d18719a4STom Rini    DT_STRING = 276,
67d18719a4STom Rini    DT_LABEL = 277,
68d18719a4STom Rini    DT_REF = 278,
69d18719a4STom Rini    DT_INCBIN = 279
70d18719a4STom Rini  };
71d18719a4STom Rini#endif
72d18719a4STom Rini
73d18719a4STom Rini/* Value type.  */
74d18719a4STom Rini#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
75*14df9b24SMasahiro Yamada
76d18719a4STom Riniunion YYSTYPE
77d18719a4STom Rini{
78d18719a4STom Rini#line 39 "dtc-parser.y" /* yacc.c:1909  */
79d18719a4STom Rini
80d18719a4STom Rini	char *propnodename;
81d18719a4STom Rini	char *labelref;
82d18719a4STom Rini	uint8_t byte;
83d18719a4STom Rini	struct data data;
84d18719a4STom Rini
85d18719a4STom Rini	struct {
86d18719a4STom Rini		struct data	data;
87d18719a4STom Rini		int		bits;
88d18719a4STom Rini	} array;
89d18719a4STom Rini
90d18719a4STom Rini	struct property *prop;
91d18719a4STom Rini	struct property *proplist;
92d18719a4STom Rini	struct node *node;
93d18719a4STom Rini	struct node *nodelist;
94d18719a4STom Rini	struct reserve_info *re;
95d18719a4STom Rini	uint64_t integer;
96d18719a4STom Rini	unsigned int flags;
97d18719a4STom Rini
98d18719a4STom Rini#line 99 "dtc-parser.tab.h" /* yacc.c:1909  */
99d18719a4STom Rini};
100*14df9b24SMasahiro Yamada
101*14df9b24SMasahiro Yamadatypedef union YYSTYPE YYSTYPE;
102d18719a4STom Rini# define YYSTYPE_IS_TRIVIAL 1
103d18719a4STom Rini# define YYSTYPE_IS_DECLARED 1
104d18719a4STom Rini#endif
105d18719a4STom Rini
106d18719a4STom Rini/* Location type.  */
107d18719a4STom Rini#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
108d18719a4STom Rinitypedef struct YYLTYPE YYLTYPE;
109d18719a4STom Rinistruct YYLTYPE
110d18719a4STom Rini{
111d18719a4STom Rini  int first_line;
112d18719a4STom Rini  int first_column;
113d18719a4STom Rini  int last_line;
114d18719a4STom Rini  int last_column;
115d18719a4STom Rini};
116d18719a4STom Rini# define YYLTYPE_IS_DECLARED 1
117d18719a4STom Rini# define YYLTYPE_IS_TRIVIAL 1
118d18719a4STom Rini#endif
119d18719a4STom Rini
120d18719a4STom Rini
121d18719a4STom Riniextern YYSTYPE yylval;
122d18719a4STom Riniextern YYLTYPE yylloc;
123d18719a4STom Riniint yyparse (void);
124d18719a4STom Rini
125d18719a4STom Rini#endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED  */
126