bison-patches
[Top][All Lists]
Advanced

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

Re: Reserved name classes


From: Paul Eggert
Subject: Re: Reserved name classes
Date: 22 Jan 2003 01:46:34 -0800

Akim Demaille <address@hidden> writes:

> What _is_ easy is remapping "state" to "a_state".  But how will you
> restore all the "s" back into "state"?

It won't be that hard.  Most occurrences of "s" in the Bison code
proper are states.  I just took a quick look, and the only exceptions
that I found were in system.h, uniqstr.[ch], and vcg.c, which don't
count really; a few places in lalr.c, state.h, and tables.c where
state numbers are called 's'; one or two places in state.c where
symbol numbers are called s; and a few places in gram.h where s is
either a token or a var number.  (These weren't all my "s"s, by the
way; I fear that some of the "s"s in the old code escaped your earlier
dragnet.  :-)

Anyway, let's not worry about how much work it is.  I can do the work;
it's really not that hard.  Let's just worry about what the
conventions should be.




reply via email to

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