[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1003769: RFS: byacc/1.0-2 [ITA] -- public domain Berkeley LALR Yacc parser generator



On Sun, Jan 16, 2022 at 02:39:04PM +0100, ابو الغيث عليّ wrote:
> Hello Thomas,
> 
> What is the difference between Yacc and Lex GNU tools.
> And Byacc or Bison?!

bison has a lot of non-yacc extensions.
I don't believe any third-party has made a list of differences.

Consider this like the difference between pmake and "gmake".
 
> Berkeley still a source of truthful tools and clean mainstream.

"Berkeley" is long out of the picture.  The various BSDs package
both byacc and bison.  I see byacc here:

MacOS base has this, which isn't the original byacc 1.9,
but rather a copy of what was in NetBSD:
https://opensource.apple.com/tarballs/yacc/

but ports have this byacc:
https://github.com/macports/macports-ports/blob/master/devel/byacc/Portfile
https://formulae.brew.sh/formula/byacc

(fwiw, Apple rarely updates tools such as this except as required for
POSIX certification).

FreeBSD has this byacc both in base and ports:
https://svnweb.freebsd.org/base/head/usr.bin/yacc/
https://svnweb.freebsd.org/ports/head/devel/byacc/

NetBSD has retired their copy of byacc 1.9
http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/yacc/?only_with_tag=MAIN
in favor of this byacc:
https://pkgsrc.se/devel/byacc

OpenBSD has only byacc 1.9 copied from NetBSD, with minor changes:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/

(fwiw, OpenBSD's ports are a subset of pkgsrc, e.g., 9453 vs 18329).

There's also DragonFly (also using this byacc):
https://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/usr.bin/yacc/Makefile
https://gitweb.dragonflybsd.org/dragonfly.git/tree/HEAD:/contrib/byacc

> Do it keep byacc and blex.

there's a similar story for lex, but I think that's off-topic.
 
> Kind regards,
> 
> 
> 
> 
> 
> 
> 
> 
> On Sun, 16 Jan 2022 at 14:09 Thomas Dickey <dickey@his.com> wrote:
> 
> > On Sun, Jan 16, 2022 at 07:58:07AM -0500, Thomas Dickey wrote:
> > > On Sun, Jan 16, 2022 at 08:03:14AM +0100, Andreas Metzler wrote:
> > ...
> > > > * Is the double compilation/binary necessary? - Is /usr/bin/byacc2
> > >
> > > I thought it would be the safest approach.  I've made some effort to keep
> > > the two compatible, but sooner or later will get some bug report related
> > > to their differences.  Debian's the usual place for that sort of thing.
> >
> > fwiw, the reference files in test/*yacc show that backtracking doesn't
> > simply _add_ definitions:
> >
> >  155 files changed, 53852 insertions(+), 1785 deletions(-)
> >
> > (presumably reviewing those deletions would tell me whether two binaries
> > are still needed).
> >
> > --
> > Thomas E. Dickey <dickey@invisible-island.net>
> > https://invisible-island.net
> > ftp://ftp.invisible-island.net
> >

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


Reply to: