资源简介
这是中国海洋大学2020年春季学期编译原理课程实验的源代码,所有源码都可以编译运行,大家可以下载进行参考,里面总共有8个实验的代码,加一份实验要求。

代码片段和文件信息
#line 2 “lex.yy.c“
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include
#include
#include
#include
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have . Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* begin standard C++ headers. */
/* TODO: this is always defined so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative possibly signed char to an
* integer in range [0..255] for use as an array index.
*/
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
/* Enter a start condition. This macro really ought to take a parameter
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN (yy_start) = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START (((yy_start) - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 176005 2020-04-25 11:30 编译原理全部实验\实验e1\e1.exe
文件 3195 2020-04-27 08:38 编译原理全部实验\实验e1\e1.l
文件 176517 2020-04-25 19:55 编译原理全部实验\实验e1\e2.exe
文件 50749 2020-04-25 19:55 编译原理全部实验\实验e1\lex.yy.c
文件 278 2019-04-22 14:48 编译原理全部实验\实验e1\test-e1.i
文件 161474 2020-05-21 21:02 编译原理全部实验\实验e4\a.exe
文件 4497 2020-05-21 21:02 编译原理全部实验\实验e4\sum.c
文件 176005 2020-04-25 10:18 编译原理全部实验\实验一\exper1.exe
文件 2937 2020-04-25 12:08 编译原理全部实验\实验一\experiment1.l
文件 49883 2020-04-25 10:18 编译原理全部实验\实验一\lex.yy.c
文件 295 2019-04-22 15:08 编译原理全部实验\实验一\test1.i
文件 177752 2020-04-29 14:27 编译原理全部实验\实验三\a.exe
文件 4996 2020-04-29 14:56 编译原理全部实验\实验三\experiment3.l
文件 53693 2020-04-29 14:27 编译原理全部实验\实验三\lex.yy.c
文件 344 2009-11-09 23:06 编译原理全部实验\实验三\test1.p
文件 178071 2020-05-11 22:05 编译原理全部实验\实验二\a.exe
文件 177029 2020-04-26 16:58 编译原理全部实验\实验二\e2.exe
文件 5002 2020-05-11 22:03 编译原理全部实验\实验二\experiment2.l
文件 54023 2020-05-11 22:05 编译原理全部实验\实验二\lex.yy.c
文件 344 2009-11-09 23:06 编译原理全部实验\实验二\test1.p
文件 131 2020-04-26 15:45 编译原理全部实验\实验二\需要分析的记号名.txt
文件 189258 2020-05-30 16:15 编译原理全部实验\实验五\a.exe
文件 343 2020-05-22 22:55 编译原理全部实验\实验五\ans.txt
文件 1542 2020-05-28 22:54 编译原理全部实验\实验五\exp5.l
文件 47732 2020-05-30 16:15 编译原理全部实验\实验五\exp5.tab.c
文件 2671 2020-05-30 16:15 编译原理全部实验\实验五\exp5.tab.h
文件 1615 2020-05-30 16:12 编译原理全部实验\实验五\exp5.y
文件 49882 2020-05-30 16:15 编译原理全部实验\实验五\lex.yy.c
文件 244 2020-04-29 15:46 编译原理全部实验\实验五\makefile
文件 68 2009-12-07 13:18 编译原理全部实验\实验五\test0.p
............此处省略59个文件信息
相关资源
- 编译原理实验工具及参考源码(lex&
- 类pascal语言编译器(编译原理实验)
- 编译原理课程设计:词法语法编译器
- 中科院 编译原理 习题及解答
- 编译原理四元式和逆波兰式
- 《编译原理》清华大学版中的pl0扩充
- PL/0功能扩充break功能
- 编译原理LR(0)语法分析
- 编译原理中间代码生成程序
- 编译原理:LR分析程序
- 编译原理实验:词法分析,语法分析
- 吉林大学编译原理课件
- 编译原理龙书答案
- 编译原理 第三章课后习题答案
- 易语言变量和数组的编译原理
- 编译原理语法分析器、词法分析器
- 山东大学编译原理PL/0语言 compiler实验
- FOR循环语句的翻译程序设计简单优先
- NFA的确定化NFA->DFA完整可运行代码
- 哈工大威海编译原理实验报告和源代
- 哈工大威海-编译原理实验报告和源码
- 编译原理课设c编译器
- 赋值语句翻译四元式
- 河北工业大学编译原理实验代码及实
- 编译原理课程设计 while do循环语句翻
- 编译原理课程设计do——while简单优先
- 南开大学编译原理课件及作业
- 华工往年编译原理试卷
- 编译原理课程设计for循环LR法三元式
- 哈工程-编译原理课程设计(2016级)
评论
共有 条评论