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

📄 cc_command.tab.cpp

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

/*  A Bison parser, made from CC_command.y
    by GNU Bison version 1.28  */

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

#define	T_START_CMD	257
#define	T_CREATE_CMD	258
#define	T_LOCK_CMD	259
#define	T_UNLOCK_CMD	260
#define	T_TRYLOCK_CMD	261
#define	T_CHANGEMODE_CMD	262
#define	T_SLEEP_CMD	263
#define	T_WAIT_CMD	264
#define	T_REPEAT_CMD	265
#define	T_EXCEP_CMD	266
#define	T_PRINT_CMD	267
#define	T_LOOKUP_CMD	268
#define	T_TERM	269
#define	T_READ	270
#define	T_IREAD	271
#define	T_UPGRADE	272
#define	T_WRITE	273
#define	T_IWRITE	274
#define	T_IDENT	275
#define	Q_STRING	276
#define	T_NUM	277


#include "CC_command.h"
#include "ace/ACE.h"
#include "orbsvcs/CosConcurrencyControlC.h"
#include "ace/OS_NS_stdio.h"

void ace_cc_yyerror (const char* s);
int ace_cc_yylex(void);

extern int line_no;
extern char line_buf[500];
extern char *ace_cc_yytext;
extern CC_CommandList *cmdlist;

typedef union {
  CC_Command *command;
  CosConcurrencyControl::lock_mode lock_mode;
  char *id;
  int num;
} ACE_CC_YYSTYPE;
#include <stdio.h>

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



#define	ACE_CC_YYFINAL		66
#define	ACE_CC_YYFLAG		-32768
#define	ACE_CC_YYNTBASE	24

#define ACE_CC_YYTRANSLATE(x) ((unsigned)(x) <= 277 ? ace_cc_yytranslate[x] : 31)

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

#if ACE_CC_YYDEBUG != 0
static const short ace_cc_yyprhs[] = {     0,
     0,     1,     3,     6,     8,    12,    16,    19,    24,    28,
    33,    37,    42,    46,    52,    57,    61,    64,    68,    72,
    76,    80,    84,    86,    88,    90,    92,    94,    96,    98
};

static const short ace_cc_yyrhs[] = {    -1,
    25,     0,    25,    26,     0,    26,     0,     3,    27,    15,
     0,     4,    28,    15,     0,     4,    15,     0,     5,    28,
    30,    15,     0,     5,    30,    15,     0,     6,    28,    30,
    15,     0,     6,    30,    15,     0,     7,    28,    30,    15,
     0,     7,    30,    15,     0,     8,    28,    30,    30,    15,
     0,     8,    30,    30,    15,     0,     9,    23,    15,     0,
    10,    15,     0,    10,    22,    15,     0,    13,    22,    15,
     0,    14,    28,    15,     0,    11,    23,    15,     0,    12,
    29,    15,     0,    21,     0,    21,     0,    21,     0,    16,
     0,    17,     0,    18,     0,    19,     0,    20,     0
};

#endif

#if ACE_CC_YYDEBUG != 0
static const short ace_cc_yyrline[] = { 0,
    51,    52,    60,    61,    64,    66,    68,    70,    72,    74,
    76,    78,    80,    82,    84,    86,    88,    90,    92,    94,
    96,    99,   103,   105,   107,   109,   110,   111,   112,   113
};
#endif


#if ACE_CC_YYDEBUG != 0 || defined (ACE_CC_YYERROR_VERBOSE)

static const char * const ace_cc_yytname[] = {   "$","error","$undefined.","T_START_CMD",
"T_CREATE_CMD","T_LOCK_CMD","T_UNLOCK_CMD","T_TRYLOCK_CMD","T_CHANGEMODE_CMD",
"T_SLEEP_CMD","T_WAIT_CMD","T_REPEAT_CMD","T_EXCEP_CMD","T_PRINT_CMD","T_LOOKUP_CMD",
"T_TERM","T_READ","T_IREAD","T_UPGRADE","T_WRITE","T_IWRITE","T_IDENT","Q_STRING",
"T_NUM","start","cmd_list","cmd","config_file_name","lock_set_name","exception_name",
"lock_mode", NULL
};
#endif

static const short ace_cc_yyr1[] = {     0,
    24,    24,    25,    25,    26,    26,    26,    26,    26,    26,
    26,    26,    26,    26,    26,    26,    26,    26,    26,    26,
    26,    26,    27,    28,    29,    30,    30,    30,    30,    30
};

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

static const short ace_cc_yydefact[] = {     1,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     2,     4,    23,     0,     7,    24,     0,    26,
    27,    28,    29,    30,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    17,     0,     0,    25,     0,     0,     0,
     3,     5,     6,     0,     9,     0,    11,     0,    13,     0,
     0,    16,    18,    21,    22,    19,    20,     8,    10,    12,
     0,    15,    14,     0,     0,     0
};

static const short ace_cc_yydefgoto[] = {    64,
    13,    14,    16,    19,    38,    26
};

static const short ace_cc_yypact[] = {     0,
    -1,    14,    20,    20,    20,    20,     7,     4,     8,     1,
    10,    13,     0,-32768,-32768,    18,-32768,-32768,    27,-32768,
-32768,-32768,-32768,-32768,    31,    28,    31,    29,    31,    30,
    31,    31,    37,-32768,    38,    39,-32768,    40,    41,    42,
-32768,-32768,-32768,    43,-32768,    44,-32768,    45,-32768,    31,
    46,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
    47,-32768,-32768,    63,    64,-32768
};

static const short ace_cc_yypgoto[] = {-32768,
-32768,    52,-32768,    12,-32768,    -4
};


#define	ACE_CC_YYLAST		65


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

static const short ace_cc_yycheck[] = {     4,
     5,     6,     3,     4,     5,     6,     7,     8,     9,    10,
    11,    12,    13,    14,     3,     4,     5,     6,    15,    21,
    25,    21,    27,    12,    29,    22,    31,    32,    15,    23,
    23,    22,    15,    21,    21,    16,    17,    18,    19,    20,
    21,    15,    15,    15,    15,    50,    16,    17,    18,    19,
    20,    15,    15,    15,    15,    15,    15,    15,    15,    15,
    15,    15,     0,     0,    13
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */

/* 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 ACE_CC_YYSTACK_USE_ALLOCA
#ifdef alloca
#define ACE_CC_YYSTACK_USE_ALLOCA
#else /* alloca not defined */
#ifdef __GNUC__
#define ACE_CC_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 ACE_CC_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 ACE_CC_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 ACE_CC_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 /* ACE_CC_YYSTACK_USE_ALLOCA not defined */

#ifdef ACE_CC_YYSTACK_USE_ALLOCA
#define ACE_CC_YYSTACK_ALLOC alloca
#else
#define ACE_CC_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 ace_cc_yyerrok		(ace_cc_yyerrstatus = 0)
#define ace_cc_yyclearin	(ace_cc_yychar = ACE_CC_YYEMPTY)
#define ACE_CC_YYEMPTY		-2
#define ACE_CC_YYEOF		0
#define ACE_CC_YYACCEPT	goto ace_cc_yyacceptlab
#define ACE_CC_YYABORT 	goto ace_cc_yyabortlab
#define ACE_CC_YYERROR		goto ace_cc_yyerrlab1
/* Like ACE_CC_YYERROR except do call ace_cc_yyerror.
   This remains here temporarily to ease the
   transition to the new meaning of ACE_CC_YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define ACE_CC_YYFAIL		goto ace_cc_yyerrlab
#define ACE_CC_YYRECOVERING()  (!!ace_cc_yyerrstatus)
#define ACE_CC_YYBACKUP(token, value) \
do								\
  if (ace_cc_yychar == ACE_CC_YYEMPTY && ace_cc_yylen == 1)				\
    { ace_cc_yychar = (token), ace_cc_yylval = (value);			\
      ace_cc_yychar1 = ACE_CC_YYTRANSLATE (ace_cc_yychar);				\
      ACE_CC_YYPOPSTACK;						\
      goto ace_cc_yybackup;						\
    }								\
  else								\
    { ace_cc_yyerror ("syntax error: cannot back up"); ACE_CC_YYERROR; }	\
while (0)

#define ACE_CC_YYTERROR	1
#define ACE_CC_YYERRCODE	256

#ifndef ACE_CC_YYPURE
#define ACE_CC_YYLEX		ace_cc_yylex()
#endif

#ifdef ACE_CC_YYPURE
#ifdef ACE_CC_YYLSP_NEEDED
#ifdef ACE_CC_YYLEX_PARAM
#define ACE_CC_YYLEX		ace_cc_yylex(&ace_cc_yylval, &ace_cc_yylloc, ACE_CC_YYLEX_PARAM)
#else
#define ACE_CC_YYLEX		ace_cc_yylex(&ace_cc_yylval, &ace_cc_yylloc)
#endif
#else /* not ACE_CC_YYLSP_NEEDED */
#ifdef ACE_CC_YYLEX_PARAM
#define ACE_CC_YYLEX		ace_cc_yylex(&ace_cc_yylval, ACE_CC_YYLEX_PARAM)
#else
#define ACE_CC_YYLEX		ace_cc_yylex(&ace_cc_yylval)
#endif
#endif /* not ACE_CC_YYLSP_NEEDED */
#endif

/* If nonreentrant, generate the variables here */

#ifndef ACE_CC_YYPURE

int	ace_cc_yychar;			/*  the lookahead symbol		*/
ACE_CC_YYSTYPE	ace_cc_yylval;			/*  the semantic value of the		*/
				/*  lookahead symbol			*/

#ifdef ACE_CC_YYLSP_NEEDED
ACE_CC_YYLTYPE ace_cc_yylloc;			/*  location data for the lookahead	*/
				/*  symbol				*/
#endif

int ace_cc_yynerrs;			/*  number of parse errors so far       */
#endif  /* not ACE_CC_YYPURE */

#if ACE_CC_YYDEBUG != 0
int ace_cc_yydebug;			/*  nonzero means print parse trace	*/
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif

/*  ACE_CC_YYINITDEPTH indicates the initial size of the parser's stacks	*/

#ifndef	ACE_CC_YYINITDEPTH

⌨️ 快捷键说明

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