xref: /netbsd-src/external/gpl3/binutils.old/dist/ld/deffilep.h (revision e992f068c547fd6e84b3f104dc2340adcc955732)
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_DEFFILEP_H_INCLUDED
39 # define YY_YY_DEFFILEP_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     NAME = 258,                    /* NAME  */
58     LIBRARY = 259,                 /* LIBRARY  */
59     DESCRIPTION = 260,             /* DESCRIPTION  */
60     STACKSIZE_K = 261,             /* STACKSIZE_K  */
61     HEAPSIZE = 262,                /* HEAPSIZE  */
62     CODE = 263,                    /* CODE  */
63     DATAU = 264,                   /* DATAU  */
64     DATAL = 265,                   /* DATAL  */
65     SECTIONS = 266,                /* SECTIONS  */
66     EXPORTS = 267,                 /* EXPORTS  */
67     IMPORTS = 268,                 /* IMPORTS  */
68     VERSIONK = 269,                /* VERSIONK  */
69     BASE = 270,                    /* BASE  */
70     CONSTANTU = 271,               /* CONSTANTU  */
71     CONSTANTL = 272,               /* CONSTANTL  */
72     PRIVATEU = 273,                /* PRIVATEU  */
73     PRIVATEL = 274,                /* PRIVATEL  */
74     ALIGNCOMM = 275,               /* ALIGNCOMM  */
75     READ = 276,                    /* READ  */
76     WRITE = 277,                   /* WRITE  */
77     EXECUTE = 278,                 /* EXECUTE  */
78     SHARED_K = 279,                /* SHARED_K  */
79     NONAMEU = 280,                 /* NONAMEU  */
80     NONAMEL = 281,                 /* NONAMEL  */
81     DIRECTIVE = 282,               /* DIRECTIVE  */
82     EQUAL = 283,                   /* EQUAL  */
83     ID = 284,                      /* ID  */
84     DIGITS = 285                   /* DIGITS  */
85   };
86   typedef enum yytokentype yytoken_kind_t;
87 #endif
88 /* Token kinds.  */
89 #define YYEMPTY -2
90 #define YYEOF 0
91 #define YYerror 256
92 #define YYUNDEF 257
93 #define NAME 258
94 #define LIBRARY 259
95 #define DESCRIPTION 260
96 #define STACKSIZE_K 261
97 #define HEAPSIZE 262
98 #define CODE 263
99 #define DATAU 264
100 #define DATAL 265
101 #define SECTIONS 266
102 #define EXPORTS 267
103 #define IMPORTS 268
104 #define VERSIONK 269
105 #define BASE 270
106 #define CONSTANTU 271
107 #define CONSTANTL 272
108 #define PRIVATEU 273
109 #define PRIVATEL 274
110 #define ALIGNCOMM 275
111 #define READ 276
112 #define WRITE 277
113 #define EXECUTE 278
114 #define SHARED_K 279
115 #define NONAMEU 280
116 #define NONAMEL 281
117 #define DIRECTIVE 282
118 #define EQUAL 283
119 #define ID 284
120 #define DIGITS 285
121 
122 /* Value type.  */
123 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
124 union YYSTYPE
125 {
126 #line 114 "deffilep.y"
127 
128   char *id;
129   const char *id_const;
130   int number;
131   bfd_vma vma;
132   char *digits;
133 
134 #line 135 "deffilep.h"
135 
136 };
137 typedef union YYSTYPE YYSTYPE;
138 # define YYSTYPE_IS_TRIVIAL 1
139 # define YYSTYPE_IS_DECLARED 1
140 #endif
141 
142 
143 extern YYSTYPE yylval;
144 
145 
146 int yyparse (void);
147 
148 
149 #endif /* !YY_YY_DEFFILEP_H_INCLUDED  */
150