📄 asn_grammar.cxx
字号:
/* A Bison parser, made from asn_grammar.y with Bison version GNU Bison version 1.24
*/
#define YYBISON 1 /* Identify Bison output. */
#define IDENTIFIER 258
#define BIT_IDENTIFIER 259
#define OID_IDENTIFIER 260
#define IMPORT_IDENTIFIER 261
#define MODULEREFERENCE 262
#define TYPEREFERENCE 263
#define OBJECTCLASSREFERENCE 264
#define TYPEFIELDREFERENCE 265
#define VALUEFIELDREFERENCE 266
#define VALUESETFIELDREFERENCE 267
#define OBJECTFIELDREFERENCE 268
#define OBJECTSETFIELDREFERENCE 269
#define OBJECTREFERENCE 270
#define OBJECTSETREFERENCE 271
#define INTEGER 272
#define CSTRING 273
#define OS_BSTRING 274
#define BS_BSTRING 275
#define OS_HSTRING 276
#define BS_HSTRING 277
#define STRING_BRACE 278
#define BITSTRING_BRACE 279
#define OID_BRACE 280
#define ABSENT 281
#define ABSTRACT_SYNTAX 282
#define ALL 283
#define ANY 284
#define APPLICATION 285
#define ASSIGNMENT 286
#define AUTOMATIC 287
#define BEGIN_t 288
#define BIT 289
#define BMPString 290
#define BOOLEAN_t 291
#define BY 292
#define CHARACTER 293
#define CHOICE 294
#define CLASS 295
#define COMPONENT 296
#define COMPONENTS 297
#define CONSTRAINED 298
#define DEFAULT 299
#define DEFINED 300
#define DEFINITIONS 301
#define EMBEDDED 302
#define END 303
#define ENUMERATED 304
#define EXCEPT 305
#define EXPLICIT 306
#define EXPORTS 307
#define EXTERNAL 308
#define FALSE_t 309
#define FROM 310
#define GeneralString 311
#define GraphicString 312
#define IA5String 313
#define TYPE_IDENTIFIER 314
#define IDENTIFIER_t 315
#define IMPLICIT 316
#define IMPORTS 317
#define INCLUDES 318
#define INSTANCE 319
#define INTEGER_t 320
#define INTERSECTION 321
#define ISO646String 322
#define MACRO 323
#define MAX_t 324
#define MIN_t 325
#define MINUS_INFINITY 326
#define NOTATION 327
#define NULL_VALUE 328
#define NULL_TYPE 329
#define NumericString 330
#define OBJECT 331
#define OCTET 332
#define OF_t 333
#define OPTIONAL_t 334
#define PDV 335
#define PLUS_INFINITY 336
#define PRESENT 337
#define PrintableString 338
#define PRIVATE 339
#define REAL 340
#define SEQUENCE 341
#define SET 342
#define SIZE_t 343
#define STRING 344
#define SYNTAX 345
#define T61String 346
#define TAGS 347
#define TeletexString 348
#define TRUE_t 349
#define TYPE_t 350
#define UNION 351
#define UNIQUE 352
#define UNIVERSAL 353
#define UniversalString 354
#define VideotexString 355
#define VisibleString 356
#define GeneralizedTime 357
#define UTCTime 358
#define VALUE 359
#define WITH 360
#define string_t 361
#define identifier_t 362
#define number_t 363
#define empty_t 364
#define type_t 365
#define value_t 366
#define OBJECT_TYPE 367
#define TRAP_TYPE 368
#define ACCESS 369
#define STATUS 370
#define read_only_t 371
#define read_write_t 372
#define write_only_t 373
#define not_accessible_t 374
#define mandatory_t 375
#define optional_t 376
#define obsolete_t 377
#define deprecated_t 378
#define DESCRIPTION_t 379
#define REFERENCE_t 380
#define INDEX_t 381
#define DEFVAL_t 382
#define ENTERPRISE 383
#define VARIABLES 384
#define ObjectDescriptor_t 385
#line 3 "asn_grammar.y"
/*
* asn_grammar.y
*
* ASN grammar file
*
* ASN.1 compiler to produce C++ classes.
*
* Copyright (c) 1997-1999 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is ASN Parser.
*
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
*
* Portions of this code were written with the assisance of funding from
* Vovida Networks, Inc. http://www.vovida.com.
*
* Portions are Copyright (C) 1993 Free Software Foundation, Inc.
* All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* $Log: asn_grammar.y,v $
* Revision 1.13 2004/04/03 08:22:23 csoutheren
* Remove pseudo-RTTI and replaced with real RTTI
*
* Revision 1.12 2001/10/02 00:56:04 robertj
* Fixed problem with autonumering enumerated types.
*
* Revision 1.11 2001/01/16 14:00:17 craigs
* Changed MIN and MAX tokens to avoid namespace conflicts under BeOS
*
* Revision 1.10 2000/05/08 08:55:44 robertj
* Fixed production error for ValueSet, thanks Huang-Ming Huang
*
* Revision 1.9 2000/01/19 12:33:07 robertj
* Fixed parsing of OID's in IMPORTS section.
*
* Revision 1.8 2000/01/19 03:38:12 robertj
* Fixed support for parsing multiple IMPORTS
*
* Revision 1.7 1999/07/22 06:48:54 robertj
* Added comparison operation to base ASN classes and compiled ASN code.
* Added support for ANY type in ASN parser.
*
* Revision 1.6 1999/06/09 06:58:08 robertj
* Adjusted heading comments.
*
* Revision 1.5 1999/06/07 01:56:25 robertj
* Added header comment on license.
*
* Revision 1.4 1999/06/06 05:30:28 robertj
* Support for parameterised types and type-dentifier types.
* Added ability to output multiple .cxx files.
*
* Revision 1.3 1998/12/14 06:47:55 robertj
* New memory check code support.
*
* Revision 1.2 1998/05/21 04:21:46 robertj
* Implementing more of the ASN spec.
*
* Revision 1.1 1997/12/13 09:17:47 robertj
* Initial revision
*
*/
#include <ptlib.h>
#undef malloc
#undef calloc
#undef realloc
#undef free
#include "main.h"
extern int yylex();
extern int ReferenceTokenContext;
extern int IdentifierTokenContext;
extern int BraceTokenContext;
extern int NullTokenContext;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -