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

📄 nepc.tab.h

📁 一个小计算器的实现(编译原理),用Lex和bison
💻 H
字号:
/* A Bison parser, made by GNU Bison 2.0.  *//* Skeleton parser for Yacc-like parsing with Bison,   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 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.  *//* Tokens.  */#ifndef YYTOKENTYPE# define YYTOKENTYPE   /* Put the tokens into the symbol table, so that GDB and other debuggers      know about them.  */   enum yytokentype {     TYPE_INT = 258,     TYPE_FLOAT = 259,     TYPE_DOUBLE = 260,     TYPE_LONG = 261,     TYPE_STRING = 262,     TYPE_STRUCT = 263,     INTEGER = 264,     FLOAT = 265,     VARIABLE = 266,     STRING = 267,     ACOS = 268,     ASIN = 269,     ATAN = 270,     CEIL = 271,     COS = 272,     COSH = 273,     EXP = 274,     FABS = 275,     FLOOR = 276,     LOG = 277,     LOG10 = 278,     POW10 = 279,     SIN = 280,     SINH = 281,     SQRT = 282,     TAN = 283,     TANH = 284,     EXIT = 285,     ERASE = 286,     CLEAR = 287,     LIST = 288,     HELP = 289,     DEC = 290,     HEX = 291,     OCT = 292,     WHILE = 293,     IF = 294,     PRINT = 295,     FOR = 296,     IFX = 297,     ELSE = 298,     OR = 299,     AND = 300,     NE = 301,     EQ = 302,     LE = 303,     GE = 304,     SS = 305,     PP = 306,     UMINUS = 307   };#endif#define TYPE_INT 258#define TYPE_FLOAT 259#define TYPE_DOUBLE 260#define TYPE_LONG 261#define TYPE_STRING 262#define TYPE_STRUCT 263#define INTEGER 264#define FLOAT 265#define VARIABLE 266#define STRING 267#define ACOS 268#define ASIN 269#define ATAN 270#define CEIL 271#define COS 272#define COSH 273#define EXP 274#define FABS 275#define FLOOR 276#define LOG 277#define LOG10 278#define POW10 279#define SIN 280#define SINH 281#define SQRT 282#define TAN 283#define TANH 284#define EXIT 285#define ERASE 286#define CLEAR 287#define LIST 288#define HELP 289#define DEC 290#define HEX 291#define OCT 292#define WHILE 293#define IF 294#define PRINT 295#define FOR 296#define IFX 297#define ELSE 298#define OR 299#define AND 300#define NE 301#define EQ 302#define LE 303#define GE 304#define SS 305#define PP 306#define UMINUS 307#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)#line 10 "nepc.y"typedef union YYSTYPE {int iValue;double fValue;char *pStr;long *nPtr;int type_int;float type_float;double type_double;long type_long;} YYSTYPE;/* Line 1318 of yacc.c.  */#line 148 "nepc.tab.h"# define yystype YYSTYPE /* obsolescent; will be withdrawn */# define YYSTYPE_IS_DECLARED 1# define YYSTYPE_IS_TRIVIAL 1#endifextern YYSTYPE yylval;

⌨️ 快捷键说明

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