bison-patches
[Top][All Lists]
Advanced

[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 00:43:35 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Akim Demaille <address@hidden> writes:

> The latter if doable...  That means having our scanner trace the
> semiu-colons.  It should be doable.

A bit tricky, though, since we should allow comments after the
semicolons.  Not sure it's worth it....

> I don't think that we should accepted something that's not used, or
> cannot be used.  Granted, it could be arbitrarily complex CPP
> invocations that evaluate into a single id...  But is this really
> something that is used?  How is output that stuff?
>
> This thing is really troublesome.
>
> BTW, what do you mean by arbitrary?  It stops at the first brace it
> sees, even if it's in comment?  In a string?

Bison stops at the first "real" brace it sees.  C comments and strings
don't count.  Yacc stops at the first "{" regardless where it appears.
So they're not 100% compatible on really weird inputs.




reply via email to

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