Le 1 mai 09 à 05:17, Joel E. Denny a écrit :
Hi Joel! (FWIW, spelled Joël in French :)
On Tue, 21 Apr 2009, Akim Demaille wrote:
The asymmetry between dashes and period is not something I am
deeply attached
to. POSIX says "Names are of arbitrary length, made up of letters,
periods
(.), underscores (_) and non-initial digits." so I'm fine with just
adding `-'
to the {letter}. Yet the error messages should probably be
improved. Maybe
catching "words" starting with dashes and digits, and complaining
about them,
in order to have
invalid identifier: -wrong
invalid identifier: 1nv4l1d
instead of what we currently have.
That would at least fix this case:
%token TOK1 1TOK
for which Bison currently assigns 1 to TOK1 and recognizes a
separate TOK.
OK, I'll address that in the near future.
By the way, in the NEWS entry for 2.5, are we ready to announce the
ability to put dashes in grammar symbol names?
Yes, I think we are. But I don't remember you gave your opinion about
the names: given that _ and . are valid symbol names per POSIX, do we
agree that - should be too?