Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - operator priority grammar
Search - operator priority grammar - List
一个程序,用于判定给定的文法是否为算符优先文法。 实现了:1.文法的机内表示;2. FIRSTVT集和LASTVT集的计算; 3. 算符优先关系矩阵的构造。-a procedure for the determination of grammar to whether the operator priority to grammar. Realized : 1. Grammar said the machines; 2. LASTVT FIRSTVT sets and set computing; 3. Operator precedence relations of the matrix structure.
Date : 2008-10-13 Size : 16.61kb User : luo

算符优先实验,可以输入文法,生成算符优先表,输入句子,生成移近-规约过程。并且还有实验报告。-operator priority experiments can be imported grammar, production operator priority list, input sentence, approached generation-the Statute of the process. And there are experimental report.
Date : 2008-10-13 Size : 348.81kb User : dyz

算符优先文法分析器的例子,vc++6.0制作-operator priority grammar analyzer example, produced 6.0 vc
Date : 2008-10-13 Size : 35.01kb User : mark

非常不错的算符优先文法..课程设计时做的,界面不错,输出了FirstVt,LastVt,算符优先表,输出结果比较详细-very good operator priority .. grammar courses designed to do, good interface, the output of FirstVt, LastVt, operator priority list, a more detailed output
Date : 2008-10-13 Size : 41.31kb User : swb

表达式分析, 支持算术运算,括号,关系运算,逻辑运算,字符串的like运算等。采用了有限自动机做词法分析, 语法分析用算符优先分析方法,正负号算符使文法不是OPG,因此这里作了特殊处理。分析的结果是逆波兰式, 存在一个链表中。在逆波兰式的基础上,用一个栈来进行求值。在vc++6.0下试验通过。 如有问题,可以mail: zch888email@163.com 我将尽快回复你。-expression analysis, supports arithmetic operations, brackets, relations operation, logic operation, like the string of such operations. Using a limited automatic machine lexical analysis, grammar analysis Operator priority analysis method, Operators of plus or minus grammar is not so OPG, it gave special treatment here. The results of the analysis of reverse Polish existence of a linked-list. The inverse Polish, on the basis of a stack used to evaluated. Under the pilot vc 6.0 through. If problems can mail : zch888email@163.com I will reply to you as soon as possible.
Date : 2008-10-13 Size : 22.27kb User : 大山

DL : 0
这是一个大学教学用的编绎程序,集语法分析和语法制导翻绎为一体,其中语法分析采用算符优先分析算法.-This is a university teaching series unravel the procedures set grammar and syntax analysis Multilingual guidance for the integration, analysis and syntax analysis algorithm operator priority.
Date : 2008-10-13 Size : 15.97kb User : 呀呀

该文描述了C语言表达式的文法,并由该文法生成算符优先矩阵和算符优先函数,讨论了C语言表达式的特点和文法分析过程。-The paper describes the expression of the C language grammar, grammar generated by the operator priority matrix and operator priority function to discuss the C language features of the expression and grammar analysis.
Date : 2008-10-13 Size : 158.83kb User : 褚亚飞

算符优先文法分析器的例子,vc++6.0制作-operator priority grammar analyzer example, produced 6.0 vc
Date : 2025-12-22 Size : 35kb User : mark

非常不错的算符优先文法..课程设计时做的,界面不错,输出了FirstVt,LastVt,算符优先表,输出结果比较详细-very good operator priority .. grammar courses designed to do, good interface, the output of FirstVt, LastVt, operator priority list, a more detailed output
Date : 2025-12-22 Size : 41kb User : swb

DL : 0
编译原理课程设计,采用算符优先分析算法,对G[S]所定义的赋值语句进行语法分析,并在语法分析过程中将所输入的扶植语句翻译为四元式。-Compilation Principle curriculum design, the use of operator priority analysis algorithms, the G [S] defined by assignment statements for grammar analysis and parsing process entered foster statements translated into quaternion type.
Date : 2025-12-22 Size : 2kb User : 寿帆

算符优先文法 1. 可以使用任何语言来完成,例如:Java、C、C++。 2. 文法采用常用的方式进行描述,例如:S→aA。 3. 以文件方式读取文法。 4. 分别求出每一个非终结符的FIRSTVT和LASTVT集。 5. 画出算符优先关系表。 6. 判定读入的文法是否是算符优先文法。 7.给定的任意符号串判定是否是文法中的句子,将分析过程用计算机打印出来。 -Operator priority Grammar 1. You can use any language to accomplish, such as: Java, C, C++. 2. Grammar used to describe commonly used methods, such as: S → aA. 3. To read the grammar of papers. 4. Were obtained at each end of a non-FIRSTVT and LASTVT set. 5. Draw operator precedence relations table. 6. To determine whether or not read the grammar is the grammar operator priority. 7. The given string to determine whether any symbol is the grammar of the sentence, will analyze the process of using the computer print out.
Date : 2025-12-22 Size : 89kb User : 狐狸

DL : 0
编译器的词法分析函数,包含算符优先文法,过程有关结构等部分,具体执行词法分析-Compiler lexical analysis function, including the operator priority grammar, structure and some other process, the specific implementation of lexical analysis
Date : 2025-12-22 Size : 3kb User : 陈鑫军

DL : 0
算符优先语法编译器,VC6.0下运行.希望对大家有用.-Operator priority grammar compiler, VC6.0 run. Hope useful for everyone.
Date : 2025-12-22 Size : 291kb User : pengchuang

算符优先,先输入语法规则,就可求出FIRSTVT及LASTVT,然后给出算符优先关系表-Operator priority, first enter the grammar rules can be obtained FIRSTVT and LASTVT, and then give priority to the relationship between operator table
Date : 2025-12-22 Size : 2kb User : 刘强国

语法分析器(C++)源代码+其详细的课程设计报告 输入的文法可以消除左递归并提取公共左因子求出文法的非终结集合——FIRST和FOLLOW集并对输入的算符优先文法,构造算符优先关系表 -Parser (C++) Source code its detailed report on curriculum design input left recursive grammar can be eliminated and the public left factor extract derived grammar of non-end collection- FIRST and FOLLOW set of the input operator priority grammar, operator precedence relations structure table
Date : 2025-12-22 Size : 102kb User : michelle

【目的】 设计一个算符优先分析器,理解优先分析方法的原理。 【要求】 使用算符优先分析算法分析下面的文法: E’ → #E# E → E+T | T T → T*F | F F → P^F | P P → (E) | i 其中i可以看作是一个终结符,无需作词法分析。具体要求如下: 1. 如果输入符号串为正确句子,显示分析步骤,包括分析栈中的内容、优先关系、输入符号串的变化情况; 2. 如果输入符号串不是正确句子,则指示出错位置。 -[Objective] To design a priority analyzer operator, understanding the principle of priority analysis. ] [Requirements analysis algorithm using the operator priority grammar analysis of the following: E →# E# E → E+ T | TT → T* F | FF → P ^ F | PP → (E) | i which i can be seen as is a terminator, no analysis of Authors. Specific requirements are as follows: 1. If you enter the correct sentence for the string of symbols, showing analysis steps, including analysis of the contents of the stack to give priority to the relationship between input symbols string changes 2. If the input string is not correct sentence symbols are also given the wrong location .
Date : 2025-12-22 Size : 3kb User : 王东旭

编译原理课程设计--算符优先文法(已知算符优先矩阵,输入句子,可以判断是否合法),程序保证可以运行,自己写的-Compiler theory curriculum design- operator precedence grammar (known operator priority matrix, the input sentence, can determine whether legal) procedures to ensure that you can run, write your own
Date : 2025-12-22 Size : 5.1mb User : ruirui

算符优先文法实现词法分析和语法分析,算符优先关系表-Operator precedence grammar, lexical analysis and parsing, operator precedence table
Date : 2025-12-22 Size : 262kb User : adcc

算符优先分析是基于文法满足算符优先文法的基础上施加的一种自底向上的一种语法分析方法。通过对给定的文法构造算符优先分析表和实现某个符号串的分析,掌握算符优先分析法的基本思想和实现过程。-Operator priority analysis is based on operator precedence grammar grammar satisfy imposed on the basis of a bottom-up approach a grammatical analysis. Through a given operator precedence grammar structure analysis and implementation of a symbol string table analysis, analysis of operator precedence grasp the basic ideas and implementation process.
Date : 2025-12-22 Size : 2.5mb User : 葛骁倩

1、给出文法如下: G[E] E->T|E+T T->F|T*F F->i(E) 可以构造算符优先表如下: + * ( ) i + * ( ) i 2、计算机中表示上述优先关系,优先关系的机内存放方式有两种1)直接存放,2)为优先关系建立优先函数,这里由学生自己选择一种方式; 3、给出算符优先分析算法如下: k:=1 S[k]:=‘#’ REPEAT 把下一个输入符号读进a中; IF S[k]∈VT THEN j:=k ELSE j:=k-1 WHILE S[j] a DO BEGIN REPEAT Q:=S[j] IF S[j-1]∈VT THEN j:=j-1 ELSE j:=j-2 UNTIL S[j] Q 把S[j+1]…S[k]归约为某个N; k:=j+1 S[k]:=N END OF WHILE IF S[j] a OR S[j] a THEN BEGIN k:=k+1 S[k]:=a END ELSE ERROR UNTIL a=‘#’ 4、根据给出算法,利用适当的数据结构实现算符优先分析程序;-1 gives grammar as follows: E [E] E-> T | E+ T T-> F | T* F F-> i (E) Operator priority table can be constructed as follows:+* () i + * ( ) i 2, the computer indicated above priority, preferential relations machine memory put in two ways 1) Direct storage, 2) as a priority relationship building priority function, here by the students themselves choose a way 3, gives the operator precedence analysis algorithm is as follows: k: = 1 S [k]: = # REPEAT read the next input symbol into a medium IF S [k] ∈VT THEN j: = k ELSE j: = k-1 WHILE S [j] a DO BEGIN REPEAT Q: = S [j] IF S [j-1] ∈VT THEN j: = j-1 ELSE j: = j-2 UNTIL S [j] Q to S [j+ 1] ... S [k] is about a normalization N k: = j+1 S [k]: = N END OF WHILE IF S [j] a OR S [j] a THEN BEGIN k: = k+ 1 S [k]: = a END ELSE ERROR UNTIL a = # 4, according to the given algorithm, using the appropriate data structure to achieve operator priority analysis program
Date : 2025-12-22 Size : 2kb User : 忆昔
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.