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
[
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-12-27
Size
: 235kb
User
:
王喜春
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.