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

📄 calc_yacc.h

📁 利用flex和bison做的简易C语言编译器核心 支持C语言的大部分运算操作和语法,但是没有 变量声明和函数声明 适合制作虚拟机之类的 输出结果是伪汇编代码 我会继续更新
💻 H
字号:
/* A Bison parser, made by GNU Bison 2.3.  *//* Skeleton interface for Bison's Yacc-like parsers in C   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006   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., 51 Franklin Street, Fifth Floor,   Boston, MA 02110-1301, USA.  *//* As a special exception, you may create a larger work that contains   part or all of the Bison parser skeleton and distribute that work   under terms of your choice, so long as that work isn't itself a   parser generator using the skeleton or a modified version thereof   as a parser skeleton.  Alternatively, if you modify or redistribute   the parser skeleton itself, you may (at your option) remove this   special exception, which will cause the skeleton and the resulting   Bison output files to be licensed under the GNU General Public   License without this special exception.   This special exception was added by the Free Software Foundation in   version 2.2 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 {     IDENTIFIER = 258,     CONSTANT_S = 259,     CONSTANT_C = 260,     CONSTANT_I = 261,     CONSTANT_R = 262,     ASS = 263,     IF = 264,     IFX = 265,     ELSE = 266,     GOTO = 267,     LABE = 268,     DO = 269,     WH = 270,     CALL = 271,     ASSIGN = 272,     ASSADD = 273,     ASSSUB = 274,     ASSMUL = 275,     ASSDIV = 276,     ASSBAL = 277,     ASSAND = 278,     ASSXOR = 279,     ASSOOR = 280,     ASSSHL = 281,     ASSSHR = 282,     OOR = 283,     AND = 284,     CNE = 285,     CEQ = 286,     CLE = 287,     CGE = 288,     SHR = 289,     SHL = 290,     UMI = 291   };#endif/* Tokens.  */#define IDENTIFIER 258#define CONSTANT_S 259#define CONSTANT_C 260#define CONSTANT_I 261#define CONSTANT_R 262#define ASS 263#define IF 264#define IFX 265#define ELSE 266#define GOTO 267#define LABE 268#define DO 269#define WH 270#define CALL 271#define ASSIGN 272#define ASSADD 273#define ASSSUB 274#define ASSMUL 275#define ASSDIV 276#define ASSBAL 277#define ASSAND 278#define ASSXOR 279#define ASSOOR 280#define ASSSHL 281#define ASSSHR 282#define OOR 283#define AND 284#define CNE 285#define CEQ 286#define CLE 287#define CGE 288#define SHR 289#define SHL 290#define UMI 291#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLAREDtypedef union YYSTYPE#line 22 "calc_yacc.y"{    char  c_value;    long  i_value;    Real  r_value;    char *s_value;    Node *n_point;}/* Line 1489 of yacc.c.  */#line 129 "calc_yacc.h"	YYSTYPE;# 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 + -