搜索资源列表
parseLL1
- snl编译器 语法分析功能 c++编写 但是只有一个功能 功能不是很全-snl translator parse1 have a table
MyCMinus
- 自作的C-编译器,涉及词法分析,语法分析,词义分析。用的C语言编写。VC++调试。-Self-made C-compiler, involving lexical analysis, syntax analysis, semantic analysis. The C language. VC++ debugging.
4SLR
- 编译原理上机—语法分析2 1.目的:熟练掌握自下而上的语法分析方法,并能用C++程序实现。 2. 在已有文法的基础上再加上减法“-”和除法“/”对应的产生式构成最终的文法。从而使得记号流可以处理带括号的加、减、乘、除四则运算。 3. 对于任意给定的输入串(词法记号流)进行语法分析,要求采用SLR分析器来完成。手工构造SLR分析表,利用移进-归约分析算法(P69 图3.12)输出(P70 表3.8)对应的动作部分。如: 输入:id*+id/(id+id)# 输出:移进 按
3LL(1)
- 编译原理上机—语法分析1 目的:熟练掌握自上而下的语法分析方法,并能用C++程序实现。 要求: 1. 使用固定的文法 2. 对于任意给定的输入串(词法记号流)进行语法分析,递归下降方法和非递归预测分析方法可以任选其一来实现。 3. 要有一定的错误处理功能。即对错误能提示,并且能在一定程度上忽略尽量少的记号来进行接下来的分析。可以参考书上介绍的同步记号集合来处理。 可能的出错情况:idid*id, id**id, (id+id, +id*+id …… 4. 输入串以#结
cifa-yufa-fenxi
- C语言程序实现关于C语言的词法分析和语法分析-C language program realization about C language lexical analysis and grammatical analysis
84853534
- C语言编译器的设计与实现 我们设计的编译程序涉及到编译五个阶段中的三个,即词法分析器、语法分析器和中间代码生成器。编译程序的输出结果包括词法分析后的二元式序列、变量名表、状态栈分析过程显示及四元式序列程序,整个编译程序分为三部分: (1) 词法分析部分 (2) 语法分析处理及四元式生成部分 (3) 输出显示部分-C compiler design and implementation of our design compiler comes to compile five stages in t
par
- 这是编译原理的源代码,涉及到了编译原理的词法分析,语法分析。本实验采用flex和bison工具,编写了一个lex程序和一个yacc程序,实现的功能是对源程序进行词法分析和语法分析,并输出语法分析的过程。-This is source code of principles of Compilers, involving lexical analysis, syntax analysis in principles of Compilers. This experiment used flex an
compile3
- c++实现的编译程序。编译原理实验课编写。 包括词法分析 、语法分析(block)/以及代码生成过程。 -compiler that achieve by c++。
java-c-minus
- 采用java语言,对c减语法实现手工词法分析,分析的源文件路径是指定的。-The java language manual lexical analysis, analysis of c less syntax of the source file path is specified.
Compiler
- 用c语言写的一个简单编译器,词法分析,语法分析和翻译。-Write a simple c language compiler, lexical analysis, parsing and translation.
sufu
- 这是一个用MFC C++编写的算符优先文法的语法分析程序。-This is one written MFC C++, operator precedence grammar parser.
lc
- 引用原作者:这个类C编译器是我在2008年写的,完成度并不高,并没有实现指针、struct这些,不过还是实现了基本的C语言数据类型(int/char/long/short等),函数的声明、定义、调用、递归,if/for/while/goto等跳转,详细请看sample和source。 为了节省开发的时间,词法和语法分析分别采用lex和yacc编写,可以用Cygwin里面的flex和bison进行编译。另外我觉得编译成x86的bytecode比较麻烦,所以定义了一套自己的bytecode
scmd_SNL_C_con
- snl语言是一个简单的具有嵌套过程定义的过程式语言,本原码用C语言实现了SNL语言的词法分析,语法分析,语义分析析,中间代码生成,中间代码优化,目标代码优化的完整模块,并有极为详细的注释,是学习编译原理的极佳材料。-the snl language is a simple process language with nested process definition, the primitive code in C language SNL language lexical analysis,
Wlloucompi
- 用c写的tiny语言的解释器,包括词词法分析、语法分析、语义分析,解释执行 -C write tiny interpretation of the language, including word lexical analysis, syntax analysis, semantic analysis, and interpretation of the implementation
Debug
- 一个C++写的LL1语法分析程序,只有执行文件,和一个文档。文档中附有程序源码和使用说明。-LL1 parser a C++ write only the executable file and a document. Program source code and instructions for use attached to the document.
cbainyi
- c 编译器完美实现,有词法语法分析,还有汇编生成-the perfect realization of the c compiler syntax analysis, as well as assembler generates
aaa
- 用c++开发的基于栈的语法分析器,可以读入一段句子进行语法分析。-C++ development with a stack-based parser can read a sentence parsing.
LL(1)
- 用C++实现编译器语法分析功能,算法是LL(1),非常精炼-parsing function with C++
pl0word
- c语言编写的pl0词法分析器,从文件读入pl0程序,进行语法分析,在文件和屏幕输出分析结果-lexical analyzer c language pl0 read from the file into pl0 program, parsing, analysis results in file and screen output
Compiler_C
- java编写的C语言编译器,从C语言完成了到四元式的编译过程。其中包括词法分析,语法分析,语义分析,中间代码生成。-java written in C language compiler from the completion of the C language to quaternion-compilation process. Including lexical analysis, parsing, semantic analysis, intermediate code generatio