首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > /*本程序用于词法分析:从DOS界面输入一行的C语句,并以#号结尾(注意必须以这个为结束标志,否则出错),要求输出对应的单词的种类码和该类中的 内码。其中,关键...

/*本程序用于词法分析:从DOS界面输入一行的C语句,并以#号结尾(注意必须以这个为结束标志,否则出错),要求输出对应的单词的种类码和该类中的 内码。其中,关键...

  • 资源大小:6.15 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Project Manage

资 源 简 介

/*本程序用于词法分析:从DOS界面输入一行的C语句,并以#号结尾(注意必须以这个为结束标志,否则出错),要求输出对应的单词的种类码和该类中的 内码。其中,关键字种类为1,分界符种类为2,算术运算符、关系运算符、常数、标识符分别为3、4、5、6。-/* this procedure uses in the lexical analysis: Inputs a line of C sentence from the DOS contact surface, and take# the number ending (attention must by this as end mark, otherwise makes a mistake), request output correspondence word type code and this kind of center encoding. Among them, the essential character type is 1, the dividing line symbol type is 2, the arithmetic operator, the relational operator, the constant, the identifier respectively are 3, 4, 5, 6.

文 件 列 表

词法分析器(计算机系要的).doc
VIP VIP
0.179925s