搜索资源列表
CompileDesign
- 本次课程设计主要实现语法分析器的构造,该语法分析器能够分析词法分析器的结果,即单词二元式。在输入单词二元式后,能输出分析的结果。 1、构造LL(1)分析表 2、求句子的预测分析过程-The main achievement of the curriculum design of the structure parser, the syntax analyzer to analyze the results of lexical analyzer, that is, the dual-ty
yffx
- 编译原理课程设计LR(0)自底向上语法分析-Principles of curriculum design compiler LR (0) bottom-up parsing
070927224155
- 这个便是我们实验中的第二项,语法分析。内容很多,大家看时要仔细-This is our second experiment, grammar analysis.
LL(1)
- LL(1)语法分析1、实现LL(1)分析中控制程序(表驱动程序); 2、完成以下描述算术表达式的LL(1)文法的LL(1)分析程序。 G[E]: E→TE′ E′→ATE′|ε T→FT′ T′→MFT′|ε F→ (E)|i A→+|- M→*|/-LL (1) syntax analysis 1, the realization of LL (1) Analysis of control procedures (table-driven procedure
liubenTiny
- 实现一个小型Tiny编译器,包括此法扫描和语法分析程序的实现-To achieve a small Tiny compiler, including the scanning of this Act and the realization of grammatical analysis
xiangqi
- 背景选择中有六幅风格不同的图片以供选择,另有乐曲可于配合游戏进行。 可以选择新手提示,它会提示你当前所选的棋子所能走到的节点,方便新手使用。 用vc++ 6.0 实现,对信息的保存用到了CList,CArray及自定义的CSaveSteps等用到类,在界面实现上用到 了CListBox等控件,为了实现棋谱输出,用GetStepName这个函数进行了语法分析。文件存取用到了CFile类。-Choice in the context of six different picture st
cifayufafenxi_C
- 利用C++编写词法和语法分析器,DFA实现语法分析-Prepared using C++ lexical analyzer and syntax, DFA grammar analysis to achieve
tiny_language_lexical_and_grammatical_analysis-jav
- 用javacc生成的tiny语言的词法及语法分析程序-Javacc generated by tiny language lexical and grammatical analysis thanks for your dwonloading
lr0
- 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
sourcer
- TINY语言编译器,包括语法分析,词法分析-TINY compiler language, including syntax analysis, lexical analysis, etc.
shiyanbaogaoyangli
- 这个报告记录了编译原理的大作业的过程和各个阶段的设计,包括词法分 析、语法分析、语义分析和汇编代码生成四个阶段,在语法分析时我采用了两种 语法分析,即一种自上而下的语法分析方法——LL(1)分析法,另一种是自底向 上的语法分析方法——SLR(1)分析法,这样可以了解到这两种不同的基本分析方 法,这样在语义分析阶段也要分这两种方法处理语义动作,并且要个产生式分别 编写语义动作。-The report recorded a big operation principle comp
yufafenxi
- 语法分析课程设计 编译原理的语法分析课程设计全-Parsing principles of curriculum design compiler parsing the whole curriculum design
grammar_analysis
- 赋值语句的语法分析,用三地址代码输出,并能发现语句错误,给出错误信息,功能良好-Assignment of grammatical analysis, with three-address code output, and found that statement wrong, given wrong information, a well-functioning
xxbjq
- 目录 1. 课程设计目的及要求 1.1设计目的及问题描述 1.2设计要求 1.3软件、硬件环境 2. 课程设计步骤 3. 课程设计内容 3.1 简要分析 3.1.1 词法分析 3.1.2 语法分析 3.1.3语法分析方法及中间代码形式的描述 ①PL/0语言文法的扩充BNF表示②语法分析的中间代码形式的描述 ③语义分析的中间代码设计 3.1.4算法描述 3.1.4.1重要数据结构的声明 3.1.4.2词法分析 3.1.
LR1.cpp
- 编译原理LR1语法分析程序,通过输入文件名,进行语法分析-Compilation Principle LR1 parser, by entering the file name, the syntax analysis
libolanshi
- 赋值语句的翻译 通过设计、编制、调试一个典型的语法成分的语法分析和语义分析程序,实现对词法分析程序所提供的单词序列进行语法检查和结构分析以及语义翻译工作,进一步掌握常用的语法分析方法和语义分析方法。 要求: 选择最有代表性的语法分析方法,如算符优先法(或简单优先法)、递归下降分析法、LL分析法和LR分析法之一进行语法分析。 选择对各种常见程序语言都通用的语法结构,如赋值语句(尤指表达式)作为分析对象,并且与所选语法分析方法要比较贴切。 选择最有代表性的语义分析方法,如语法制
LRParser
- LRParser.exe 是语法分析器,运行时必须传入syntax文件和对应的action文件,这两个文件必须是对应的,否则运行结果不可预料。运行停止后可以使用 “?” 命令来查询支持哪些 Command。例如用 result 命令来打印分析后的语法树。-LRParser.exe is the parser, run-time files and syntax must be introduced into the corresponding action document, which cor
15883
- (1)、本代码实现语法分析的LL(1)分析法。 (2)、输入一个文法的所有产生式,由程序自动生成它的LL(1)预测分析表。 (3)、对于给定的输入串,能正确识别该串是否为给定文法的句型。 -(1), the parsing code of LL (1) analysis. (2), all of grammar enter a production, it is automatically generated by the procedures of the LL (1) Forec
bianyi
- 编译原理课程设计 实现对赋值语句的词法和语法分析 输出三元式-Principles of curriculum design compiler assignment to achieve the morphology and syntax analysis of the output-type ternary
yufafenxi
- 语法分析程序,输入方法,可以输出分析过程和结果.-Parser, input method, you can output analysis and results.