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

📄 c-.tab.h

📁 一个编译器的例子,基于c语言,在linux下开发 现在了简单的c语言例子
💻 H
字号:
/* 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.  *//* Tokens.  */#ifndef YYTOKENTYPE# define YYTOKENTYPE   /* Put the tokens into the symbol table, so that GDB and other debuggers      know about them.  */   enum yytokentype {     ID = 258,     INT_VAL = 259,     CHAR_VAL = 260,     FLT_VAL = 261,     HEX_VAL = 262,     EP_VAL = 263,     STRING = 264,     SIZEOF = 265,     PTR_OP = 266,     INC_OP = 267,     DEC_OP = 268,     LEFT_OP = 269,     RIGHT_OP = 270,     LE_OP = 271,     GE_OP = 272,     EQ_OP = 273,     NE_OP = 274,     PRN_OP = 275,     AND_OP = 276,     OR_OP = 277,     MUL_ASSIGN = 278,     DIV_ASSIGN = 279,     MOD_ASSIGN = 280,     ADD_ASSIGN = 281,     SUB_ASSIGN = 282,     LEFT_ASSIGN = 283,     RIGHT_ASSIGN = 284,     AND_ASSIGN = 285,     XOR_ASSIGN = 286,     OR_ASSIGN = 287,     CHAR = 288,     INT = 289,     FLOAT = 290,     DOUBLE = 291,     VOID = 292,     STRUCT = 293,     CASE = 294,     DEFAULT = 295,     IF = 296,     ELSE = 297,     SWITCH = 298,     WHILE = 299,     DO = 300,     FOR = 301,     GOTO = 302,     CONTINUE = 303,     BREAK = 304,     RETURN = 305,     PRINTLN = 306   };#endif#define ID 258#define INT_VAL 259#define CHAR_VAL 260#define FLT_VAL 261#define HEX_VAL 262#define EP_VAL 263#define STRING 264#define SIZEOF 265#define PTR_OP 266#define INC_OP 267#define DEC_OP 268#define LEFT_OP 269#define RIGHT_OP 270#define LE_OP 271#define GE_OP 272#define EQ_OP 273#define NE_OP 274#define PRN_OP 275#define AND_OP 276#define OR_OP 277#define MUL_ASSIGN 278#define DIV_ASSIGN 279#define MOD_ASSIGN 280#define ADD_ASSIGN 281#define SUB_ASSIGN 282#define LEFT_ASSIGN 283#define RIGHT_ASSIGN 284#define AND_ASSIGN 285#define XOR_ASSIGN 286#define OR_ASSIGN 287#define CHAR 288#define INT 289#define FLOAT 290#define DOUBLE 291#define VOID 292#define STRUCT 293#define CASE 294#define DEFAULT 295#define IF 296#define ELSE 297#define SWITCH 298#define WHILE 299#define DO 300#define FOR 301#define GOTO 302#define CONTINUE 303#define BREAK 304#define RETURN 305#define PRINTLN 306#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)#line 24 "c-.y"typedef union YYSTYPE {              /* define stack type */  char  *val;  symnode *symptr;} YYSTYPE;/* Line 1240 of yacc.c.  */#line 143 "c-.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 + -