搜索资源列表
C-compiler
- 编译原理中的语法分析器,基于LL1文法,好东西啊好东西。-Compilation Principle in parser, based on the LL1 grammar, good things good things ah.
slr1
- 本软件采用的是可视化集成环境,利用简单易学的VC++语言作为开发工具,使得软件不仅开发难度降低,而且较易操作实施。在运行阶段对编译的总体过程做了较为详细的说明,包括SLR(1)文法的判定,分析器的构造和一些具体的实现过程。在软件的制作过程中考虑到了界面友好,方便快捷等特点,使得本软件有很强的使用价值。-This software is based on integrated visualization environment, using simple easy to learn VC++ L
SLR(1)Analyzer
- 计算机编译原理相关实验3:一个用SLR(1)文法自底向上的语义分析器-Compilation Principle of computer-related experiment 3: a used SLR (1) Bottom-up grammar semantic analyzer
JavaLex_Java2Asm
- 用C++作为宿主语言完成Java 语言子集语法、语义分析器。完成文法描述的Java 源代码的语法分析、语义分析及代码生成。代 码生成的目标代码为MASM 汇编代码-Using C++ as the host language to complete a subset of Java language syntax, semantic analyzer. Complete grammar of the Java source code to describe the syntax analys
LR(1)
- 一个很好的用java编写的用来判断一个文法是否是LR(1)文法及其分析器的构造-yes
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
LL1
- 一个用LL(1)文法的词法和语法分析器,-One with LL (1) grammar and syntax of the lexical analyzer,
cifafenxi
- 词法分析器,输入所给文法的源程序,给出二元组构成的序列-Lexical analyzer, enter the source code to the grammar, given the sequence of binary units
LR
- 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to de
Lex
- 通过设计、调试词法分析程序,实现从源程序中分出各种单词的方法;熟悉词法分析程序所用的工具自动机,进一步理解自动机理论。掌握文法转换成自动机的技术及有穷自动机实现的方法。确定词法分析器的输出形式及标识符与关键字的区分方法。加深对课堂教学的理解;提高词法分析方法的实践能力。通过本实验,应达到以下目标: -Through the design, debug lexical analysis procedures, to achieve separation from the source in a
asdas
- 算术表达式递归下降分析程序设计 编程实现给定算术表达式的递归下降分析器。 算术表达式文法如下: E E+T | T T T*F | F F (E) | i -Arithmetic expressions recursive descent analysis program design programming for a given arithmetic expression recursive descent pars
yufa
- 语法分析器,对已给pascal语言文法,构造LL(1)分析表,编制语法分析程序,要求将错误信息输出到语法错误文件中,并输出分析句子的过程-Parser that have been to the pascal language grammar, structure LL (1) analysis table, the preparation of parsing procedure that requires the output to the error message syntax erro
ll(1)
- 语法分析器LL(1)文法(C语言版) 语法分析器LL(1)文法(C语言版)(-Parser LL (1) grammar (C language version) parser LL (1) grammar (C language version) (
RecursiveDescentParser
- 一种自顶向下的语法分析方法的思想,根据文法的产生式规则绘制相应的转换图,并能对之进行简化,继而构造出相应的递归下降分析器。-A kind of top-down method of syntax analysis of the idea, according to the grammar production rules mapping the corresponding conversion map and the simplification can then construct the
LRAnalysis
- (1)E -> E+T (2)E -> T (3)T -> T*E (4)T -> F (5)F -> (E) (6)F -> i 模拟以上文法的LR分析过程。对用户任意输入的字符串,能够输出LR分析器的工作过程。 根据以上文法,生成LR分析表,使用VC语言实现LR分析器。Main函数接受用户键盘输入的字符串,通过调用LR函数输出LR分析的过程。-(1) E-> E+ T (2) E-> T (3) T-> T* E (4)
Parsing
- 基于概率的上下文无关文法的句法分析器,在词法分析的基础上,分析一些简单语句。-Probability-based context-free grammar parser, the lexical analysis, based on analysis of some simple statements.
2
- 编译原理实现:实现基本的递归下降分析器,能够分析任给的符号串是否为该文法所定义的合法算术表达式。实验报告中要说明分析使用的方法。-Compiler theory to achieve: to achieve the basic recursive descent parser, to analyze whether any given string of symbols for the grammar defined by legal arithmetic expressions. Experi
YFFXQ
- 使用递归子程序法设计一个语法分析程序,自顶向下分析方法. 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。 2、该
4
- 目的:熟练掌握自下而上的语法分析方法,并能用程序实现。 要求: 1. 使用如下文法: E E+T | T T T*F | F F (E) | id 2. 对于任意给定的输入串(词法记号流)进行语法分析,要求采用LR分析器来完成。手工构造LR分析表,利用移进-归约分析算法(P69 图3.12)输出(P70 表3.8)对应的动作部分。如: 输入:id*+id+(id+id)# 输出:移进 按 F->id归约 移进 error
BIANYIYUA
- LALR(1)类文法判定及其分析器构造进行LALR(1)类文法判定-LALR (1) determine the class of grammar and parser constructed for LALR (1) determine the class of grammar