这个是YACC和LEX结合使用来实现整数加法的简单事例,我体现的是基本的步骤,不在于其功能的完美和强大,给我一样的菜鸟以启示,以便您不必在开始的路上徘徊太久,希望您喜欢-the LEX and YACC is a combination of integers to achieve a simple example, I embody the basic steps, not its function in a perfect and strong, give me the same exposure to enlightenment, so that you need not start wandering on the road for too long, I hope you like
文 件 列 表
示范yacc&lex make test.y test.l y.tab.h y.tab.c lex.yy.c ReadMe.txt
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.002358s ]
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.098672s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001372s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001966s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001552s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.005633s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001097s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003867s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.016795s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001159s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 319622 [ RunTime:0.016233s ]