CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - generate first and follow grammar
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - generate first and follow grammar - List
[
ELanguage
]
first_and_follow_SLR
DL : 0
实现编译原理中 通过已知的文法来产生First集和FOLLOW集 以及SLR分析表-Compilation Principle realize through grammar known to generate First Set and FOLLOW sets, as well as SLR analysis table
Date
: 2025-07-08
Size
: 11kb
User
:
陈波
[
ELanguage
]
LL1.tar
DL : 0
LL1通用语法分析器,有消除左递归,FIRST集合、FOLLOW集合、分析表生成等功能-Universal grammar LL1 parser, has the elimination of left recursion, FIRST collection, FOLLOW collection, analysis and other functions to generate Table
Date
: 2025-07-08
Size
: 632kb
User
:
Wang Xinxi
[
VC/MFC
]
grammer
DL : 0
预测分析法基本要求:1) 任意输入一个文法G; 2) 处理文法中可能存在的左递归和公共左因子问题;3) 对文法中的每个非终结符自动生成并打印输出:① FIRST集;② FOLLOW集;4)判断处理后的文法是否为LL(1)文法,如果是,自动生成并打印输出其预测分析表;5) 模拟分析过程。如输入一个句子,如果该句子合法则输出与句子对应的语法树;能够输出分析过程中每一步符号栈的变化情况。如果该句子非法则进行相应的报错处理。 -Prediction analysis of basic requirements: 1) any input a grammar G 2) dealing with the grammar that may exist in the left factor of left recursion and public issues 3) grammar, each nonterminal in the automatically generated and printed out: ① FIRST sets ② FOLLOW set 4) to determine whether treatment of the grammar LL (1) grammar, if it is to automatically generate and print out their predictive analysis table 5) simulation analysis. As input a sentence, if the sentence is lawful sentence corresponding output syntax tree to the output of the process every step of the sign changes in the stack. If the sentence is illegal corresponding error processing.
Date
: 2025-07-08
Size
: 235kb
User
:
王喜春
[
ELanguage
]
grammar-analyser
DL : 0
1、任意输入一个文法G; 2、处理文法中可能存在的左递归和公共左因子问题; 3、对文法中的每个非终结符自动生成并打印输出: ① FIRST集; ② FOLLOW集; 4、判断处理后的文法是否为LL(1)文法,如果是,自动生成并打印输出其预测分析表; 5、模拟分析过程。 如输入一个句子,如果该句子合法则输出与句子对应的语法树;能够输出分析过程中每一步符号栈的变化情况。如果该句子非法则进行相应的报错处理。 -An arbitrary input to a grammar G 2, handle left recursive grammar and public left factor 3, for each nonterminal in the grammar automatically generate and print the output: ① the FIRST set ② FOLLOW sets 4, the judge after the grammar is LL (1) grammar, if yes, to automatically generate and print the output of the prediction table 5, the simulation analysis. Enter a sentence if the sentence is legitimate output corresponding with the sentence syntax tree able to output analysis process every step of the symbols in the stack changes. If the sentence is illegal is the appropriate error handling.
Date
: 2025-07-08
Size
: 1.42mb
User
:
chenlu
[
Other
]
实验2
DL : 0
LL1文法分析器,可以识别LL1文法,求出first集与follow集,生成分析表。(LL1 grammar analyzer, you can identify the LL1 grammar, find the first set and follow set, generate an analysis table.)
Date
: 2025-07-08
Size
: 406kb
User
:
UUUsb
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.