[Top][All Lists]

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

Re: Dubious features

From: Paul Eggert
Subject: Re: Dubious features
Date: Thu, 08 Jun 2006 09:43:15 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Akim Demaille <address@hidden> writes:

>       * src/scan-gram.l: No longer "parse" things after `%union' until
>       `{'.  Rather, implement the simpler behavior of Solaris Yacc:
>       match a single token from '%union[^{]*'.

I don't like this, because it breaks a grammar that has a comment
containing "{" between the %union and the following brace.  E.g.:

  %union /* There is a special case for "{" in this union.  */
       /* Strings that do not contain "{".  */
       char const *brace_free_strings;

       /* Strings that contain "{".  */
       char *braced_strings;

Solaris yacc is clearly broken in this regard, but we shouldn't
emulate the bug.

reply via email to

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