文件名称:suanfuyiuxian
介绍说明--下载内容来自于网络,使用问题请自行百度
算符优先 根据形式化算法,编制程序实现一个算符优先分析器,能对常见的算术表达式语句进行分析。
要求实现以下功能:
1) 组织算术表达式的输入;
2) 组织算符优先关系表或者优先函数的输入;
3) 若输入的符号串是一个算术表达式语句,则输出一个分析树骨架(既每一步规约用到的最左素短语),否则输出一个错误信息。
-operator priorities under formal algorithm, the development process of achieving a priority analyzer operator, to the right common arithmetic expressions statement for analysis. Call for the following functions : a) Organization arithmetic expression input; 2) Organizational operator precedence relations priority table or function input; 3) if the input string is a symbol arithmetic expression statement, Output is a skeleton tree analysis (both used in every step of the Statute of the most left-phrase), or output an error message.
要求实现以下功能:
1) 组织算术表达式的输入;
2) 组织算符优先关系表或者优先函数的输入;
3) 若输入的符号串是一个算术表达式语句,则输出一个分析树骨架(既每一步规约用到的最左素短语),否则输出一个错误信息。
-operator priorities under formal algorithm, the development process of achieving a priority analyzer operator, to the right common arithmetic expressions statement for analysis. Call for the following functions : a) Organization arithmetic expression input; 2) Organizational operator precedence relations priority table or function input; 3) if the input string is a symbol arithmetic expression statement, Output is a skeleton tree analysis (both used in every step of the Statute of the most left-phrase), or output an error message.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验3:算符优先分析器设计.doc
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.