实现一个的目标代码生成程序 识别用户输入的关于标识符与整数的含加法 乘法的赋值表达式并输出四元式序列
1 赋值表达式文法如下:
0 S A 1 A i E 2 E E
3 E E E 4 E E+E 5 E E
6 E i
输入关于标识符与整数的含赋值 加法 乘法 括号的赋值表达式 输出对应的汇编语言序列
只考虑仅含一个寄存器的情形 且表达式中不存在跳转汇编指令和标号;">实现一个的目标代码生成程序 识别用户输入的关于标识符与整数的含加法 乘法的赋值表达式并输出四元式序列
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.000942s ]
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.094101s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001755s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001787s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001071s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003045s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000932s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003649s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015847s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001055s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 40079 [ RunTime:0.021197s ]