LEX与YACC
Mr_John_Liang
这个作者很懒,什么都没留下…
展开
-
LEX与YACC学习资料链接
http://www.eng.cam.ac.uk/help/tpl/languages/flexbison/#Bison http://www.ibm.com/developerworks/cn/linux/sdk/lex/ http://www.cppblog.com/woaidongmao/archive/2012/10/21/62322.html htt原创 2013-04-24 14:59:45 · 811 阅读 · 0 评论 -
Making YACC output an AST (token tree)
%{ typedef struct tree_t { struct tree_t **links; int nb_links; char* type; // the grammar rule }; #define YYDEBUG 1 //int yydebug = 1; tree_t *_C_treeRoot; %} %union转载 2013-04-25 08:47:14 · 1241 阅读 · 0 评论