搜索资源列表
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
LL1fx
- 编译原理中的LL(1)语法分析程序,帮助学生了解编译器的工作过程-Compilation principle of LL (1) grammar analysis program and help students to understand the working process of the compiler
101306118
- 实验三 LR分析法的实现 一、实验目的 实现一个关于表达式的LR语法分析程序,识别用户输入的包含变量与整数的混合算术表达式(不包含减法与除法运算)。 -二、实验主要内容 1、文法如下: 0) S E 1) E E+E 2) E E*E 3) E (E) 4) E i 2、对应的LR分析表如下: 状态 ACTION GOTO + * ( ) i # E 0
Test
- 有关赋值语句的语法分析程序设计,其中包含词法分析以及文件的读写操作,使用四元式写入到磁盘文件。-Parser design of the assignment statement, which contains lexical analysis, and file read and write operations, the use of quaternion type is written to the disk file.
vc_SLRStar
- 一个vc++编写的词法语法分析程序,可以直接编译运行.-A lexical and syntactical analysis program written in Visual C++, can be compiled directly and run.
yufafenxichengxu
- 这是一个简单的算符优先的语法分析程序。从文件输入文法规则以后,能够判断文法规则是否为算符优先的,并构造算符优先关系表,然后由用户输入一段合法的句子,然后对这个句子进行规约。-This is a simple operator precedence parser. From file input grammar rules, grammar rules can determine whether the operator precedence, and construct the operator
Test
- 编写语法分析程序,实现对算术表达式的语法分析.要求所分析算数表达式由如-Write a parser parsing arithmetic expressions. Requirements for the analysis of arithmetic expressions such as
StringRecognition
- 用java语言编写的语法分析程序,编译原理作业。个人编写,多多指教。-Java language parser, compiler theory job. Personal written exhibitions.
LL1语法分析
- (1)对输入文法,它能判断是否为LL(1)文法,若是,则转(2);否则报错并终止; (2)输入已知文法,由程序自动生成它的LL(1)分析表; (3)对于给定的输入串,应能判断识别该串是否为给定文法的句型。
WindowsFormsApplication1
- C#实现的词法分析器 TINY计算机语言的编译程序的词法分析部分实现。 从左到右扫描每行该语言源程序的符号,拼成单词,换成统一的内部表示(token)送给语法分析程序。 -C# implementation of lexical analyzer
suanfuwenfa
- 实验要求 要求实现语法分析程序的以下功能: 把表达式首先经过词法分析形成二元式记号提供给语法分析程序 如果符合语法要求,形成一个语法树 实验三 算符优先分析 如果出现错误,指出错误的位置和类型 把语法树按照树的前序遍历的形式把所有的结点打印输出 按照某种规则计算出表达式的值-Experimental requirements requirements the parser following features: the expression first formed
diguixiajiangwenfa
- 一、实验目的 实现一个递归下降语法分析程序,识别用户输入的算术表达式。 二、实验主要内容 1、文法如下: E® TE` E’® +TE’|-TE’|e T® FT` T’® *FT’|/FT’|e F® (E)|i 2、求取各非终结符的First及Follow集合 3、编程实现下降递归分析法,识别从键盘输入的关于整数或浮点数的算术表达式(在此,上述文法中的i代表整数或浮点数) 4、对于语法错误,要指出错误具体信息。
CMMGrammarAnalyze
- 使用eclipse,java语言,完全自己编写的一个小型的语法分析程序。桂浩老师的实验三作业。-Use Eclipse java language entirely their own writing a small syntax analysis program. Gui Hao teacher experiment three operations.
Compile
- LL1语法分析程序,输入文法表达式能够自动输出预测分析表,词法分析器-LL1 parser input grammar expression can automatically output the prediction analysis table to determine whether the LL1 grammar, you can then enter any of a sentence, and then analyze them gives a detailed analysis
yufa
- 语法分析程序的输入文件为语法分析产生的token串,并在文件最后一列加上了一个#号,代表语法归约结束,程序采用的是递归子程序的方法,如果归约成功会输出Success,如果归约失败,会返回归约到token串的哪个元素出现错误,已经相应的未归约成功的文法产生式是哪条-Parser to parse the input file generated token string, and the last one in the file plus a# sign, on behalf of the end
code
- 北邮大三上编译原理,语法分析程序源代码,有:LL(1)语法分析算法,LR(1)语法分析算法。-BUPT junior on compiler theory, syntax analysis program source code, there are: LL (1) parsing algorithm, LR (1) parsing algorithms.
yard-1.5
- 语法分析程序, 包括对XML语法C语言的语法分析。-Syntax analysis procedures, including the C language syntax for XML parsing.
LL1
- 编译原理中的LL1语法分析程序 包括消除左递归, First集和Follow集自动生成, 预测表自动生成, 对输入的句型进行分析。-Compiler theory LL1 syntax analysis procedures, including the elimination of left recursion, First Set and Follow automatically generated prediction table is generated automatically an
SNL_Example
- 递归下降的SNL词法分析和语法分析程序,此法结果单独输出到一个文本中-The SNL recursive descent parser and lexical analysis, this method results in a single output to a text
LR(0)
- 简单LR语法分析程序自动生成器的实现,可用作数据结构课程设计-Simple LR parser automatically generates the realization,Used as a data structure course design