词法分析编制一个读单词过程

上传者: x1r2p3 | 上传时间: 2021-05-24 20:40:22 | 文件大小: 26KB | 文件类型: RAR
编制一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。(遇到错误时可显“Error”,然后跳过错误部分继续显示) 要求: 识别保留字:if、int、for、while、do、return、break、continue 其他的都识别为标识符; 常数为无符号整形数; 运算符包括:+、-、*、/、=、>、=、<=、!= 分隔符包括:,、;、{、}、(、)

文件下载

资源详情

[{"title":"( 29 个子文件 26KB ) 词法分析编制一个读单词过程","children":[{"title":"Java Accidence Analyser","children":[{"title":"input.aa <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"JAccidenceAnalyse","children":[{"title":"Buffer","children":[{"title":"ConcreteScanBufferFactory.java <span style='color:#111;'> 786B </span>","children":null,"spread":false},{"title":"ScanBuffer.java <span style='color:#111;'> 307B </span>","children":null,"spread":false},{"title":"BufferFactory.java <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":"Buffer.java <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"InputBuffer.java <span style='color:#111;'> 330B </span>","children":null,"spread":false}],"spread":true},{"title":"KeyWordTable.java <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"Scaner.java <span style='color:#111;'> 10.48KB </span>","children":null,"spread":false},{"title":"main.java <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"ClassIdentity.java <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"AccidenceAnalyser.java <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"Pretreatment.java <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"JAccidenceAnalyse","children":[{"title":"Buffer","children":[{"title":"InputBuffer.class <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"BufferFactory.class <span style='color:#111;'> 274B </span>","children":null,"spread":false},{"title":"ConcreteScanBufferFactory.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"Buffer.class <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"ScanBuffer.class <span style='color:#111;'> 417B </span>","children":null,"spread":false}],"spread":true},{"title":"Pretreatment.class <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"KeyWordTable.class <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"main.class <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"AccidenceAnalyser.class <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"ClassIdentity.class <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"Scaner.class <span style='color:#111;'> 7.20KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"output.aa <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"aaCfg.xml <span style='color:#111;'> 274B </span>","children":null,"spread":false},{"title":".project <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"class.table <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"reserve.table <span style='color:#111;'> 339B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明