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

📄 gram.tab.c

📁 about sound recognition.i want to downlod
💻 C
📖 第 1 页 / 共 3 页
字号:
/* A Bison parser, made from gram.y   by GNU bison 1.35.  */#define YYBISON 1  /* Identify Bison output.  */# define	CTRL_ASSIGN	257# define	CTRL_IGNORE	258# define	OPEN	259# define	CLOSE	260# define	REVERSE	261# define	STARTCLASS	262# define	LET	263# define	TAG	264# define	SYMBOL	265# define	REMARK	266# define	NL	267#line 1 "gram.y"#include "mkfa.h"#define YYSTYPE char *#define CLASS_NUM 100void appendNonTerm( char *name, int modeAssign );BODY *setNonTerm( void );CLASS *entryNonTerm( char *name, BODY *body, int modeAccpt, int start, int member, int tmp );void pushBody( CLASS *class, BODY *newbody );int unifyBody( char *name, BODY *body, BODY *newbody );char *getNewClassName( char *keyname );void outputHeader( char *name );char *chkNoInstantClass( void );extern CLASS *ClassList;extern CLASS *ClassListTail;extern CLASS *StartSymbol;extern int NoNewLine;extern char GramFile[ 1024 ];extern char HeaderFile[ 1024 ];extern int SW_Compati;extern int SW_Quiet;extern int SW_SemiQuiet;extern char VerNo[];static char HeadName[ SYMBOL_LEN ];static char BodyName[ CLASS_NUM ][ SYMBOL_LEN ];static int BodyNo = 0;static int ClassNo = 0;static int ModeAssignAccptFlag = 1;static int BlockReverseSw;static int ModeBlock = 0;static int CurClassNo = 0;static int StartFlag = 0;static FILE *FPheader;static int ErrParse = 0;static int GramModifyNum = 0;#ifndef YYSTYPE# define YYSTYPE int# define YYSTYPE_IS_TRIVIAL 1#endif#ifndef YYDEBUG# define YYDEBUG 0#endif#define	YYFINAL		43#define	YYFLAG		-32768#define	YYNTBASE	14/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */#define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 27)/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */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};#if YYDEBUGstatic const short yyprhs[] ={       0,     0,     2,     5,     7,     9,    11,    13,    16,    23,      25,    28,    30,    33,    35,    38,    40,    42,    45,    50,      52,    55,    57,    60,    62,    65,    67,    69};static const short yyrhs[] ={      15,     0,    15,    14,     0,    16,     0,    20,     0,    25,       0,    26,     0,     1,    13,     0,    17,     5,    26,    18,       6,    26,     0,    10,     0,     7,    10,     0,    19,     0,      19,    18,     0,    21,     0,    23,    26,     0,    26,     0,      21,     0,     7,    21,     0,    23,     9,    22,    26,     0,      24,     0,    24,    22,     0,    11,     0,     8,    11,     0,      11,     0,     3,    26,     0,     4,     0,    12,     0,    13,       0};#endif#if YYDEBUG/* YYRLINE[YYN] -- source line where rule number YYN was defined. */static const short yyrline[] ={       0,    55,    55,    57,    57,    57,    57,    58,    63,    65,      70,    76,    76,    78,    82,    86,    88,    92,    97,    99,      99,   101,   105,   111,   116,   120,   125,   125};#endif#if (YYDEBUG) || defined YYERROR_VERBOSE/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */static const char *const yytname[] ={  "$", "error", "$undefined.", "CTRL_ASSIGN", "CTRL_IGNORE", "OPEN",   "CLOSE", "REVERSE", "STARTCLASS", "LET", "TAG", "SYMBOL", "REMARK",   "NL", "src", "statement", "block", "tag", "members", "member", "single",   "define", "bodies", "head", "body", "contol", "remark", 0};#endif/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */static const short yyr1[] ={       0,    14,    14,    15,    15,    15,    15,    15,    16,    17,      17,    18,    18,    19,    19,    19,    20,    20,    21,    22,      22,    23,    23,    24,    25,    25,    26,    26};/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */static const short yyr2[] ={       0,     1,     2,     1,     1,     1,     1,     2,     6,     1,       2,     1,     2,     1,     2,     1,     1,     2,     4,     1,       2,     1,     2,     1,     2,     1,     1,     1};/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE   doesn't specify something else to do.  Zero means the default is an   error. */static const short yydefact[] ={       0,     0,     0,    25,     0,     0,     9,    21,    26,    27,       0,     3,     0,     4,    16,     0,     5,     6,     7,    24,      10,    17,    22,     2,     0,     0,     0,    23,     0,    19,       0,    11,    13,     0,    15,    18,    20,     0,    12,    14,       8,     0,     0,     0};static const short yydefgoto[] ={      23,    10,    11,    12,    30,    31,    13,    14,    28,    15,      29,    16,    17};static const short yypact[] ={      29,    14,     5,-32768,    36,     0,-32768,-32768,-32768,-32768,       2,-32768,    20,-32768,-32768,    25,-32768,-32768,-32768,-32768,  -32768,-32768,-32768,-32768,     5,    34,     8,-32768,     5,    34,      42,     8,-32768,    -5,-32768,-32768,-32768,     5,-32768,-32768,  -32768,    49,    50,-32768};static const short yypgoto[] ={      51,-32768,-32768,-32768,    21,-32768,-32768,    -3,    24,    12,  -32768,-32768,    -2};#define	YYLAST		53static const short yytable[] ={      19,    21,    -1,     1,    25,     2,     3,     8,     9,     4,       5,    22,     6,     7,     8,     9,     5,     8,     9,     7,       8,     9,    26,    32,    34,    24,    35,    18,    32,    34,       1,    39,     2,     3,    25,    40,     4,     5,    33,     6,       7,     8,     9,    33,     5,    27,    20,     7,    37,    42,      43,    41,    38,    36};static const short yycheck[] ={       2,     4,     0,     1,     9,     3,     4,    12,    13,     7,       8,    11,    10,    11,    12,    13,     8,    12,    13,    11,      12,    13,    24,    26,    26,     5,    28,    13,    31,    31,       1,    33,     3,     4,     9,    37,     7,     8,    26,    10,      11,    12,    13,    31,     8,    11,    10,    11,     6,     0,       0,     0,    31,    29};/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */#line 3 "/usr/share/bison/bison.simple"/* Skeleton output parser for bison,   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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.  *//* All symbols defined below should begin with yy or YY, to avoid   infringing on user name space.  This should be done even for local   variables, as they might otherwise be expanded by user macros.   There are some unavoidable exceptions within include files to   define necessary library symbols; they are noted "INFRINGES ON   USER NAME SPACE" below.  */#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)/* The parser invokes alloca or malloc; define the necessary symbols.  */# if YYSTACK_USE_ALLOCA#  define YYSTACK_ALLOC alloca# else#  ifndef YYSTACK_USE_ALLOCA#   if defined (alloca) || defined (_ALLOCA_H)#    define YYSTACK_ALLOC alloca#   else#    ifdef __GNUC__#     define YYSTACK_ALLOC __builtin_alloca#    endif#   endif#  endif# endif# ifdef YYSTACK_ALLOC   /* Pacify GCC's `empty if-body' warning. */#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)# else#  if defined (__STDC__) || defined (__cplusplus)#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */#   define YYSIZE_T size_t#  endif#  define YYSTACK_ALLOC malloc#  define YYSTACK_FREE free# endif#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */#if (! defined (yyoverflow) \     && (! defined (__cplusplus) \	 || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))/* A type that is properly aligned for any stack member.  */union yyalloc{  short yyss;  YYSTYPE yyvs;# if YYLSP_NEEDED  YYLTYPE yyls;# endif};/* The size of the maximum gap between one aligned stack and the next.  */# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)/* The size of an array large to enough to hold all stacks, each with   N elements.  */# if YYLSP_NEEDED#  define YYSTACK_BYTES(N) \     ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))	\      + 2 * YYSTACK_GAP_MAX)# else#  define YYSTACK_BYTES(N) \     ((N) * (sizeof (short) + sizeof (YYSTYPE))				\      + YYSTACK_GAP_MAX)# endif/* Copy COUNT objects from FROM to TO.  The source and destination do   not overlap.  */# ifndef YYCOPY#  if 1 < __GNUC__#   define YYCOPY(To, From, Count) \      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))#  else#   define YYCOPY(To, From, Count)		\      do					\	{					\	  register YYSIZE_T yyi;		\	  for (yyi = 0; yyi < (Count); yyi++)	\	    (To)[yyi] = (From)[yyi];		\	}					\      while (0)#  endif# endif/* Relocate STACK from its old location to the new one.  The   local variables YYSIZE and YYSTACKSIZE give the old and new number of   elements in the stack, and YYPTR gives the new location of the   stack.  Advance YYPTR to a properly aligned location for the next   stack.  */# define YYSTACK_RELOCATE(Stack)					\    do									\      {									\	YYSIZE_T yynewbytes;						\	YYCOPY (&yyptr->Stack, Stack, yysize);				\	Stack = &yyptr->Stack;						\	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX;	\	yyptr += yynewbytes / sizeof (*yyptr);				\      }									\    while (0)#endif#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)# define YYSIZE_T __SIZE_TYPE__#endif#if ! defined (YYSIZE_T) && defined (size_t)# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T)# if defined (__STDC__) || defined (__cplusplus)#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */#  define YYSIZE_T size_t# endif#endif#if ! defined (YYSIZE_T)# define YYSIZE_T unsigned int#endif#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/* YYLLOC_DEFAULT -- Compute the default location (before the actions   are run).   When YYLLOC_DEFAULT is run, CURRENT is set the location of the   first token.  By default, to implement support for ranges, extend   its range to the last symbol.  */#ifndef YYLLOC_DEFAULT# define YYLLOC_DEFAULT(Current, Rhs, N)       	\   Current.last_line   = Rhs[N].last_line;	\   Current.last_column = Rhs[N].last_column;#endif/* YYLEX -- calling `yylex' with the right arguments.  */#if YYPURE# if YYLSP_NEEDED#  ifdef YYLEX_PARAM#   define YYLEX		yylex (&yylval, &yylloc, YYLEX_PARAM)#  else#   define YYLEX		yylex (&yylval, &yylloc)#  endif# else /* !YYLSP_NEEDED */#  ifdef YYLEX_PARAM#   define YYLEX		yylex (&yylval, YYLEX_PARAM)#  else#   define YYLEX		yylex (&yylval)#  endif# endif /* !YYLSP_NEEDED */#else /* !YYPURE */# define YYLEX			yylex ()#endif /* !YYPURE *//* Enable debugging if requested.  */#if YYDEBUG# ifndef YYFPRINTF#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */#  define YYFPRINTF fprintf# endif# define YYDPRINTF(Args)			\do {						\  if (yydebug)					\    YYFPRINTF Args;				\} while (0)/* Nonzero means print parse trace.  It is left uninitialized so that   multiple parsers can coexist.  */int yydebug;#else /* !YYDEBUG */# define YYDPRINTF(Args)#endif /* !YYDEBUG *//* YYINITDEPTH -- initial size of the parser's stacks.  */#ifndef	YYINITDEPTH# define YYINITDEPTH 200#endif/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only   if the built-in stack extension method is used).   Do not make this value too large; the results are undefined if   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)   evaluated with infinite-precision integer arithmetic.  */#if YYMAXDEPTH == 0# undef YYMAXDEPTH#endif#ifndef YYMAXDEPTH# define YYMAXDEPTH 10000#endif#ifdef YYERROR_VERBOSE# ifndef yystrlen#  if defined (__GLIBC__) && defined (_STRING_H)#   define yystrlen strlen#  else/* Return the length of YYSTR.  */static YYSIZE_T#   if defined (__STDC__) || defined (__cplusplus)yystrlen (const char *yystr)#   elseyystrlen (yystr)     const char *yystr;#   endif{  register const char *yys = yystr;

⌨️ 快捷键说明

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