搜索资源列表
-
2下载:
语法分析器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)总控程序的构造(查表程
-
-
0下载:
给定一个上下文无关文法的n条产生式规则,编程判断该文法对应的语言是否为空。若为空,则输出yes,否则输出no。-given a context-free grammar n production rules, the judgment of the programming language grammar counterparts whether empty. If empty, the output yes, or no output.
-
-
0下载:
实现自动机,用于计算理论和编译原理的学习,关于上下文无关文法和正则表达式-automatic machine used in the calculation of compiler theory and principles of learning, on the context-free grammar, and is a regular expression
-
-
0下载:
C语言上下文无关文法的词法及语法描述文件,通过使用yacc、lex工具可以生成相关C语言的词法、语法分析的C语言代码-C language context-free grammar to describe the morphology and syntax files, through the use of yacc, lex tool generates C language related to the morphology, syntax analysis, C language code
-
-
0下载:
Draak is a multi-language, macro compiler, meaning all syntax and code generation is defined in a single file. Draak is a single binary that is able to compile any context free language (like C, Pascal, Java) for any platform with only 1 file.
-
-
0下载:
CFG上下文无关文法的化简程序,注释详细,本人原来的作业-Context-free grammar CFG simplification of procedures, detailed notes, I am the original operation
-
-
0下载:
语法分析程序
实现C语言的语法分析过程,正则表达式,上下文无关语法-Analysis of program syntax of C language syntax analysis, regular expressions, context-free grammar
-
-
0下载:
LR分析法是一种自下而上进行规范归约的语法分析法,L指从左到右扫描输入符号串,R是指构造最右推导的逆过程。对大多数无二义性上下文无关文法描述的语言都可用它进行有效的分析。主要分析器有LR(0),SLR(1),LR(1),LALR(1):
LR(0):在分析的每一步,只需根据当前栈顶状态而不必向前查看输入符号就能确定应采取的分析动作。所能分析的LR(0)文法要求文法的每一个LR(0)项目集中都不含冲突项目。
-LR analysis is a bottom-up norms to r
-
-
0下载:
语法分析是编译过程的核心部分。他的任务是在词法分析识别单词符号串的基础上,分析并判断程序的的语法结构是否符合语法规则。语言的语法结构是用上下文无关文法描述的。因此语法分析器的工作的本质上就是按文法的产生式,识别输入符号串是否为一个句子。对于一个文法,当给你一串符号是,如何知道它是不是该文法的一个句子,这是这个课程设计所要解决的一个问题。-Syntax analysis is the core of the compiler process. His task is to identify the
-
-
0下载:
基于概率的上下文无关文法的句法分析器,在词法分析的基础上,分析一些简单语句。-Probability-based context-free grammar parser, the lexical analysis, based on analysis of some simple statements.
-
-
0下载:
用Yacc编写一个语法分析程序,使之与词法分析器结合,能够根据语言的上下文无关文法,识别输入的单词序列是否文法的句子。-With Yacc write a parser, so that combined with the lexical analyzer that depending on the context-free grammar of language, whether the input word sequence recognition grammar of the senten
-
-
0下载:
用递归下降法编写一个语法分析程序,使之与词法分析器结合,能够根据语言的上下文无关文法,识别输入的单词序列是否文法的句子。-Write a parser using recursive descent method, combined with the lexical analyzer makes it possible depending on the context-free grammar of language, whether the input word sequence recogn
-
-
0下载:
GNU bison 是属于 GNU 项目的一个语法分析器生成器。Bison 把一个关于“向前查看 从左到右 最右”(LALR) 上下文无关文法的描述转化成可以分析该文法的 C 或 C++ 程序。它也可以为二义文法生成 “通用的 从左到右 最右” (GLR)语法分析器。(GNU bison is a parser generator that belongs to the GNU project. Bison transforms a descr iption of "forward v
-