[Top][All Lists]

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

Re: %union ... {

From: Paul Eggert
Subject: Re: %union ... {
Date: Fri, 16 Jun 2006 10:54:45 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Akim Demaille <address@hidden> writes:

> The other possibility, the one I prefer, is to make it syntactic but
> more restricted: accept a single optional ID in the grammar (then of
> course we have no problems with comments).

OK, thanks, your arguments make sense, and you talked me into it.

One detail, though: what kind of identifier?  Should we allow '::' for
the sake of C++ namespace usage?  I don't much use C++ so I'm not a
good judge here.  (It's hard to Google for usages of this form, I'm

I assume we don't want to allow \unnn and \Unnnnnnnn or multibyte
letters and digits (valid in C identifiers), since it'd be hard to
verify which combinations are valid.

Yacc identifiers also allow '.'; should we allow that?  Probably not.

(Don't you just love this can of worms?  :-)

reply via email to

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