设置 | 登录 | 注册

作者共发了2篇帖子。

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

内容转换:

回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张
©2010-2025 Purasbar Ver3.0 [手机版] [桌面版]
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。