八、实验一:设计SAMPLE语言的词法分析器
检查要求:
a) 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音);
b) 请求输入测试程序名,键入程序名后自动开始词法分析并输出结果;
c) 输出结果为单词的二元式序列(样式见样板输出1 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001520s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.084549s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000874s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001488s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001865s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003568s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000912s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003998s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.023500s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001482s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 279567 [ RunTime:0.014341s ]