CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - first and follow program in c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
assembly language
SCSI-ASPI
ELanguage
Disk Tools
Speech/Voice recognition/combine
Editor
Anti-virus
MultiLanguage
MPI
source in ebook
Delphi VCL
OS Develop
MiddleWare
MacOS develop
LabView
e-language
python
Search - first and follow program in c - List
[
ELanguage
]
LL1gongnengquan
DL : 0
功能较全的LL1文法分析,自定义输入文法,生成first集follow集,再输入句子,判断是否是该文法,并显示栈的状态-function over the entire LL1 grammar analysis, since the definition of input grammar, Generating Sets follow first set, then input sentence, the judge is whether grammar, and that the state Stack
Date
: 2025-12-20
Size
: 198kb
User
:
chengning
[
ELanguage
]
first+and+follow
DL : 0
first集 与 follow集 编译原理-first set and follow the principle set compiler
Date
: 2025-12-20
Size
: 2kb
User
:
yiminhui
[
ELanguage
]
20029440913
DL : 0
(1) 根据LL(1)分析法编写一个语法分析程序,可根据自己实际情况,选择以下一项作为分析算法的输入: a. 直接输入根据已知文法构造的分析表M b.输入文法的FIRST(α)和FOLLOW(U)集合,由程序自动生成文法的分析表M; c.输入已知文法,由程序自动构造文法的分析表M。 (2) 程序具有通用性 所开发的程序可适用于不同的文法和任意输入串,且能判断该文法是否为LL(1)文法。 (3) 有运行实例 对于输入的文法和符号串,所编制的语法分析程序应能正确判断此串是否为文法的句子,并要求输出分析过程。 -(1) According to the LL (1) method to write a parser, according to their own situation, choose one of the following analysis of the algorithm as input: a. directly into the basis of known structures of grammar table M b. enter the grammar of FIRST (α) and FOLLOW (U) set automatically by the program analysis table statute of Health M c. Enter known grammar, the program can automatically construct grammatical analysis table M. (2) program has universal The developed program used in various types of grammar and an arbitrary input string, and can determine whether the grammar LL (1) grammar. (3) the running instance Grammar and symbols for the input string, the parser should be compiled correctly determine whether this string of sentence grammar, and asked the output of the process.
Date
: 2025-12-20
Size
: 283kb
User
:
zmf
[
ELanguage
]
LL1_display5.11
DL : 0
本文描述了针对编译原理课程中LL(1)文法分析过程的演示系统的设计与实现过程。本系统在Visual C++环境中使用MFC类库开发实现。针对高效率和美观实用两个目标,分别设计了前台和后台。前台负责界面显示和用户交互,后台透明地执行LL(1)分析过程的相关操作,为前台提供数据。通过MFC的消息响应机制,将后台功能模块加入到前台相应功能菜单的消息函数中。前台界面提供了和用户交互的菜单,根据演示系统的需求以及LL(1)文法分析过程中的各个步骤,将前台分为七个模块,其中每个菜单项分别对应各自的功能模块。它们分别是理论学习、输入产生式、转换产生式、生成FIRST\FOLLOW集合、构造预测分析表、输入句子、预测分析步骤;为实现前台中设计的功能,将后台分成五个模块,分别是产生式的预处理、构造非终结符的FIRST集合、构造FOLLOW集合、构造预测分析表、预测分析。- I described how to design and accomplish a Demo program for the process of LL(1) grammar analysis in Compiler theory. This system is developed by MFC Class Library in Visual C++.
Date
: 2025-12-20
Size
: 13.45mb
User
:
洁
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.