re2c
2011-01-25 11:30:21| 分类:
R&D
| 标签:
|举报
|字号大中小 订阅
搜索Lemon时附带发现了这个lexer,据说效率大大优于GNU Flex,网上有用 re2c/lemon替代 Flex/Bison的方案,PHP内部也使用了它
http://www.re2c.org/
re2c is a tool for writing very fast and very flexible scanners. Unlike any other such tool, re2c focuses on generating high efficient code for regular expression matching. As a result this allows a much broader range of use than any traditional lexer offers. And Last but not least re2c generates warning free code that is equal to hand-written code in terms of size, speed and quality.
更多编译器相关算法
Compiler Algorithms
http://www.softpanorama.org/Algorithms/compilers.shtml
评论这张
转发至微博
转发至微博
评论