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

📄 wsgram.c

📁 The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword b
💻 C
📖 第 1 页 / 共 5 页
字号:
/* A Bison parser, made by GNU Bison 1.875.  *//* Skeleton parser for Yacc-like parsing with 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.  *//* Written by Richard Stallman by simplifying the original so called   ``semantic'' parser.  *//* 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.  *//* Identify Bison output.  */#define YYBISON 1/* Skeleton name.  */#define YYSKELETON_NAME "yacc.c"/* Pure parsers.  */#define YYPURE 1/* Using locations.  */#define YYLSP_NEEDED 1/* If NAME_PREFIX is specified substitute the variables and functions   names.  */#define yyparse ws_yy_parse#define yylex   ws_yy_lex#define yyerror ws_yy_error#define yylval  ws_yy_lval#define yychar  ws_yy_char#define yydebug ws_yy_debug#define yynerrs ws_yy_nerrs#define yylloc ws_yy_lloc/* Tokens.  */#ifndef YYTOKENTYPE# define YYTOKENTYPE   /* Put the tokens into the symbol table, so that GDB and other debuggers      know about them.  */   enum yytokentype {     tINVALID = 258,     tTRUE = 259,     tFALSE = 260,     tINTEGER = 261,     tFLOAT = 262,     tSTRING = 263,     tIDENTIFIER = 264,     tACCESS = 265,     tAGENT = 266,     tBREAK = 267,     tCONTINUE = 268,     tIDIV = 269,     tIDIVA = 270,     tDOMAIN = 271,     tELSE = 272,     tEQUIV = 273,     tEXTERN = 274,     tFOR = 275,     tFUNCTION = 276,     tHEADER = 277,     tHTTP = 278,     tIF = 279,     tISVALID = 280,     tMETA = 281,     tNAME = 282,     tPATH = 283,     tRETURN = 284,     tTYPEOF = 285,     tUSE = 286,     tUSER = 287,     tVAR = 288,     tWHILE = 289,     tURL = 290,     tDELETE = 291,     tIN = 292,     tLIB = 293,     tNEW = 294,     tNULL = 295,     tTHIS = 296,     tVOID = 297,     tWITH = 298,     tCASE = 299,     tCATCH = 300,     tCLASS = 301,     tCONST = 302,     tDEBUGGER = 303,     tDEFAULT = 304,     tDO = 305,     tENUM = 306,     tEXPORT = 307,     tEXTENDS = 308,     tFINALLY = 309,     tIMPORT = 310,     tPRIVATE = 311,     tPUBLIC = 312,     tSIZEOF = 313,     tSTRUCT = 314,     tSUPER = 315,     tSWITCH = 316,     tTHROW = 317,     tTRY = 318,     tEQ = 319,     tLE = 320,     tGE = 321,     tNE = 322,     tAND = 323,     tOR = 324,     tPLUSPLUS = 325,     tMINUSMINUS = 326,     tLSHIFT = 327,     tRSSHIFT = 328,     tRSZSHIFT = 329,     tADDA = 330,     tSUBA = 331,     tMULA = 332,     tDIVA = 333,     tANDA = 334,     tORA = 335,     tXORA = 336,     tREMA = 337,     tLSHIFTA = 338,     tRSSHIFTA = 339,     tRSZSHIFTA = 340   };#endif#define tINVALID 258#define tTRUE 259#define tFALSE 260#define tINTEGER 261#define tFLOAT 262#define tSTRING 263#define tIDENTIFIER 264#define tACCESS 265#define tAGENT 266#define tBREAK 267#define tCONTINUE 268#define tIDIV 269#define tIDIVA 270#define tDOMAIN 271#define tELSE 272#define tEQUIV 273#define tEXTERN 274#define tFOR 275#define tFUNCTION 276#define tHEADER 277#define tHTTP 278#define tIF 279#define tISVALID 280#define tMETA 281#define tNAME 282#define tPATH 283#define tRETURN 284#define tTYPEOF 285#define tUSE 286#define tUSER 287#define tVAR 288#define tWHILE 289#define tURL 290#define tDELETE 291#define tIN 292#define tLIB 293#define tNEW 294#define tNULL 295#define tTHIS 296#define tVOID 297#define tWITH 298#define tCASE 299#define tCATCH 300#define tCLASS 301#define tCONST 302#define tDEBUGGER 303#define tDEFAULT 304#define tDO 305#define tENUM 306#define tEXPORT 307#define tEXTENDS 308#define tFINALLY 309#define tIMPORT 310#define tPRIVATE 311#define tPUBLIC 312#define tSIZEOF 313#define tSTRUCT 314#define tSUPER 315#define tSWITCH 316#define tTHROW 317#define tTRY 318#define tEQ 319#define tLE 320#define tGE 321#define tNE 322#define tAND 323#define tOR 324#define tPLUSPLUS 325#define tMINUSMINUS 326#define tLSHIFT 327#define tRSSHIFT 328#define tRSZSHIFT 329#define tADDA 330#define tSUBA 331#define tMULA 332#define tDIVA 333#define tANDA 334#define tORA 335#define tXORA 336#define tREMA 337#define tLSHIFTA 338#define tRSSHIFTA 339#define tRSZSHIFTA 340/* Copy the first part of user declarations.  */#line 1 "wmlscript/wsgram.y"/* * * wsgram.y * * Author: Markku Rossi <mtr@iki.fi> * * Copyright (c) 1999-2000 WAPIT OY LTD. *		 All rights reserved. * * Bison grammar for the WMLScript compiler. * */#include "wmlscript/wsint.h"#define YYPARSE_PARAM	pctx#define YYLEX_PARAM	pctx/* The required yyerror() function.  This is actually not used but to   report the internal parser errors.  All other errors are reported   by using the `wserror.h' functions. */extern void yyerror(char *msg);#if WS_DEBUG/* Just for debugging purposes. */WsCompilerPtr global_compiler = NULL;#endif /* WS_DEBUG *//* Enabling traces.  */#ifndef YYDEBUG# define YYDEBUG 0#endif/* Enabling verbose error messages.  */#ifdef YYERROR_VERBOSE# undef YYERROR_VERBOSE# define YYERROR_VERBOSE 1#else# define YYERROR_VERBOSE 0#endif#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)#line 34 "wmlscript/wsgram.y"typedef union YYSTYPE {    WsUInt32 integer;    WsFloat vfloat;    char *identifier;    WsUtf8String *string;    WsBool boolean;    WsList *list;    WsFormalParm *parm;    WsVarDec *vardec;    WsPragmaMetaBody *meta_body;    WsStatement *stmt;    WsExpression *expr;} YYSTYPE;/* Line 191 of yacc.c.  */#line 302 "y.tab.c"# define yystype YYSTYPE /* obsolescent; will be withdrawn */# define YYSTYPE_IS_DECLARED 1# define YYSTYPE_IS_TRIVIAL 1#endif#if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)typedef struct YYLTYPE{  int first_line;  int first_column;  int last_line;  int last_column;} YYLTYPE;# define yyltype YYLTYPE /* obsolescent; will be withdrawn */# define YYLTYPE_IS_DECLARED 1# define YYLTYPE_IS_TRIVIAL 1#endif/* Copy the second part of user declarations.  *//* Line 214 of yacc.c.  */#line 326 "y.tab.c"#if ! defined (yyoverflow) || 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) || 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;    YYLTYPE yyls;};/* The size of the maximum gap between one aligned stack and the next.  */# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)/* The size of an array large to enough to hold all stacks, each with   N elements.  */# define YYSTACK_BYTES(N) \     ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))	\      + 2 * YYSTACK_GAP_MAXIMUM)/* 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];		\

⌨️ 快捷键说明

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