搜索资源列表
analysis
- 输入一个文法,可得到文法的FIRST集、FOLLOW集、SELECT集,可以判断文法是否为LL(1)文法,并可求出文法的预测分析表,以及串的自顶向下的分析过程。输出很清晰。-Enter a grammar, the grammar of the FIRST sets available, FOLLOW sets, SELECT set, you can determine whether the grammar LL (1) grammar, and can find the grammar o
Parser
- 实现LL(1)文法,能对其实现自顶向下的语法分析并预测分析方法。-Achieve LL (1) grammar, to achieve its top-down method of syntax analysis and predictive analysis.
Parsing
- 语法分析程序的设计与实现 方法2:编写LL(1)语法分析程序,要求如下: (1)编程实现算法4.2,为给定文法自动构造预测分析表; (2)编程实现算法4.1,构造LL(1)预测分析程序。 2. 方法3:编写语法分析程序实现自底向上的分析,要求如下: 构造识别所有活前缀的DFA。 构造LR分析表。 编程实现算法4.3,构造LR分析程序。 -Parser design and implementation of Method 2: preparat
C-compile-system
- 这是编译原理课程的大作业,实现了简单的C语言向x86汇编语言的转换。使用LL(1)文法。-This is a great compiler theory course work to achieve a simple C language to convert x86 assembly language. Using LL (1) grammar.
compile
- 输入文法进行分析,判断文法是否为LL(1)文法,五步判别,构造词法分析表-Lexical analysis, grammar is judged for LL (1) grammar
TLL1h
- 消除左递归的文法来使文法满足进行确定自顶向下分析的条件 一个LL(1)分析法的语法分析器,已通过测试。 -Elimination of left recursive grammar to the grammar to meet the parser to determine the top-down analysis of the conditions of an LL (1) analysis method has been tested.
firstafollow
- 编译原理中,采用LL(1)语法分析法时 1.求每个文法符号的的first集 2.求每个非终结符的follow集-First set of compiler theory, LL (1) syntax analysis. Seeking each grammar symbol. Seeking of each nonterminal follow set
forecast_analysis_chart_construction
- 编译原理中,采用LL(1)语法分析法时 1.求每个文法符号的的first集 2.求每个非终结符的follow集-First set of compiler theory, LL (1) syntax analysis. Seeking each grammar symbol. Seeking of each nonterminal follow set
analysis
- 编写语法分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法产生: E->E+T|E-T|T T->T*F|T/F|F F->id|(E)|num 实验要求:在对输入表达式进行分析的过程中,输出所采用的产生式。 编程实现算法4.2,为给定文法自动构造预测分析表。 编程实现算法4.1,构造LL(1)预测分析程序。-Write a parser, parsing arithmetic expressions. Requirem
compiler
- 本编译器主要有四部分功能: 1、词法分析 编制一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。(遇到错误时可显示“Error”,然后跳过错误部分继续显示)。 2、语法分析之递归下降分析 递归下降分析法的前提是文法必需为LL(1)文法,此功能为验证性功能,已经给出文法,输入一符号串,验证是否属于该文法的句子即可。 3、语法分析之LL(1)预测分析 此
non-recursive
- 建立文法及其LL(1)分析表表示的数据结构,设计并实现相应的预测分析器,对源程序经词法分析后生成的二元式代码流进行预测分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。-提示:" s"以后的内容没有被翻译,单次翻译最多1000字 努力翻译中,请稍后… A grammar and LL (1) of the table that the data structure, design and implement the corresponding prediction
LL1
- LL(1)文法的判定,在first集和follow集不确定的情况下-LL (1) grammar to determine, in the first set and follow set under conditions of uncertainty ......
final
- ll(1)型文法下,写的编译器,并对语法进行识别,然后对具体文法判断是否属于LL(1)型-the program includes the LL(1) and the judgement
PredictionAnalysis
- 编译原理内容。LL(1)文法判断,构造语法分析器。-Compiler theory content. LL (1) grammar judgment, constructed parser.
Parsing
- 对文法E -> E+T | E-T | T T -> T*F | T/F | F F -> id | (E) | num的LL(1) LR语法分析器 -On grammar E-> E+T | ET | TT-> T* F | T/F | FF-> id | (E) | num of LL (1) LR parser
(first-follow-select)
- 构造LL(1)语法分析程序,任意输入一个文法符号串,并判断它是否为文法的一个句子。程序要求为该文法构造预测分析表,并按照预测分析算法对输入串进行语法分析,判别程序是否符合已知的语法规则,如果不符合(编译出错),则输出错误信息-Construct LL (1) parser, enter an arbitrary string of grammar symbols, and determine if it is a sentence grammar. Procedural requirements
analysis100
- 输入一个文法,可得到文法的FIRST集、FOLLOW集、SELECT集,可以判断文法是否为LL(1)文法,并可求出文法的预测分析表,以及串的自顶向下的分析过程。输出很清晰。-Enter a grammar, the grammar of the FIRST sets available, FOLLOW sets, SELECT set, you can determine whether the grammar LL (1) grammar, and can find the grammar o
compile
- 输入文法进行分析,判断文法是否为LL(1)文法,五步判别,构造词法分析表-Lexical analysis, grammar is judged for LL (1) grammar
语法分析器
- 该程序使用的自上而下的LL(1)分析法,,该文法不允许左递归,首先要消除左递归。(The program uses the top-down LL (1) analysis method, which does not allow left recursion, and the left recursion is first eliminated.)
grammar
- 预测分析法(LL(1)方法)的基本思想是:从文法开始符S出发,从左到右扫描源程序,每次通过向前查看 1 个字符,选择合适的产生式,生成中间推导过程以及句子的最左推导。本程序可以输入预测分析表,输出最左推导和中间过程。(The basic idea of prediction analysis method (LL (1)) is to start from the grammar start symbol S, and scan the source program from left to r