【实验名称】递归子程序分析器的设计与实现
【实验目的和要求】
设计、编制,调试一个典型的语法分析程序,实现对如下的递归子程序语法的分析,进一步掌握常用的语法分析方法。
【实验内容】
① 本分析程序所分析的文法如下:
G[E]:
E->eBaA
A->a|bAcB
B->dEd|aC
C->e|dC
② 针对上述文法编写一递归子程序分析程序,该程序的输入是任意符号串,输出是本次输入的符号串是否是该文法的句子的结论。
【环境】
Windows Pc 机,任何版本的c语言
其中还包括java语言实现的程序
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001154s ]
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.080425s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001045s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001595s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001003s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003064s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000884s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003648s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015215s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001236s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 536734 [ RunTime:0.022878s ]