类Lex & Yacc

上传者: xinghongduo | 上传时间: 2021-04-12 19:13:05 | 文件大小: 9.41MB | 文件类型: RAR
笔者实现了一个类似于Lex & Yacc的编译器前端构造工具,该工具基于LALR(1)分析法,支持二义性文法,支持语法制导翻译,支持错误恢复机制,使用它我们可以构造指定词法文法的编译器前端,并且构造的分析器是线程安全的。里面还给出几个示例,构造四则表达式计算器,JSON解析器和C99标准C编译器前端。 编译原理课程的大杀器

文件下载

资源详情

[{"title":"( 60 个子文件 9.41MB ) 类Lex & Yacc","children":[{"title":"myProject","children":[{"title":"exp_cal","children":[{"title":"exp_cal.ncb <span style='color:#111;'> 11.20MB </span>","children":null,"spread":false},{"title":"mylex.c <span style='color:#111;'> 7.80KB </span>","children":null,"spread":false},{"title":"xparser.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"exp_cal.suo <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"mylex.h <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"xparser.c <span style='color:#111;'> 13.38KB </span>","children":null,"spread":false},{"title":"exam.c <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"exp_cal.sln <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"exp_cal.vcproj <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"sql_parser","children":[{"title":"mylex.c <span style='color:#111;'> 804.34KB </span>","children":null,"spread":false},{"title":"xparser.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"sql_parser.sln <span style='color:#111;'> 888B </span>","children":null,"spread":false},{"title":"sql_parser.suo <span style='color:#111;'> 16.50KB </span>","children":null,"spread":false},{"title":"sql_parser.ncb <span style='color:#111;'> 9.00MB </span>","children":null,"spread":false},{"title":"mylex.h <span style='color:#111;'> 7.14KB </span>","children":null,"spread":false},{"title":"xparser.c <span style='color:#111;'> 299.67KB </span>","children":null,"spread":false},{"title":"exam.c <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"sql_parser.vcproj <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"c_parser","children":[{"title":"a.c <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"mylex.c <span style='color:#111;'> 165.59KB </span>","children":null,"spread":false},{"title":"c_parser.suo <span style='color:#111;'> 28.50KB </span>","children":null,"spread":false},{"title":"xparser.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"c_parser.vcproj <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"mylex.h <span style='color:#111;'> 3.32KB </span>","children":null,"spread":false},{"title":"xparser.c <span style='color:#111;'> 288.11KB </span>","children":null,"spread":false},{"title":"exam.c <span style='color:#111;'> 938B </span>","children":null,"spread":false},{"title":"c_parser.sln <span style='color:#111;'> 884B </span>","children":null,"spread":false},{"title":"c_parser.ncb <span style='color:#111;'> 8.96MB </span>","children":null,"spread":false}],"spread":true},{"title":"mylex&xparser","children":[{"title":"g","children":[{"title":"t.g <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"c99.g <span style='color:#111;'> 12.24KB </span>","children":null,"spread":false},{"title":"c99c.g <span style='color:#111;'> 11.67KB </span>","children":null,"spread":false},{"title":"mylex_xparser.exe <span style='color:#111;'> 208.00KB </span>","children":null,"spread":false},{"title":"json_objc.g <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"mysql.g <span style='color:#111;'> 23.37KB </span>","children":null,"spread":false},{"title":"cal.g <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"json.g <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"test1.g <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":true},{"title":"gen.cpp <span style='color:#111;'> 22.52KB </span>","children":null,"spread":false},{"title":"mylex_xparser.suo <span style='color:#111;'> 74.50KB </span>","children":null,"spread":false},{"title":"mylex_xparser.sln <span style='color:#111;'> 894B </span>","children":null,"spread":false},{"title":"fsm.h <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"mylex_xparser.ncb <span style='color:#111;'> 1.27MB </span>","children":null,"spread":false},{"title":"lalr.cpp <span style='color:#111;'> 33.21KB </span>","children":null,"spread":false},{"title":"fsm.cpp <span style='color:#111;'> 32.44KB </span>","children":null,"spread":false},{"title":"mylex_xparser.vcproj <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"lalr.h <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"json_parser","children":[{"title":"mylex.c <span style='color:#111;'> 10.21KB </span>","children":null,"spread":false},{"title":"json_parser.sln <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"json","children":[{"title":"delicious_popular.json <span style='color:#111;'> 28.42KB </span>","children":null,"spread":false},{"title":"twitter_public.json <span style='color:#111;'> 23.44KB </span>","children":null,"spread":false},{"title":"yelp.json <span style='color:#111;'> 38.57KB </span>","children":null,"spread":false},{"title":"lastfm.json <span style='color:#111;'> 32.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"type.h <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"json_parser.vcproj <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"xparser.h <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"mylex.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"xparser.c <span style='color:#111;'> 15.14KB </span>","children":null,"spread":false},{"title":"exam.c <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"json_parser.ncb <span style='color:#111;'> 11.53MB </span>","children":null,"spread":false},{"title":"json_parser.suo <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • thecrazyboy :
    天哪,yacc都可以自制,强人
    2018-03-10
  • zhoujianhei :
    谢谢楼主分享
    2017-11-24
  • 752847016 :
    非常好用,谢谢楼主分享
    2015-10-27

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明