cifafenxi
代码说明:
通过设计、编制、调试一个具体的词法分析程序,加深对词法分析原理的理解,并掌握在对程序设计语言源程序进行扫描过程中将其分解为各类单词的词法分析方法。 实验内容及基本要求: 设计一个简单的程序设计语言(语言中有+、-运算,语句有赋值语句、输入语句、输出语句、复合语句) 要求: 1.输入源程序,最后以“#”作结束标志; 2.处理各单词,计算各个单词的值和类型; 3.输出各个单词名、单词的值和类型。 (By design, develop and debug a specific lexical analysis procedures, to deepen understanding of the principles of lexical analysis, and mastery of the programming language source code will be scanned in the decomposition process of lexical analysis of various types of words. Experimental content and basic requirements: the design of a simple programming language (language has+,- arithmetic, assignment statement has input statements, output statements, compound statements) requirements: 1 input source, and finally to " #" as. end marker 2 each word processing, calculating the value and type of each word 3 outputs each word name, value and type of the word.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!