所属分类:
编译器/解释器
开发工具:Visual C++
文件大小:15KB
下载次数:5
上传日期:2006-04-10 09:14:53
说明: 输入:一段任意的程序(字符串)。
输出:相应的属性字序列。
要求:⒈不处理说明部分,但属性字的符号类除了编码外,应包含更多的信息(如运算符的优先级等);
⒉小子集中包含的符号类应有典型性,且尽可能丰富;
⒊为了使用方便和便于阅读,应有帮助信息,说明可以有哪些符号,属性字的结构如何等;
说明;⒈为了直观起见,属性字中的符号值可以是符号本身,而不是助忆符;
⒉符号的种类以及符号的编码是事先规定的,可考虑扩充的可能性。
(input : a random procedure (string). Output : the attributes of the corresponding word sequence. Requirements : Peak/103 not deal with narrative, but the characters attribute category in addition to coding symbols, should contain more information (such as Operators of priority, etc.); Focus on the local boy category contains the symbols should be typical, and as rich as possible; Prozac is easy to use and easy to read, the information should help that could be what symbols, characters attributes of the structure; ; Peak/103 intuitive sake, the word attribute values can be symbols symbol itself, and not help recalling website; the same year, the type of symbols and symbol coding is the advance may consider the possibility of expansion.)