目前共有2篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
42 1
Berkeley Yacc
一派掌门 二十级
1楼 发表于:2025-4-23 16:53

Berkeley Yacc was originated in 1985 by Robert Corbett (see Corbett 1984). It was originally named “zoo”, but by October 1989 it became known as Berkeley Yacc or byacc.

Berkeley Yacc had three advantages over the ancestral Yacc: it generated faster parsers, it could generate reentrant parsers, and the source code was released to the public domain rather than being under an AT&T proprietary license. The better performance came from implementing techniques from DeRemer and Penello’s seminal paper on LALR parsing (see DeRemer 1982).

Use of byacc spread rapidly due to its public domain license. However, once Bison became available, byacc itself passed out of general use.

https://www.gnu.org/software/bison/manual/html_node/Byacc.html

一派掌门 二十级
2楼 发表于:2025-4-23 16:55

Berkeley yacc parser generator

Berkeley yacc is a parser generator utility that reads a grammar specification from a file and generates an LR(1) parser for it. The parsers consist of a set of LALR(1) parsing tables and a driver routine written in the C programming language. It has a public domain license which includes the generated C.

This package is configured with backtracking enable which makes it reasonably compatible with GNU bison.

Note that for better compatibility with bison, byacc supports the --defines=<defines_file> and --output=<output_file> options as alternatives for -H <defines_file> and -o <output_file>. For example:

byacc --defines=parse.h --output=parse.c parse.y

Note also that the byacc executable provides build2 metadata.

https://www.cppget.org/byacc?f=full#description
 

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:42 回复数:1
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2025-4-23 16:55
 
©2010-2025 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。