bug-bison
[Top][All Lists]
Advanced

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

Re: quick bison Q


From: David Durham
Subject: Re: quick bison Q
Date: Mon, 09 Dec 2002 15:48:39 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Paul Eggert wrote:

It allowed any sequence of characters other than '{', which (as far as
I can tell) violates POSIX.  For example, the following Yacc program
conforms to POSIX, and when compiled and run should exit with status
0; but with Bison 1.35 there is a compile-time error message due to
the comment being misparsed.

        %union /* A valid Yacc comment that is not a valid C comment *\
/ because it has *-backslash-newline-/ in it */ {
            int ival;
          };
        %{
          int yylex (void) { return -1; }
        %}
        %%
        s:;

whoever's making comments like that can get over it :)





reply via email to

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