搜索资源列表
编译原理及实践
- 目 录 译者序 前言 第1章 概论 1 1.1 为什么要用编译器 2 1.2 与编译器相关的程序 3 1.3 翻译步骤 5 1.4 编译器中的主要数据结构 8 1.5 编译器结构中的其他问题 10 1.6 &
语法词法分析
- 一个c语言写的词法分析器和语法分析器的简单算法,适用于编译原理的初学者-a written language lexical analyzer and parser simple algorithms, compiler theory applies to the beginners
简单优先算法
- 本程序主要用于实现自底向上分析技术中的简单优先分析算法,简单文法可由键盘输入,实现功能包括:简单优先文法的判别,优先关系矩阵的输出,句子的识别等-the procedures used to achieve a bottom-up analysis of a simple priority analysis algorithms, simple grammar could be the keyboard input to achieve features include : simple gra
cweb.tar
- 著名算法大师高爷爷设计的语言。此语言结合了Tex和C,在写源代码的时候,详细注释,用一个工具单独在源码里面提取C代码编译,还有一个工具单独在源码里面提取Tex源码编译生成文档-famous masters Grandpa algorithm design language. This language combines Tex and C, writing source code, detailed notes, with a separate tool from inside the C so
XTokenString
- 这是一个高效的多字段匹配算法的程序,可以精确的定位在某个字段上有那些内容。-This is a more efficient matching algorithm field procedures, the positioning precision in a particular field are those elements.
lr0
- 编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。 -compiler theory LR (0) grammar analyzer input legitimate LR (0) grammar, will output LR (0) analysis table, and may import for the sentence syntax
exelmp
- 一个简单的公交查询管理系 d 统,采用最短路算法,利用odbcapi函数访问数据库。 -a simple inquiry Bus Marketing Management-d, the most shorted algorithm, use odbcapi function access to the database.
slr(1)
- 这个是编译原理中非常重要的算法之一,如果能掌握好它将对以后的学习非常有好处!-the compiler is a very important principle of the algorithm, if we can master it right after learning very good!
ggbdsyh
- 中间代码的公共表达式优化算法,是编译原理学习的一个好例子-intermediate code of public expression optimization algorithms, compiler theory is the study of a good example
LR0_show
- 本人编写的编译原理中LRO算法的演示程序,里面有较为详尽的文字说明-prepared by the compiler principles of the algorithm LRO Demonstration Program, which has a more detailed descr iption of
200561672100409
- 一个小语言的词法分析程序,很不错的哦.. 可以算是一个算法的小程序了! -a small language lexical analysis procedures, very good .. Oh algorithm can be considered as a small procedure!
complior
- 编译器词法分析 1. 设计扫描器的自动机; 2. 设计翻译、生成Token的算法; 3. 编写代码并上机调试运行通过。 • 要求:输入——源程序文件; 输出——(1)相应的Token序列; (2)关键字、界符表,符号表,常数表。 -compiler is a lexical analysis. Automatic design of the scanner; 2. Design translation, the Token generation algor
Lex_Yacc_Parser
- 语法分析器lex和词法分析器yacc的C++语言实现 1.Lex (1)Lex输入文件的解析 (2)正规表达式的解析 (3)一个正规表达式到NFA的转换算法实现 (4)多个NFA的合并 (5)NFA的确定化和最小化算法实现 (6)返回状态与返回内容的对应 2.Yacc (1)Yacc输入文件的解析 (2)上下文无关文法到对应LR(1)文法的下推自动机的构造 (3)LR(1)文法的下推自动机到相应分析表的构造 (4)LR(1)总控程序的构造(查表程
Dijkstra_c
- C#中实现最短路,该图算法描述的是这样的场景:图由节点和带有方向的边构成,每条边都有相应的权值,路径规划(最短路径)算法就是要找出从节点A到节点B的累积权值最小的路径。-achieve the most short-circuit, the algorithm described in the plan that is the scene : map with nodes and from the direction of the edges, and each side has a corre
drysea2
- 汇编的作业2,足够应付老师了,是一个以算符优先分析算法的语法分析器。-compiled by the two operations, sufficient to meet the teachers, it is a priority to operators analysis algorithm Parser.
042807
- 一个非常好的语法分析器,windows界面的,有实例也可以自行输入,算法优先分析方法。C#语言-a very good parser, windows interface, it can also examples of their own input, Priority algorithm analysis. C# Language
C_compiler
- 1. 构造一小型C语言SimpleC的编译器软件,达到综合理解和运用编译原理课程所讲解的关键过程(词法分析、语法分析、静态语义分析、代码生成)及相关算法的目的。 2. 通过本实验理解和掌握一般编译程序的程序组织方法和测试方法。 -1. Tectonic a small SimpleC the C language compiler software. achieve comprehensive understanding and use of compiler theory course
NFA
- 实现NFA确定化子集算法程序。DFA是NFA的特例。对每个NFA N一定存在一个DFA M ,使得 L(M)=L(N)。对每个NFA N存在着与之等价的DFA M。从NFA的矩阵表示中可以看出,表项通常是一状态的集合,而在DFA的矩阵表示中,表项是一个状态,NFA到相应的DFA的构造的基本思路是:1.DFA的每一个状态对应NFA的一组状态. 2. DFA使用它的状态去记录在NFA读入一个输入符号后可能达到的所有状态.。-achieve NFA Number algorithm to deter
A
- 编写为某一任意上下文无关文法构造的LL(1)语法分析程序,并对任给的一个输入串进行语法分析检查。 程序要求为该文法构造预测分析表,并按照预测分析算法对输入串进行语法分析,判别程序是否符合已 知的语法规则,
编译原理---算浮优先算法
- 简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎