blob: 09ace7815406a93133f17b478f2eb70f892a97a4 [file] [log] [blame]
vlm827ac182004-06-03 05:07:41 +00001/* A Bison parser, made from asn1p_y.y, by GNU bison 1.75. */
2
3/* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21/* As a special exception, when this file is copied by Bison into a
22 Bison output file, you may use that output file without restriction.
23 This special exception was added by the Free Software Foundation
24 in version 1.24 of Bison. */
25
26#ifndef BISON_Y_TAB_H
27# define BISON_Y_TAB_H
28
29/* Tokens. */
30#ifndef YYTOKENTYPE
31# define YYTOKENTYPE
32 /* Put the tokens into the symbol table, so that GDB and other debuggers
33 know about them. */
34 enum yytokentype {
35 TOK_PPEQ = 258,
36 TOK_opaque = 259,
37 TOK_bstring = 260,
38 TOK_cstring = 261,
39 TOK_hstring = 262,
40 TOK_identifier = 263,
41 TOK_number = 264,
42 TOK_number_negative = 265,
43 TOK_typereference = 266,
44 TOK_objectclassreference = 267,
45 TOK_typefieldreference = 268,
46 TOK_valuefieldreference = 269,
47 TOK_ABSENT = 270,
48 TOK_ABSTRACT_SYNTAX = 271,
49 TOK_ALL = 272,
50 TOK_ANY = 273,
51 TOK_APPLICATION = 274,
52 TOK_AUTOMATIC = 275,
53 TOK_BEGIN = 276,
54 TOK_BIT = 277,
55 TOK_BMPString = 278,
56 TOK_BOOLEAN = 279,
57 TOK_BY = 280,
58 TOK_CHARACTER = 281,
59 TOK_CHOICE = 282,
60 TOK_CLASS = 283,
61 TOK_COMPONENT = 284,
62 TOK_COMPONENTS = 285,
63 TOK_CONSTRAINED = 286,
64 TOK_CONTAINING = 287,
65 TOK_DEFAULT = 288,
66 TOK_DEFINITIONS = 289,
67 TOK_DEFINED = 290,
68 TOK_EMBEDDED = 291,
69 TOK_ENCODED = 292,
70 TOK_END = 293,
71 TOK_ENUMERATED = 294,
72 TOK_EXPLICIT = 295,
73 TOK_EXPORTS = 296,
74 TOK_EXTENSIBILITY = 297,
75 TOK_EXTERNAL = 298,
76 TOK_FALSE = 299,
77 TOK_FROM = 300,
78 TOK_GeneralizedTime = 301,
79 TOK_GeneralString = 302,
80 TOK_GraphicString = 303,
81 TOK_IA5String = 304,
82 TOK_IDENTIFIER = 305,
83 TOK_IMPLICIT = 306,
84 TOK_IMPLIED = 307,
85 TOK_IMPORTS = 308,
86 TOK_INCLUDES = 309,
87 TOK_INSTANCE = 310,
88 TOK_INTEGER = 311,
89 TOK_ISO646String = 312,
90 TOK_MAX = 313,
91 TOK_MIN = 314,
92 TOK_MINUS_INFINITY = 315,
93 TOK_NULL = 316,
94 TOK_NumericString = 317,
95 TOK_OBJECT = 318,
96 TOK_ObjectDescriptor = 319,
97 TOK_OCTET = 320,
98 TOK_OF = 321,
99 TOK_OPTIONAL = 322,
100 TOK_PATTERN = 323,
101 TOK_PDV = 324,
102 TOK_PLUS_INFINITY = 325,
103 TOK_PRESENT = 326,
104 TOK_PrintableString = 327,
105 TOK_PRIVATE = 328,
106 TOK_REAL = 329,
107 TOK_RELATIVE_OID = 330,
108 TOK_SEQUENCE = 331,
109 TOK_SET = 332,
110 TOK_SIZE = 333,
111 TOK_STRING = 334,
112 TOK_SYNTAX = 335,
113 TOK_T61String = 336,
114 TOK_TAGS = 337,
115 TOK_TeletexString = 338,
116 TOK_TRUE = 339,
117 TOK_TYPE_IDENTIFIER = 340,
118 TOK_UNIQUE = 341,
119 TOK_UNIVERSAL = 342,
120 TOK_UniversalString = 343,
121 TOK_UTCTime = 344,
122 TOK_UTF8String = 345,
123 TOK_VideotexString = 346,
124 TOK_VisibleString = 347,
125 TOK_WITH = 348,
126 TOK_UNION = 349,
127 TOK_INTERSECTION = 350,
128 TOK_EXCEPT = 351,
129 TOK_TwoDots = 352,
130 TOK_ThreeDots = 353,
131 TOK_tag = 354
132 };
133#endif
134#define TOK_PPEQ 258
135#define TOK_opaque 259
136#define TOK_bstring 260
137#define TOK_cstring 261
138#define TOK_hstring 262
139#define TOK_identifier 263
140#define TOK_number 264
141#define TOK_number_negative 265
142#define TOK_typereference 266
143#define TOK_objectclassreference 267
144#define TOK_typefieldreference 268
145#define TOK_valuefieldreference 269
146#define TOK_ABSENT 270
147#define TOK_ABSTRACT_SYNTAX 271
148#define TOK_ALL 272
149#define TOK_ANY 273
150#define TOK_APPLICATION 274
151#define TOK_AUTOMATIC 275
152#define TOK_BEGIN 276
153#define TOK_BIT 277
154#define TOK_BMPString 278
155#define TOK_BOOLEAN 279
156#define TOK_BY 280
157#define TOK_CHARACTER 281
158#define TOK_CHOICE 282
159#define TOK_CLASS 283
160#define TOK_COMPONENT 284
161#define TOK_COMPONENTS 285
162#define TOK_CONSTRAINED 286
163#define TOK_CONTAINING 287
164#define TOK_DEFAULT 288
165#define TOK_DEFINITIONS 289
166#define TOK_DEFINED 290
167#define TOK_EMBEDDED 291
168#define TOK_ENCODED 292
169#define TOK_END 293
170#define TOK_ENUMERATED 294
171#define TOK_EXPLICIT 295
172#define TOK_EXPORTS 296
173#define TOK_EXTENSIBILITY 297
174#define TOK_EXTERNAL 298
175#define TOK_FALSE 299
176#define TOK_FROM 300
177#define TOK_GeneralizedTime 301
178#define TOK_GeneralString 302
179#define TOK_GraphicString 303
180#define TOK_IA5String 304
181#define TOK_IDENTIFIER 305
182#define TOK_IMPLICIT 306
183#define TOK_IMPLIED 307
184#define TOK_IMPORTS 308
185#define TOK_INCLUDES 309
186#define TOK_INSTANCE 310
187#define TOK_INTEGER 311
188#define TOK_ISO646String 312
189#define TOK_MAX 313
190#define TOK_MIN 314
191#define TOK_MINUS_INFINITY 315
192#define TOK_NULL 316
193#define TOK_NumericString 317
194#define TOK_OBJECT 318
195#define TOK_ObjectDescriptor 319
196#define TOK_OCTET 320
197#define TOK_OF 321
198#define TOK_OPTIONAL 322
199#define TOK_PATTERN 323
200#define TOK_PDV 324
201#define TOK_PLUS_INFINITY 325
202#define TOK_PRESENT 326
203#define TOK_PrintableString 327
204#define TOK_PRIVATE 328
205#define TOK_REAL 329
206#define TOK_RELATIVE_OID 330
207#define TOK_SEQUENCE 331
208#define TOK_SET 332
209#define TOK_SIZE 333
210#define TOK_STRING 334
211#define TOK_SYNTAX 335
212#define TOK_T61String 336
213#define TOK_TAGS 337
214#define TOK_TeletexString 338
215#define TOK_TRUE 339
216#define TOK_TYPE_IDENTIFIER 340
217#define TOK_UNIQUE 341
218#define TOK_UNIVERSAL 342
219#define TOK_UniversalString 343
220#define TOK_UTCTime 344
221#define TOK_UTF8String 345
222#define TOK_VideotexString 346
223#define TOK_VisibleString 347
224#define TOK_WITH 348
225#define TOK_UNION 349
226#define TOK_INTERSECTION 350
227#define TOK_EXCEPT 351
228#define TOK_TwoDots 352
229#define TOK_ThreeDots 353
230#define TOK_tag 354
231
232
233
234
235#ifndef YYSTYPE
236#line 57 "asn1p_y.y"
vlmfa67ddc2004-06-03 03:38:44 +0000237typedef union {
238 asn1p_t *a_grammar;
239 asn1p_module_flags_e a_module_flags;
240 asn1p_module_t *a_module;
241 asn1p_expr_type_e a_type; /* ASN.1 Type */
242 asn1p_expr_t *a_expr; /* Constructed collection */
243 asn1p_constraint_t *a_constr; /* Constraint */
244 enum asn1p_constraint_type_e a_ctype;/* Constraint type */
245 asn1p_xports_t *a_xports; /* IMports/EXports */
246 asn1p_oid_t *a_oid; /* Object Identifier */
247 asn1p_oid_arc_t a_oid_arc; /* Single OID's arc */
248 struct asn1p_type_tag_s a_tag; /* A tag */
249 asn1p_ref_t *a_ref; /* Reference to custom type */
250 asn1p_wsyntx_t *a_wsynt; /* WITH SYNTAX contents */
251 asn1p_wsyntx_chunk_t *a_wchunk; /* WITH SYNTAX chunk */
252 struct asn1p_ref_component_s a_refcomp; /* Component of a reference */
253 asn1p_value_t *a_value; /* Number, DefinedValue, etc */
254 struct asn1p_param_s a_parg; /* A parameter argument */
255 asn1p_paramlist_t *a_plist; /* A pargs list */
256 enum asn1p_expr_marker_e a_marker; /* OPTIONAL/DEFAULT */
257 enum asn1p_constr_pres_e a_pres; /* PRESENT/ABSENT/OPTIONAL */
258 asn1_integer_t a_int;
259 char *tv_str;
260 struct {
261 char *buf;
262 int len;
263 } tv_opaque;
264 struct {
265 char *name;
266 struct asn1p_type_tag_s tag;
267 } tv_nametag;
vlm827ac182004-06-03 05:07:41 +0000268} yystype;
269/* Line 1281 of /usr/local/share/bison/yacc.c. */
270#line 271 "y.tab.h"
271# define YYSTYPE yystype
272#endif
vlmfa67ddc2004-06-03 03:38:44 +0000273
274extern YYSTYPE asn1p_lval;
vlm827ac182004-06-03 05:07:41 +0000275
276
277#endif /* not BISON_Y_TAB_H */
278