⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asn_grammar.cxx

📁 pwlib源码库
💻 CXX
📖 第 1 页 / 共 5 页
字号:
extern int InMacroContext;
extern int HasObjectTypeMacro;
extern int InMIBContext;
extern TypesList * CurrentImportList;

static int UnnamedFieldCount = 1;
static PStringList * DummyParameters;

static PString * ConcatNames(PString * s1, char c, PString * s2)
{
  *s1 += c;
  *s1 += *s2;
  delete s2;
  return s1;
}

#ifdef _MSC_VER
#pragma warning(disable:4701)
#endif


#line 403 "asn_grammar.y"
typedef union {
  PInt64	          ival;
  PString	        * sval;
  PStringList	        * slst;
  TypeBase	        * tval;
  TypesList	        * tlst;
  ValueBase	        * vval;
  ValuesList            * vlst;
  NamedNumber	        * nval;
  NamedNumberList       * nlst;
  Constraint            * cons;
  ConstraintElementList * elst;
  ConstraintElementBase * elmt;
  struct {
    Tag::Type tagClass;
    unsigned tagNumber;
  } tagv;
} YYSTYPE;

#ifndef YYLTYPE
typedef
  struct yyltype
    {
      int timestamp;
      int first_line;
      int first_column;
      int last_line;
      int last_column;
      char *text;
   }
  yyltype;

#define YYLTYPE yyltype
#endif

#ifndef YYDEBUG
#define YYDEBUG 1
#endif

#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



#define	YYFINAL		852
#define	YYFLAG		-32768
#define	YYNTBASE	149

#define YYTRANSLATE(x) ((unsigned)(x) <= 385 ? yytranslate[x] : 390)

static const short yytranslate[] = {     0,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,   141,     2,     2,     2,     2,     2,     2,   133,
   134,     2,     2,   136,   148,   137,     2,   146,     2,     2,
     2,     2,     2,     2,     2,     2,     2,   142,   135,   140,
     2,   147,     2,   145,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
   138,     2,   139,   144,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,   131,   143,   132,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     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
};

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     1,    11,    15,    16,    18,    21,    23,    25,    27,
    32,    35,    38,    41,    42,    46,    47,    51,    52,    54,
    55,    59,    60,    62,    63,    65,    68,    69,    74,    75,
    79,    81,    83,    84,    86,    88,    90,    94,    96,    98,
   100,   103,   105,   107,   109,   111,   113,   115,   117,   119,
   121,   123,   124,   130,   134,   136,   138,   140,   142,   144,
   146,   148,   150,   152,   154,   156,   158,   160,   162,   164,
   166,   168,   170,   172,   174,   176,   178,   180,   182,   184,
   186,   188,   190,   192,   194,   198,   201,   207,   209,   213,
   218,   223,   225,   227,   229,   231,   233,   235,   237,   239,
   241,   243,   245,   247,   249,   251,   253,   256,   261,   263,
   267,   273,   275,   279,   284,   287,   289,   292,   297,   299,
   305,   313,   315,   319,   321,   323,   325,   327,   332,   336,
   338,   343,   345,   349,   352,   355,   357,   362,   366,   371,
   373,   377,   383,   387,   389,   393,   395,   398,   399,   404,
   408,   412,   417,   421,   425,   428,   432,   436,   441,   443,
   445,   447,   449,   451,   452,   456,   458,   460,   462,   466,
   468,   470,   472,   474,   477,   480,   482,   487,   492,   497,
   502,   507,   509,   511,   514,   515,   517,   519,   523,   525,
   531,   537,   544,   546,   549,   551,   555,   557,   561,   563,
   566,   569,   571,   573,   575,   577,   579,   581,   585,   587,
   589,   591,   593,   595,   597,   602,   604,   607,   609,   612,
   614,   616,   618,   620,   623,   626,   628,   630,   632,   634,
   637,   641,   645,   649,   657,   659,   663,   666,   670,   672,
   674,   676,   677,   679,   681,   687,   688,   690,   694,   696,
   700,   702,   704,   706,   713,   717,   719,   722,   726,   730,
   732,   736,   741,   746,   748,   750,   752,   754,   756,   758,
   762,   764,   766,   772,   776,   778,   780,   782,   784,   786,
   788,   790,   792,   795,   797,   800,   801,   806,   808,   809,
   811,   814,   815,   819,   823,   825,   828,   829,   833,   837,
   839,   842,   843,   847,   849,   852,   853,   857,   858,   862,
   865,   868,   870,   872,   874,   878,   880,   882,   884,   886,
   888,   890,   892,   894,   896,   898,   900,   902,   904,   906,
   908,   910,   912,   914,   916,   918,   920,   922,   924,   926,
   928,   930,   932,   936,   939,   941,   943,   947,   950,   954,
   956,   958,   960,   962,   964,   966,   968,   970,   972,   976,
   980,   982,   984,   986,   988,   990,   992,   994,   996,   998,
   999,  1005,  1011,  1017,  1022,  1028,  1034,  1038,  1042,  1044,
  1048,  1050,  1052,  1054,  1057,  1059,  1061,  1065,  1069,  1071,
  1073,  1075,  1077,  1079,  1080,  1086,  1088,  1090,  1092,  1094,
  1096,  1098,  1100,  1102,  1104,  1106,  1108,  1110,  1112,  1114,
  1116,  1120,  1121,  1126,  1128,  1131,  1133,  1135,  1140,  1142,
  1144,  1146,  1148,  1150,  1152,  1154,  1158,  1161,  1163,  1167,
  1169,  1171,  1173,  1175,  1177,  1179,  1181,  1185,  1187,  1191,
  1193,  1195,  1205,  1211,  1215,  1217,  1219,  1221,  1223,  1225,
  1227,  1231,  1234,  1236,  1240,  1243,  1245,  1248,  1250,  1252,
  1256,  1261,  1262,  1267,  1269,  1273,  1276,  1281,  1286,  1288,
  1292,  1294,  1297,  1299,  1301,  1303,  1305,  1308,  1310,  1312,
  1314,  1316,  1318,  1324,  1329,  1335,  1341,  1345,  1347,  1350,
  1352,  1354,  1358,  1363,  1364,  1365,  1382,  1384,  1386,  1388,
  1390,  1392,  1394,  1396,  1398,  1401,  1402,  1405,  1406,  1411,
  1412,  1414,  1418,  1420,  1422,  1427,  1428,  1429,  1440,  1445,
  1446,  1448,  1452,  1454,  1456,  1458,  1460,  1462,  1466,  1468,
  1472,  1477,  1482,  1484
};

static const short yyrhs[] = {    -1,
     7,   151,    46,   155,    31,    33,   150,   156,    48,     0,
   131,   152,   132,     0,     0,   153,     0,   153,   152,     0,
     3,     0,    17,     0,   154,     0,     3,   133,    17,   134,
     0,    51,    92,     0,    61,    92,     0,    32,    92,     0,
     0,   157,   159,   170,     0,     0,    52,   158,   135,     0,
     0,   168,     0,     0,    62,   160,   135,     0,     0,   161,
     0,     0,   162,     0,   161,   162,     0,     0,   168,    55,
   163,   164,     0,     0,     7,   165,   166,     0,   167,     0,
   327,     0,     0,   326,     0,     6,     0,   169,     0,   169,
   136,   168,     0,   385,     0,   386,     0,   171,     0,   170,
   171,     0,   174,     0,   321,     0,   172,     0,   262,     0,
   263,     0,   264,     0,   304,     0,   355,     0,   370,     0,
   381,     0,     0,     8,   175,   173,    31,   354,     0,     8,
    31,   175,     0,   223,     0,   177,     0,   176,     0,   180,
     0,   183,     0,   184,     0,   187,     0,   192,     0,   193,
     0,   197,     0,   198,     0,   199,     0,   200,     0,   201,
     0,   202,     0,   203,     0,   204,     0,   205,     0,   206,
     0,   211,     0,   212,     0,   213,     0,   214,     0,   178,
     0,   219,     0,   218,     0,   220,     0,   179,     0,     8,
     0,   316,     0,     7,   137,     8,     0,    34,    89,     0,
    34,    89,   131,   181,   132,     0,   182,     0,   181,   136,
   182,     0,     3,   133,    17,   134,     0,     3,   133,   325,
   134,     0,    36,     0,   185,     0,   186,     0,    35,     0,
    56,     0,    57,     0,    58,     0,    67,     0,    75,     0,
    83,     0,    93,     0,    91,     0,    99,     0,   100,     0,
   101,     0,    38,    89,     0,    39,   131,   188,   132,     0,
   189,     0,   189,   136,   190,     0,   189,   136,   190,   136,
   189,     0,   191,     0,   189,   136,   191,     0,   137,   137,
   137,   227,     0,     3,   175,     0,   175,     0,    47,    80,
     0,    49,   131,   194,   132,     0,   195,     0,   195,   136,
   137,   137,   137,     0,   195,   136,   137,   137,   137,   136,
   195,     0,   196,     0,   195,   136,   196,     0,     3,     0,
   388,     0,    53,     0,    29,     0,    29,    45,    37,     3,
     0,    64,    78,   266,     0,    65,     0,    65,   131,   387,
   132,     0,    74,     0,   266,   137,   298,     0,    76,    60,
     0,    77,    89,     0,    85,     0,    86,   131,   207,   132,
     0,    86,   131,   132,     0,    86,   131,   190,   132,     0,
   208,     0,   208,   136,   190,     0,   208,   136,   190,   136,
   208,     0,   190,   136,   208,     0,   209,     0,   208,   136,
   209,     0,   191,     0,   191,    79,     0,     0,   191,    44,
   210,   323,     0,    42,    78,   175,     0,    86,    78,   175,
     0,    87,   131,   207,   132,     0,    87,   131,   132,     0,
    87,    78,   175,     0,   215,   175,     0,   215,    61,   175,
     0,   215,    51,   175,     0,   138,   217,   216,   139,     0,
    17,     0,   325,     0,    98,     0,    30,     0,    84,     0,
     0,     3,   140,   175,     0,   102,     0,   103,     0,   130,
     0,   221,   137,   298,     0,   292,     0,   222,     0,   295,
     0,   297,     0,   292,   318,     0,   175,   225,     0,   224,
     0,    87,   225,    78,   175,     0,    87,   246,    78,   175,
     0,    86,   225,    78,   175,     0,    86,   246,    78,   175,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -