Kinetis Bootloader Host  2.0.0
Host Tools for Kinetis devices
elftosb_parser.tab.hpp
1 /* A Bison parser, made by GNU Bison 2.3. */
2 
3 /* Skeleton interface for Bison's Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6  Free Software Foundation, 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 2, or (at your option)
11  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, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA. */
22 
23 /* As a special exception, you may create a larger work that contains
24  part or all of the Bison parser skeleton and distribute that work
25  under terms of your choice, so long as that work isn't itself a
26  parser generator using the skeleton or a modified version thereof
27  as a parser skeleton. Alternatively, if you modify or redistribute
28  the parser skeleton itself, you may (at your option) remove this
29  special exception, which will cause the skeleton and the resulting
30  Bison output files to be licensed under the GNU General Public
31  License without this special exception.
32 
33  This special exception was added by the Free Software Foundation in
34  version 2.2 of Bison. */
35 
36 /* Tokens. */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39  /* Put the tokens into the symbol table, so that GDB and other debuggers
40  know about them. */
41  enum yytokentype {
42  TOK_IDENT = 258,
43  TOK_STRING_LITERAL = 259,
44  TOK_INT_LITERAL = 260,
45  TOK_SECTION_NAME = 261,
46  TOK_SOURCE_NAME = 262,
47  TOK_BLOB = 263,
48  TOK_DOT_DOT = 264,
49  TOK_AND = 265,
50  TOK_OR = 266,
51  TOK_GEQ = 267,
52  TOK_LEQ = 268,
53  TOK_EQ = 269,
54  TOK_NEQ = 270,
55  TOK_POWER = 271,
56  TOK_LSHIFT = 272,
57  TOK_RSHIFT = 273,
58  TOK_INT_SIZE = 274,
59  TOK_OPTIONS = 275,
60  TOK_CONSTANTS = 276,
61  TOK_SOURCES = 277,
62  TOK_FILTERS = 278,
63  TOK_SECTION = 279,
64  TOK_EXTERN = 280,
65  TOK_FROM = 281,
66  TOK_RAW = 282,
67  TOK_LOAD = 283,
68  TOK_JUMP = 284,
69  TOK_CALL = 285,
70  TOK_MODE = 286,
71  TOK_ERASE = 287,
72  TOK_ALL = 288,
73  TOK_IF = 289,
74  TOK_ELSE = 290,
75  TOK_DEFINED = 291,
76  TOK_INFO = 292,
77  TOK_WARNING = 293,
78  TOK_ERROR = 294,
79  TOK_SIZEOF = 295,
80  TOK_DCD = 296,
81  TOK_HAB = 297,
82  TOK_IVT = 298,
83  TOK_UNSECURE = 299,
84  TOK_RESET = 300,
85  TOK_JUMP_SP = 301,
86  TOK_ENABLE = 302,
87  TOK_KEYBLOB = 303,
88  TOK_ENCRYPT = 304,
89  TOK_KEYWRAP = 305,
90  UNARY_OP = 306
91  };
92 #endif
93 /* Tokens. */
94 #define TOK_IDENT 258
95 #define TOK_STRING_LITERAL 259
96 #define TOK_INT_LITERAL 260
97 #define TOK_SECTION_NAME 261
98 #define TOK_SOURCE_NAME 262
99 #define TOK_BLOB 263
100 #define TOK_DOT_DOT 264
101 #define TOK_AND 265
102 #define TOK_OR 266
103 #define TOK_GEQ 267
104 #define TOK_LEQ 268
105 #define TOK_EQ 269
106 #define TOK_NEQ 270
107 #define TOK_POWER 271
108 #define TOK_LSHIFT 272
109 #define TOK_RSHIFT 273
110 #define TOK_INT_SIZE 274
111 #define TOK_OPTIONS 275
112 #define TOK_CONSTANTS 276
113 #define TOK_SOURCES 277
114 #define TOK_FILTERS 278
115 #define TOK_SECTION 279
116 #define TOK_EXTERN 280
117 #define TOK_FROM 281
118 #define TOK_RAW 282
119 #define TOK_LOAD 283
120 #define TOK_JUMP 284
121 #define TOK_CALL 285
122 #define TOK_MODE 286
123 #define TOK_ERASE 287
124 #define TOK_ALL 288
125 #define TOK_IF 289
126 #define TOK_ELSE 290
127 #define TOK_DEFINED 291
128 #define TOK_INFO 292
129 #define TOK_WARNING 293
130 #define TOK_ERROR 294
131 #define TOK_SIZEOF 295
132 #define TOK_DCD 296
133 #define TOK_HAB 297
134 #define TOK_IVT 298
135 #define TOK_UNSECURE 299
136 #define TOK_RESET 300
137 #define TOK_JUMP_SP 301
138 #define TOK_ENABLE 302
139 #define TOK_KEYBLOB 303
140 #define TOK_ENCRYPT 304
141 #define TOK_KEYWRAP 305
142 #define UNARY_OP 306
143 
144 
145 
146 
147 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
148 typedef union YYSTYPE
149 #line 62 "/Users/MADUser1/elftosb/elftosb2/elftosb_parser.y"
150 {
151  int m_num;
153  Blob * m_blob;
154  std::string * m_str;
155  elftosb::ASTNode * m_ast; // must use full name here because this is put into *.tab.hpp
156 }
157 /* Line 1529 of yacc.c. */
158 #line 159 "/Users/MADUser1/Library/Developer/Xcode/DerivedData/elftosb-dxrbhxxtpndhpgdxujwltedpntjq/Build/Intermediates/elftosb.build/Debug/elftosb.build/DerivedSources/elftosb_parser.tab.hpp"
159  YYSTYPE;
160 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
161 # define YYSTYPE_IS_DECLARED 1
162 # define YYSTYPE_IS_TRIVIAL 1
163 #endif
164 
165 
166 
167 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
168 typedef struct YYLTYPE
169 {
170  int first_line;
171  int first_column;
172  int last_line;
173  int last_column;
174 } YYLTYPE;
175 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
176 # define YYLTYPE_IS_DECLARED 1
177 # define YYLTYPE_IS_TRIVIAL 1
178 #endif
179 
180 
Definition: elftosb_parser.tab.cpp:256
Definition: elftosb_parser.tab.cpp:238
Adds a word size attribute to IntegerValue.
Definition: apps/elftosb/common/Value.h:72
Definition: BootImage.h:13
Manages a binary object of arbitrary length.
Definition: apps/elftosb/common/Blob.h:18
The base class for all AST node classes.
Definition: ElftosbAST.h:33