File: parser.h

package info (click to toggle)
mig 1.8%2Bgit20221221-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,468 kB
  • sloc: ansic: 4,974; sh: 4,547; yacc: 603; lex: 287; makefile: 121; awk: 45
file content (241 lines) | stat: -rw-r--r-- 8,132 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
/* A Bison parser, made by GNU Bison 3.8.2.  */

/* Bison interface for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
   Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   especially those whose name start with YY_ or yy_.  They are
   private implementation details that can be changed or removed.  */

#ifndef YY_YY_PARSER_H_INCLUDED
# define YY_YY_PARSER_H_INCLUDED
/* Debug traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif

/* Token kinds.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    YYEMPTY = -2,
    YYEOF = 0,                     /* "end of file"  */
    YYerror = 256,                 /* error  */
    YYUNDEF = 257,                 /* "invalid token"  */
    sySkip = 258,                  /* sySkip  */
    syRoutine = 259,               /* syRoutine  */
    sySimpleRoutine = 260,         /* sySimpleRoutine  */
    sySubsystem = 261,             /* sySubsystem  */
    syKernelUser = 262,            /* syKernelUser  */
    syKernelServer = 263,          /* syKernelServer  */
    syMsgOption = 264,             /* syMsgOption  */
    syMsgSeqno = 265,              /* syMsgSeqno  */
    syWaitTime = 266,              /* syWaitTime  */
    syNoWaitTime = 267,            /* syNoWaitTime  */
    syErrorProc = 268,             /* syErrorProc  */
    syServerPrefix = 269,          /* syServerPrefix  */
    syUserPrefix = 270,            /* syUserPrefix  */
    syServerDemux = 271,           /* syServerDemux  */
    syRCSId = 272,                 /* syRCSId  */
    syImport = 273,                /* syImport  */
    syUImport = 274,               /* syUImport  */
    sySImport = 275,               /* sySImport  */
    syIn = 276,                    /* syIn  */
    syOut = 277,                   /* syOut  */
    syInOut = 278,                 /* syInOut  */
    syRequestPort = 279,           /* syRequestPort  */
    syReplyPort = 280,             /* syReplyPort  */
    sySReplyPort = 281,            /* sySReplyPort  */
    syUReplyPort = 282,            /* syUReplyPort  */
    syType = 283,                  /* syType  */
    syArray = 284,                 /* syArray  */
    syStruct = 285,                /* syStruct  */
    syOf = 286,                    /* syOf  */
    syInTran = 287,                /* syInTran  */
    syOutTran = 288,               /* syOutTran  */
    syDestructor = 289,            /* syDestructor  */
    syCType = 290,                 /* syCType  */
    syCUserType = 291,             /* syCUserType  */
    syCServerType = 292,           /* syCServerType  */
    syCString = 293,               /* syCString  */
    syColon = 294,                 /* syColon  */
    sySemi = 295,                  /* sySemi  */
    syComma = 296,                 /* syComma  */
    syPlus = 297,                  /* syPlus  */
    syMinus = 298,                 /* syMinus  */
    syStar = 299,                  /* syStar  */
    syDiv = 300,                   /* syDiv  */
    syLParen = 301,                /* syLParen  */
    syRParen = 302,                /* syRParen  */
    syEqual = 303,                 /* syEqual  */
    syCaret = 304,                 /* syCaret  */
    syTilde = 305,                 /* syTilde  */
    syLAngle = 306,                /* syLAngle  */
    syRAngle = 307,                /* syRAngle  */
    syLBrack = 308,                /* syLBrack  */
    syRBrack = 309,                /* syRBrack  */
    syLCBrack = 310,               /* syLCBrack  */
    syRCBrack = 311,               /* syRCBrack  */
    syBar = 312,                   /* syBar  */
    syError = 313,                 /* syError  */
    syNumber = 314,                /* syNumber  */
    sySymbolicType = 315,          /* sySymbolicType  */
    syIdentifier = 316,            /* syIdentifier  */
    syString = 317,                /* syString  */
    syQString = 318,               /* syQString  */
    syFileName = 319,              /* syFileName  */
    syIPCFlag = 320,               /* syIPCFlag  */
    syInTranPayload = 321          /* syInTranPayload  */
  };
  typedef enum yytokentype yytoken_kind_t;
#endif
/* Token kinds.  */
#define YYEMPTY -2
#define YYEOF 0
#define YYerror 256
#define YYUNDEF 257
#define sySkip 258
#define syRoutine 259
#define sySimpleRoutine 260
#define sySubsystem 261
#define syKernelUser 262
#define syKernelServer 263
#define syMsgOption 264
#define syMsgSeqno 265
#define syWaitTime 266
#define syNoWaitTime 267
#define syErrorProc 268
#define syServerPrefix 269
#define syUserPrefix 270
#define syServerDemux 271
#define syRCSId 272
#define syImport 273
#define syUImport 274
#define sySImport 275
#define syIn 276
#define syOut 277
#define syInOut 278
#define syRequestPort 279
#define syReplyPort 280
#define sySReplyPort 281
#define syUReplyPort 282
#define syType 283
#define syArray 284
#define syStruct 285
#define syOf 286
#define syInTran 287
#define syOutTran 288
#define syDestructor 289
#define syCType 290
#define syCUserType 291
#define syCServerType 292
#define syCString 293
#define syColon 294
#define sySemi 295
#define syComma 296
#define syPlus 297
#define syMinus 298
#define syStar 299
#define syDiv 300
#define syLParen 301
#define syRParen 302
#define syEqual 303
#define syCaret 304
#define syTilde 305
#define syLAngle 306
#define syRAngle 307
#define syLBrack 308
#define syRBrack 309
#define syLCBrack 310
#define syRCBrack 311
#define syBar 312
#define syError 313
#define syNumber 314
#define sySymbolicType 315
#define syIdentifier 316
#define syString 317
#define syQString 318
#define syFileName 319
#define syIPCFlag 320
#define syInTranPayload 321

/* Value type.  */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 142 "parser.y"

    u_int number;
    identifier_t identifier;
    const_string_t string;
    statement_kind_t statement_kind;
    ipc_type_t *type;
    struct
    {
	u_int innumber;		/* msgt_name value, when sending */
	const_string_t instr;
	u_int outnumber;	/* msgt_name value, when receiving */
	const_string_t outstr;
	u_int size;		/* 0 means there is no default size */
    } symtype;
    /* Holds information about a structure while parsing. */
    struct
    {
        /* The required alignment (in bytes) so far. */
        u_int type_alignment_in_bytes;
        /* The size of the struct in bytes so far. */
        u_int size_in_bytes;
    } structured_type;
    routine_t *routine;
    arg_kind_t direction;
    argument_t *argument;
    ipc_flags_t flag;

#line 227 "parser.h"

};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif


extern YYSTYPE yylval;


int yyparse (void);


#endif /* !YY_YY_PARSER_H_INCLUDED  */