xref: /netbsd-src/external/gpl3/binutils.old/dist/binutils/mcparse.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_MCPARSE_H_INCLUDED
39 # define YY_YY_MCPARSE_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     NL = 258,                      /* NL  */
58     MCIDENT = 259,                 /* MCIDENT  */
59     MCFILENAME = 260,              /* MCFILENAME  */
60     MCLINE = 261,                  /* MCLINE  */
61     MCCOMMENT = 262,               /* MCCOMMENT  */
62     MCTOKEN = 263,                 /* MCTOKEN  */
63     MCENDLINE = 264,               /* MCENDLINE  */
64     MCLANGUAGENAMES = 265,         /* MCLANGUAGENAMES  */
65     MCFACILITYNAMES = 266,         /* MCFACILITYNAMES  */
66     MCSEVERITYNAMES = 267,         /* MCSEVERITYNAMES  */
67     MCOUTPUTBASE = 268,            /* MCOUTPUTBASE  */
68     MCMESSAGEIDTYPEDEF = 269,      /* MCMESSAGEIDTYPEDEF  */
69     MCLANGUAGE = 270,              /* MCLANGUAGE  */
70     MCMESSAGEID = 271,             /* MCMESSAGEID  */
71     MCSEVERITY = 272,              /* MCSEVERITY  */
72     MCFACILITY = 273,              /* MCFACILITY  */
73     MCSYMBOLICNAME = 274,          /* MCSYMBOLICNAME  */
74     MCNUMBER = 275                 /* MCNUMBER  */
75   };
76   typedef enum yytokentype yytoken_kind_t;
77 #endif
78 /* Token kinds.  */
79 #define YYEMPTY -2
80 #define YYEOF 0
81 #define YYerror 256
82 #define YYUNDEF 257
83 #define NL 258
84 #define MCIDENT 259
85 #define MCFILENAME 260
86 #define MCLINE 261
87 #define MCCOMMENT 262
88 #define MCTOKEN 263
89 #define MCENDLINE 264
90 #define MCLANGUAGENAMES 265
91 #define MCFACILITYNAMES 266
92 #define MCSEVERITYNAMES 267
93 #define MCOUTPUTBASE 268
94 #define MCMESSAGEIDTYPEDEF 269
95 #define MCLANGUAGE 270
96 #define MCMESSAGEID 271
97 #define MCSEVERITY 272
98 #define MCFACILITY 273
99 #define MCSYMBOLICNAME 274
100 #define MCNUMBER 275
101 
102 /* Value type.  */
103 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
104 union YYSTYPE
105 {
106 #line 44 "mcparse.y"
107 
108   rc_uint_type ival;
109   unichar *ustr;
110   const mc_keyword *tok;
111   mc_node *nod;
112 
113 #line 114 "mcparse.h"
114 
115 };
116 typedef union YYSTYPE YYSTYPE;
117 # define YYSTYPE_IS_TRIVIAL 1
118 # define YYSTYPE_IS_DECLARED 1
119 #endif
120 
121 
122 extern YYSTYPE yylval;
123 
124 
125 int yyparse (void);
126 
127 
128 #endif /* !YY_YY_MCPARSE_H_INCLUDED  */
129