Re: Berkeley yacc, was Looking for a Lex/Yacc free ebook

"toby" <toby@telegraphics.com.au>
23 Apr 2006 10:00:40 -0400

          From comp.compilers

Related articles
Looking for a Lex/Yacc free ebook Papa.Legba.666@gmail.com (Baron Samedi) (2006-04-12)
Re: Looking for a Lex/Yacc free ebook toby@telegraphics.com.au (toby) (2006-04-14)
Re: Looking for a Lex/Yacc free ebook dickey@saltmine.radix.net (Thomas Dickey) (2006-04-16)
Re: Looking for a Lex/Yacc free ebook toby@telegraphics.com.au (toby) (2006-04-17)
Re: Looking for a Lex/Yacc free ebook dickey@saltmine.radix.net (Thomas Dickey) (2006-04-21)
Re: Berkeley yacc, was Looking for a Lex/Yacc free ebook toby@telegraphics.com.au (toby) (2006-04-23)
| List of all articles for this month |
From: "toby" <toby@telegraphics.com.au>
Newsgroups: comp.compilers
Date: 23 Apr 2006 10:00:40 -0400
Organization: http://groups.google.com
References: 06-04-09006-04-095 06-04-104 06-04-114 06-04-117
Keywords: yacc
Posted-Date: 23 Apr 2006 10:00:40 EDT

Thomas Dickey wrote:
> toby <toby@telegraphics.com.au> wrote:
> > Thomas Dickey wrote:
> >> > [Agree about flex, but Berkeley Yacc hasn't changed in at least a decade.
> >> > It doesn't need support. -John]
> >>
> >> see
> >> http://invisible-island.net/byacc
>
> > The aspersion on that page seems unfounded. It's getting difficult to
>
> At the time I wrote it, bison insisted on using alloca(). But see below -
>
> > find a mainstream UNIX that has not adopted gcc as its standard
> > compiler, but bison-2.1 builds with gcc/g++ in "-ansi -pedantic" mode,
>
> yes - it does, but watching bug reports, I notice that it doesn't
> necessarily accept grammars that yacc did (whether this is a good
> thing or not appears to depend on your attitude).
>
> > as well as with Intel icc "-ansi" and lcc (which is bare bones ANSI),
> > so I expect it is portable to pretty much any ANSI compiler.
>
> It would be nice if "-ansi" actually did what it's advertised.


In which of those three compilers? (One of which is all-ANSI, all the
time.) Why would a random ANSI compiler be more or less ANSI than gcc
or icc's "-ansi"?


(Bison 2.1 also builds with tcc, but the binary segfaults, which might
be my problem. :)


--Toby


>
> --
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.