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

📄 etcl_y.cpp

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 CPP
📖 第 1 页 / 共 3 页
字号:
// ETCL_y.cpp,v 1.3 2002/01/14 19:52:28 parsons Exp

/*  A Bison parser, made from ETCL/ETCL.yy
    by GNU Bison version 1.28  */

#define YYBISON 1  /* Identify Bison output.  */

#define	TAO_ETCL_GT	257
#define	TAO_ETCL_GE	258
#define	TAO_ETCL_LT	259
#define	TAO_ETCL_LE	260
#define	TAO_ETCL_EQ	261
#define	TAO_ETCL_NE	262
#define	TAO_ETCL_EXIST	263
#define	TAO_ETCL_DEFAULT	264
#define	TAO_ETCL_AND	265
#define	TAO_ETCL_OR	266
#define	TAO_ETCL_NOT	267
#define	TAO_ETCL_IN	268
#define	TAO_ETCL_TWIDDLE	269
#define	TAO_ETCL_BOOLEAN	270
#define	TAO_ETCL_PLUS	271
#define	TAO_ETCL_MINUS	272
#define	TAO_ETCL_MULT	273
#define	TAO_ETCL_DIV	274
#define	TAO_ETCL_UMINUS	275
#define	TAO_ETCL_INTEGER	276
#define	TAO_ETCL_FLOAT	277
#define	TAO_ETCL_STRING	278
#define	TAO_ETCL_RPAREN	279
#define	TAO_ETCL_LPAREN	280
#define	TAO_ETCL_RBRA	281
#define	TAO_ETCL_LBRA	282
#define	TAO_ETCL_IDENT	283
#define	TAO_ETCL_UNSIGNED	284
#define	TAO_ETCL_SIGNED	285
#define	TAO_ETCL_DOUBLE	286
#define	TAO_ETCL_CONSTRAINT	287
#define	TAO_ETCL_COMPONENT	288
#define	TAO_ETCL_WITH	289
#define	TAO_ETCL_MAX	290
#define	TAO_ETCL_MIN	291
#define	TAO_ETCL_FIRST	292
#define	TAO_ETCL_RANDOM	293
#define	TAO_ETCL_DOLLAR	294
#define	TAO_ETCL_DOT	295
#define	TAO_ETCL_DISCRIMINANT	296
#define	TAO_ETCL_LENGTH	297
#define	TAO_ETCL_TYPE_ID	298
#define	TAO_ETCL_REPOS_ID	299

//#line 1 "ETCL/ETCL.yy"

// ETCL_y.cpp,v 1.3 2002/01/14 19:52:28 parsons Exp
// ========================================================================
//
// = LIBRARY
//   orbsvcs / Extended Trader Constraint Language parser.
// 
// = FILENAME
//   ETCL.yy
//
// = AUTHOR
//   Carlos O'Ryan <coryan@uci.edu> based on previous work by
//   Seth Widoff <sbw1@cs.wustl.edu>
//
// ========================================================================

#include "ETCL_y.h"
#include "ETCL_Constraint.h"
#include "ETCL_Interpreter.h"

extern int yylex (void);

static void yyerror (const char *)
{
  // @@ TODO
  // Ignore error messages
}

#include <stdio.h>

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



#define	YYFINAL		114
#define	YYFLAG		-32768
#define	YYNTBASE	46

#define YYTRANSLATE(x) ((unsigned)(x) <= 299 ? yytranslate[x] : 65)

static const char 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,     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,     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,     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
};

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     2,     4,     7,    10,    13,    15,    17,    21,    23,
    27,    29,    33,    37,    41,    45,    49,    53,    55,    59,
    64,    66,    70,    72,    76,    80,    82,    86,    90,    92,
    95,    97,   101,   103,   106,   109,   111,   114,   117,   119,
   121,   124,   128,   132,   135,   137,   138,   141,   144,   146,
   148,   149,   152,   154,   156,   159,   161,   163,   165,   167,
   169,   171,   176,   181,   184,   189,   190,   192,   195,   198
};

static const short yyrhs[] = {    48,
     0,    47,     0,    37,    48,     0,    36,    48,     0,    35,
    48,     0,    38,     0,    39,     0,    48,    12,    49,     0,
    49,     0,    49,    11,    50,     0,    50,     0,    51,     7,
    51,     0,    51,     8,    51,     0,    51,     3,    51,     0,
    51,     4,    51,     0,    51,     5,    51,     0,    51,     6,
    51,     0,    51,     0,    52,    14,    57,     0,    52,    14,
    40,    57,     0,    52,     0,    53,    15,    53,     0,    53,
     0,    53,    17,    54,     0,    53,    18,    54,     0,    54,
     0,    54,    19,    55,     0,    54,    20,    55,     0,    55,
     0,    13,    56,     0,    56,     0,    26,    48,    25,     0,
    22,     0,    17,    22,     0,    18,    22,     0,    23,     0,
    17,    23,     0,    18,    23,     0,    24,     0,    16,     0,
     9,    29,     0,     9,    40,    57,     0,    10,    40,    57,
     0,    40,    57,     0,    29,     0,     0,    41,    59,     0,
    29,    58,     0,    60,     0,    61,     0,     0,    41,    59,
     0,    60,     0,    61,     0,    29,    58,     0,    43,     0,
    42,     0,    44,     0,    45,     0,    62,     0,    63,     0,
    28,    22,    27,    58,     0,    26,    29,    25,    58,     0,
    22,    58,     0,    26,    64,    25,    58,     0,     0,    22,
     0,    17,    22,     0,    18,    22,     0,    24,     0
};

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
    92,    93,    96,    98,   100,   102,   104,   108,   110,   113,
   115,   118,   120,   122,   124,   126,   128,   130,   133,   135,
   137,   140,   142,   145,   147,   149,   152,   154,   156,   159,
   161,   164,   166,   168,   170,   172,   174,   176,   178,   180,
   182,   184,   186,   188,   190,   194,   196,   199,   202,   203,
   206,   208,   211,   212,   215,   217,   219,   221,   223,   225,
   226,   229,   233,   237,   241,   245,   247,   249,   251,   253
};
#endif


#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)

static const char * const yytname[] = {   "$","error","$undefined.","TAO_ETCL_GT",
"TAO_ETCL_GE","TAO_ETCL_LT","TAO_ETCL_LE","TAO_ETCL_EQ","TAO_ETCL_NE","TAO_ETCL_EXIST",
"TAO_ETCL_DEFAULT","TAO_ETCL_AND","TAO_ETCL_OR","TAO_ETCL_NOT","TAO_ETCL_IN",
"TAO_ETCL_TWIDDLE","TAO_ETCL_BOOLEAN","TAO_ETCL_PLUS","TAO_ETCL_MINUS","TAO_ETCL_MULT",
"TAO_ETCL_DIV","TAO_ETCL_UMINUS","TAO_ETCL_INTEGER","TAO_ETCL_FLOAT","TAO_ETCL_STRING",
"TAO_ETCL_RPAREN","TAO_ETCL_LPAREN","TAO_ETCL_RBRA","TAO_ETCL_LBRA","TAO_ETCL_IDENT",
"TAO_ETCL_UNSIGNED","TAO_ETCL_SIGNED","TAO_ETCL_DOUBLE","TAO_ETCL_CONSTRAINT",
"TAO_ETCL_COMPONENT","TAO_ETCL_WITH","TAO_ETCL_MAX","TAO_ETCL_MIN","TAO_ETCL_FIRST",
"TAO_ETCL_RANDOM","TAO_ETCL_DOLLAR","TAO_ETCL_DOT","TAO_ETCL_DISCRIMINANT","TAO_ETCL_LENGTH",
"TAO_ETCL_TYPE_ID","TAO_ETCL_REPOS_ID","constraint","preference","bool_or","bool_and",
"bool_compare","expr_in","expr_twiddle","expr","term","factor_not","factor",
"component","component_ext","component_dot","component_array","component_assoc",
"component_pos","union_pos","union_val", NULL
};
#endif

static const short yyr1[] = {     0,
    46,    46,    47,    47,    47,    47,    47,    48,    48,    49,
    49,    50,    50,    50,    50,    50,    50,    50,    51,    51,
    51,    52,    52,    53,    53,    53,    54,    54,    54,    55,
    55,    56,    56,    56,    56,    56,    56,    56,    56,    56,
    56,    56,    56,    56,    56,    57,    57,    57,    57,    57,
    58,    58,    58,    58,    59,    59,    59,    59,    59,    59,
    59,    60,    61,    62,    63,    64,    64,    64,    64,    64
};

static const short yyr2[] = {     0,
     1,     1,     2,     2,     2,     1,     1,     3,     1,     3,
     1,     3,     3,     3,     3,     3,     3,     1,     3,     4,
     1,     3,     1,     3,     3,     1,     3,     3,     1,     2,
     1,     3,     1,     2,     2,     1,     2,     2,     1,     1,
     2,     3,     3,     2,     1,     0,     2,     2,     1,     1,
     0,     2,     1,     1,     2,     1,     1,     1,     1,     1,
     1,     4,     4,     2,     4,     0,     1,     2,     2,     1
};

static const short yydefact[] = {     0,
     0,     0,     0,    40,     0,     0,    33,    36,    39,     0,
    45,     0,     0,     0,     6,     7,    46,     2,     1,     9,
    11,    18,    21,    23,    26,    29,    31,    41,    46,    46,
    30,    34,    37,    35,    38,     0,     5,     4,     3,     0,
     0,    51,     0,    44,    49,    50,     0,     0,     0,     0,
     0,     0,     0,     0,    46,     0,     0,     0,     0,     0,
    42,    43,    32,     0,     0,     0,    48,    53,    54,    51,
    66,    51,    57,    56,    58,    59,    47,    60,    61,     8,
    10,    14,    15,    16,    17,    12,    13,    46,    19,    22,
    24,    25,    27,    28,    51,    51,    52,    64,     0,     0,
    67,    70,     0,    55,    20,    63,    62,    68,    69,    51,
    65,     0,     0,     0
};

static const short yydefgoto[] = {   112,
    18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
    44,    67,    77,    68,    69,    78,    79,   103
};

static const short yypact[] = {    41,
   -13,   -39,    94,-32768,    38,    46,-32768,-32768,-32768,    73,
-32768,    73,    73,    73,-32768,-32768,    -9,-32768,    -6,     7,
-32768,   121,    -5,    19,    55,-32768,-32768,-32768,    -9,    -9,
-32768,-32768,-32768,-32768,-32768,    21,    -6,    -6,    -6,     6,
    25,    -2,    -1,-32768,-32768,-32768,    73,    73,    73,    73,
    73,    73,    73,    73,   -18,    73,    73,    73,    73,    73,
-32768,-32768,-32768,    27,    29,    -1,-32768,-32768,-32768,    -2,
    31,    -2,-32768,-32768,-32768,-32768,-32768,-32768,-32768,     7,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,    -9,-32768,    67,
    55,    55,-32768,-32768,    -2,    -2,-32768,-32768,    44,    50,
-32768,-32768,    69,-32768,-32768,-32768,-32768,-32768,-32768,    -2,
-32768,    98,   100,-32768
};

static const short yypgoto[] = {-32768,
-32768,    95,    54,    58,    86,-32768,    59,    30,    33,   111,
   -26,   -65,    53,   -17,   -15,-32768,-32768,-32768
};


#define	YYLAST		140


static const short yytable[] = {    45,
    30,    46,    61,    62,    98,    47,   104,    40,    55,    41,
    42,    45,    45,    46,    46,    28,    40,    48,    41,    42,
    70,    88,    43,    40,    71,    41,    29,    72,    89,   106,
   107,    43,    47,    56,    64,    57,    58,    45,    66,    46,
    73,    74,    75,    76,   111,    63,    65,    99,   100,     1,
     2,    95,   101,     3,   102,    96,     4,     5,     6,    32,
    33,   105,     7,     8,     9,   108,    10,    34,    35,    11,
    45,   109,    46,    59,    60,    12,    13,    14,    15,    16,
    17,     1,     2,    57,    58,     3,    91,    92,     4,     5,
     6,    93,    94,   110,     7,     8,     9,   113,    10,   114,
    80,    11,     1,     2,    36,    81,    37,    38,    39,     4,
     5,     6,    17,    31,    90,     7,     8,     9,    97,    10,
     0,     0,    11,    49,    50,    51,    52,    53,    54,     0,
     0,     0,     0,    17,    82,    83,    84,    85,    86,    87
};

static const short yycheck[] = {    17,
    40,    17,    29,    30,    70,    12,    72,    26,    14,    28,
    29,    29,    30,    29,    30,    29,    26,    11,    28,    29,
    22,    40,    41,    26,    26,    28,    40,    29,    55,    95,
    96,    41,    12,    15,    29,    17,    18,    55,    41,    55,
    42,    43,    44,    45,   110,    25,    22,    17,    18,     9,
    10,    25,    22,    13,    24,    27,    16,    17,    18,    22,
    23,    88,    22,    23,    24,    22,    26,    22,    23,    29,
    88,    22,    88,    19,    20,    35,    36,    37,    38,    39,
    40,     9,    10,    17,    18,    13,    57,    58,    16,    17,
    18,    59,    60,    25,    22,    23,    24,     0,    26,     0,
    47,    29,     9,    10,    10,    48,    12,    13,    14,    16,
    17,    18,    40,     3,    56,    22,    23,    24,    66,    26,
    -1,    -1,    29,     3,     4,     5,     6,     7,     8,    -1,
    -1,    -1,    -1,    40,    49,    50,    51,    52,    53,    54
};
/* -*-C-*-  Note some compilers choke on comments on `//#line' lines.  */
//#line 3 "/pkg/gnu/share/bison.simple"
/* This file comes from bison-1.28.  */

/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 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 2, 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, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */

#ifndef YYSTACK_USE_ALLOCA
#ifdef alloca
#define YYSTACK_USE_ALLOCA
#else /* alloca not defined */
#ifdef __GNUC__
#define YYSTACK_USE_ALLOCA
#define alloca __builtin_alloca
#else /* not GNU C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
#define YYSTACK_USE_ALLOCA
#include <alloca.h>
#else /* not sparc */
/* We think this test detects Watcom and Microsoft C.  */
/* This used to test MSDOS, but that is a bad idea
   since that symbol is in the user namespace.  */
#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
#if 0 /* No need for malloc.h, which pollutes the namespace;
	 instead, just don't use alloca.  */
#include <malloc.h>
#endif
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
/* I don't know what this was needed for, but it pollutes the namespace.
   So I turned it off.   rms, 2 May 1997.  */
/* #include <malloc.h>  */
 #pragma alloca
#define YYSTACK_USE_ALLOCA
#else /* not MSDOS, or __TURBOC__, or _AIX */
#if 0
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
		 and on HPUX 10.  Eventually we can turn this on.  */
#define YYSTACK_USE_ALLOCA
#define alloca __builtin_alloca
#endif /* __hpux */
#endif
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc */
#endif /* not GNU C */
#endif /* alloca not defined */
#endif /* YYSTACK_USE_ALLOCA not defined */

#ifdef YYSTACK_USE_ALLOCA
#define YYSTACK_ALLOC alloca
#else
#define YYSTACK_ALLOC malloc
#endif

/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   as one case of the switch.  */

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		-2
#define YYEOF		0
#define YYACCEPT	goto yyacceptlab
#define YYABORT 	goto yyabortlab
#define YYERROR		goto yyerrlab1
/* Like YYERROR except do call yyerror.
   This remains here temporarily to ease the
   transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL		goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(token, value) \
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    { yychar = (token), yylval = (value);			\
      yychar1 = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { yyerror ("syntax error: cannot back up"); YYERROR; }	\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

#ifndef YYPURE
#define YYLEX		yylex()
#endif

#ifdef YYPURE
#ifdef YYLSP_NEEDED
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval, &yylloc)
#endif
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval)
#endif
#endif /* not YYLSP_NEEDED */
#endif

/* If nonreentrant, generate the variables here */

⌨️ 快捷键说明

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