搜索资源列表
parse.tar.Z 基于C++的语法分析类
- 一个基于C++的语法分析类,可以用来定制自己的编译器 ,A class based C++ syntactic analysis, it can be used to build you own compiler
define
- define 编译原理词法分析器 八、 实验一:设计SAMPLE语言的词法分析器 检查要求: a) 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音); b) 请求输入测试程序名,键入程序名后自动开始词法分析并输出结果; c) 输出结果为单词的二元式序列(样式见样板输出1和2); d) 要求能发现下列词法错误和指出错误性质和位置: 非法字符,即不是SAMPLE字符集的符号; 字符常数缺右边的单引号(字符常数要求左、右边用单引号界定,不能跨行);
bianyiqi
- 八、 设计SAMPLE语言的语法、语义分析器,输出四元式的中间结果。 检查要求: a] 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音)。 b] 请求输入测试程序名,键入程序名后自动开始编译。 c] 输出四元式中间代码(样式见样板输出3和4)。 d] 能发现程序的语法错误并输出出错信息。 -Eight, design SAMPLE language grammar, semantic analyzer, the output quaternion type
bianyiqi1
- 设计SAMPLE语言的词法分析器 检查要求: a] 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音); b] 请求输入测试程序名,键入程序名后自动开始词法分析并输出结果; c] 输出结果为单词的二元式序列(样式见样板输出1和2);-Design SAMPLE language lexical analyzer inspection requirements: a] start the process, the first output of the author
Lex
- A simulated lexical analyser for HLL like C,PASCAL etc. I have given a sample text file from which the source code reads the dummy program n analyses it. The program can be extended by adding more.
output_example_ffmpeg_sdk
- FFmpeg output_example.cpp的源代码。-The code of output_example.cpp belongs to FFmpeg.
Assignment2
- The 2nd assignment - sample c program to make simple receipt.-The 2nd assignment- sample c program to make simple receipt.
cminuscomplier
- 可以进行c minus的词法分析 其中有供测试的样例 可以输出查看-Can be c minus the lexical analysis of the sample for testing which can output view
oj
- (n阶Hanoi塔问题)假设有三个分别命名为A、B、C的塔座,在塔座A上插有n(n<20)个直径大小各不相同、依小到大编号为1,2,…,n的圆盘。现要求将A轴上的n个圆盘移至塔座C上并仍按同样顺序叠排,圆盘移动时必须遵循下列规则: 1)每次只能移动一个圆盘; 2)圆盘可以插在A、B、C中的任一塔座上; 3)任何时刻都不能将一个较大的圆盘压在较小的圆盘之上。 请通过编程来打印出移动的步骤. Input 只有一组输入数据.输入数据N( 表示在开始时A塔
Tiny_Compiler_5r
- 解释器Tiny Compiler(此为第五版)是用c++写的解释器,语法规则类似于C和matlab,支持数组和函数调用,并用mfc做了简单界面。 内附详细说明及例子程序。 第五版新增特性:计算器工具中添加了公式的“立体显示”。 第四版新增特性:添加了语法树的可视化显示。 官方日志:http://wantnon.spaces.live.com/blog/cns!22376C1C5B93C0AD!464.entry-The interpreter(name:Tiny Compiler
Lexical-Analyzer-Parser-compiler
- Parses forwards and backwards. -Scans forwards and backwards. -Get the delimiter that was found. -Get the offset at where the token was started. -Get the current offset of the parser. -Add any number of delimiters. -Support for delimiter
lex_simple
- 简单的lex编程,详细见英文描述 Running the Lex program 1. Write the Lex specifications as described above in a file, say, prog1.l 2. On moon.cse.yzu.edu.tw, do the following: flex prog1.l (Produces lex.yy.c as the output) gcc lex.yy.c -lfl (Compi
comlier1
- 设计SAMPLE语言的词法分析器 检查要求: a) 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音); b) 请求输入测试程序名,键入程序名后自动开始词法分析并输出结果; c) 输出结果为单词的二元式序列(样式见样板输出1和2); d) 要求能发现下列词法错误和指出错误性质和位置: 非法字符,即不是SAMPLE字符集的符号; 字符常数缺右边的单引号(字符常数要求左、右边用单引号界定,不能跨行); 注释部分缺右边的界符*/(注释要求左右边分别用/
ezwsrc-daima
- C实现EZW编辑器实例代码 C实现EZW编辑器实例代码,该源代码包含有6个文件: EZW.H - EZW编码器头文件 EZW.C - EZW编码器文件 MATRIX2D.H MATRIX2D.C - 编码器数据结果定义和数据操作 FIFO.H FIFO.C - 扫描方式定义:先入先出原则 LIST.H LIST.C - 零树结构定义和操作 UNEZW.C - EZW解码器 -C the EZW editor instance code C to EZW edi
lc
- 引用原作者:这个类C编译器是我在2008年写的,完成度并不高,并没有实现指针、struct这些,不过还是实现了基本的C语言数据类型(int/char/long/short等),函数的声明、定义、调用、递归,if/for/while/goto等跳转,详细请看sample和source。 为了节省开发的时间,词法和语法分析分别采用lex和yacc编写,可以用Cygwin里面的flex和bison进行编译。另外我觉得编译成x86的bytecode比较麻烦,所以定义了一套自己的bytecode
