搜索资源列表
LL1
- 语法分析是编译过程的核心部分。他的任务是在词法分析识别单词符号串的基础上,分析并判断程序的的语法结构是否符合语法规则。语言的语法结构是用上下文无关文法描述的。因此语法分析器的工作的本质上就是按文法的产生式,识别输入符号串是否为一个句子。对于一个文法,当给你一串符号是,如何知道它是不是该文法的一个句子,这是这个课程设计所要解决的一个问题。-Syntax analysis is the core of the compiler process. His task is to identify the
ParsingAnalyzer
- 通过设计、编制、调试一个典型的语法分析程序,实现对词法分析程序所提供的单词序 列进行语法检查和结构分析,进一步掌握常用的语法分析方法。 -By designing, developing, debugging parsing a typical procedure, the realization of the lexical analysis program provided by the word sequence and structure analysis of the synt
1.Rar
- 学习编译原理时做的词法和语法分析程序.词法和语法分析封装在一个类CFenXi中, 程序在Visual C++6.0下调试通过. 程序采用单文档设计,利用了分割窗体技术. -When learning compiling principle of lexical and grammatical analysis program. Morphology and syntax analysis in a class of packaging CFenXi in Visual c++ 6.0,
syntaxanalysis
- 运用递归下降子程序法,实现整数四则运算表达式的语法分析程序。-Decline in the use of recursive subroutine method, to achieve an integer 4 expression is the syntax analysis program.
PL0
- VC PL0编译器PL/0编译器是个一遍的编译程序,词法分析程序作为子程序,需要的时候被语法分析程序调用,使用语法制导的翻译技术,在语法分析的同时生成中间代码,并保存到文件中。-VC PL0 compiler PL/0 compiler is again compiled program, lexical analysis program as a subroutine, and when required by the syntax analysis program call, use the
diguixiajiang
- 递归下降的基本思想: 为每一个非终结符构造一个子程序,每一个子程序的过程体中按该产生式的候选项分情况展开,遇到终结符直接匹配,而遇到非终结符就调用相应非终结符的子程序。该分析从调用文法开始符号的子程序开始,直到所有非终结符都展开为终结符并得到匹配为止。若分析过程中达到这一步则表明分析成功,否则表明输入中有语法错误。递归下降分析对文法的限制是不能有公共左因子和左递归。由于文法是递归定义的,因此子程序也是递归的,被称为递归下降子程序。 -The basic idea of recursiv
RecursiveSubroutine
- 程序功能:PL/0语言语法分析程序,检测pl/0源程序的语法是否正确-A subroutine that calls itself. Such a self-referential call must occur as one branch of a conditional statement, otherwise there would be an infinite series of calls. As an example, a recursive subroutine to calcul
NUM
- 语法分析程序,正确返回SUCCESS,错误返回error-Parser correctly returns SUCCESS, the error return error
cifafenxiqi
- 实现一个词法分析器,词法分析程序的主要任务是从左到右扫描每行源程序,拼成单词,换成统一的内部表示 (token)输出,送给语法分析器。具体包括: –组织源程序的输入; –按规则拼单词,并转换成二元形式; –滤掉空白符,跳过注释、换行符及一些无用的符号(如字符常数的引号) (实验一已完成); –进行行列计数,用于指出出错的行列号,并复制出错部分; –列表打印源程序; –发现并定位词法错误; –生成符号表。token 文件和符号表用作语法分析的输入部分。
cifa
- 包括一个LR(1)的语法分析程序和一个LL(1)的语法分析程序的例子-Includes a LR (1) syntax analysis procedure and an LL (1) Examples of the syntax analysis program
yufafenxi
- 编译器语法分析程序,输入一个表达式,进行语法分析-Compiler, parser, enter an expression for parsing
diguizichengxu
- 设计、编制、调试一个典型的语法分析程序,实现对如下文法的递归子程序法分析,进一 步掌握常用的语法分析方法。-Design, preparation, testing a typical parser to realize the following grammar for a recursive subroutine Analysis, to further understand the syntax of commonly used analytical methods.
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
bianyi
- 对PL/o对其词法分析程序、语法分析程序和语义处理程序进行部分修改扩充 扩充赋值运算:+= 和 -= 扩充语句 REPEAT <语句序列> DOWHILE <条件> 其中,<条件>是循环条件,即条件成立时,重复执行循环体的< 语句序列> (3)增加运算:++ 和 --。 (4)增加类型: 实数类型。 (5)扩充函数: 有返回值和返回语句。 -On the PL/o of its lexical anal
Parse2
- 设计、编制、调试一个典型的语法分析程序,实现对词法分析程序所提供的单词序列进行语法检查和结构分析,进一步掌握常用的语法分析中预测分析方法。-Design, preparation, debugging a typical parser, lexical analysis program to realize the word sequence provided by the grammar checking and structural analysis, to further understa
yufafenxi
- 采用LL(1)方法,用C语言在C++开发环境下编写的语法分析程序,简单易懂,已经过调试-Using LL (1) method, using C language development environment C++ parser written in a simple easy to understand, has been commissioning
LexicalAnalysis
- 词法分析源码:从左到右扫描每行该语言源程序的符号,拼成单词,换成统一的内部表示(token),送给语法分析程序。-Lexical analysis Source: from left to right scan every line in the source language of symbols, spell the word, and replaced with a unified internal representation (token), sent to the parser.
YFFXQ
- 使用递归子程序法设计一个语法分析程序,自顶向下分析方法. 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。 2、该
YaFaFenXi
- 这是一个有关编译原理的语法分析程序,欢迎大家下载!-This is a small program.Welcome to download!
123
- 编绎原理实用教程实验 词法分析程序 语法分析程序 可以运行的词法分析程序 语法分析程序 -Interpretation of principle experiment series of practical tutorials parser lexical analysis program that can run the parser lexical analysis program