bug-bison
[Top][All Lists]
Advanced

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

Re: YYEOF shouldn't be defined with bison -y


From: Kaz Kylheku
Subject: Re: YYEOF shouldn't be defined with bison -y
Date: Mon, 04 Dec 2017 12:24:40 -0800
User-agent: Roundcube Webmail/0.9.2

On 03.12.2017 18:34, Dimitrios Apostolou wrote:
Hello list,

I am configuring the build using AC_PROG_YACC, which invokes bison with "-y" option. But bison-generated parser compiled successfully, and YYEOF extension
in the parser remained undetected.

Generating the parser with "byacc" on the other hand creates a file that does
not compile because of undefined symbol YYEOF.

What is your error report?

Are you saying that you cannot boostrap a build of Bison using Byacc?

The Bison source tree contains the generated parse-gram.c file, so I would
expect that you don't need an installation of any kind of Yacc to be
able to build it. (So if it is intended to work with Byacc but doesn't,
it's a problem, but shouldn't be a blocker.)

It is not wrong for Yacc implementations to introduce additional YY*
identifiers; they are in the "Yacc namespace"; sort of like POSIX (or anyone else) can introduce errno macros beginning with E in the <errno.h> header.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]