发新话题
打印

[转载]语法分析辅助工具Bison parser generator

[转载]语法分析辅助工具Bison parser generator

信息来源:美国 普林斯顿大学

Bison is a general-purpose parser generator that converts a grammar description for an LALR(1) context-free grammar into a C program to parse that grammar. Bison is upward compatible with Yacc: all properly-written Yacc grammars ought to work with Bison with no change.

Bison was written primarily by Robert Corbett; Richard Stallman made it Yacc-compatible. Wilfred Hansen of Carnegie Mellon University added multicharacter string literals and other features.

Bison is distributed by the Free Software Foundation. Latest versions likely to be available at these sites.

用户手册:
http://www.cs.princeton.edu/~app ... ison/bison_toc.html

这个冰血也说明一下吧,这个工具和Yacc的效果类似,是将文法转换成语法分析器的辅助工具。对于研究编译原理和做该方面的设计的朋友有良好的辅助作用。

附件

bison-1.25.tar.gz (281 KB)

2006-7-24 06:24, 下载次数: 333

曾几何时,有人对我说:装B遭雷劈。我说:去你妈的。于是,这个人又对我说:如果再说脏话,上帝会惩罚你的。我说:我操上帝。结论:彪悍的人生不需要上帝。

TOP

发新话题