Re: yytname woes

"James K. Lowden" <[email protected]> Wed, 15 Nov 2023 14:24:55 -0500
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
On Thu, 16 Nov 2023 12:20:48 +0100
Christian Schoenebeck <[email protected]> wrote:

> "skeleton" refers to the common structure and parts of generated
> parsers that are independent of the specified tokens and grammar
> (i.e. language), so simply spoken the portions that are (more or
> less) copied verbatim, [...]

Yes, from 1000 feet up, I can imagine there is such a thing. =20

According to Arthur Clarke, ?Any sufficiently advanced technology is
indistinguishable from magic?.  That's pretty much my understanding of
how Bison works.=20
=20
> > or when exactly I can depend on $$ =3D $1 having been executed.

> You mean the exact *order* of actions being executed, not whether or
> not they are executed at all, right?

That's right. =20

I know that if there's no action, then { $$ =3D $1; } is provided by
default.  Clearly, that can never be the final step after a defined
action, as it would override the action or conceal the programmer's
failure to define a value for $$.  But I have the impression that $$ is
sometimes initialized at start-of-action, depending on the skeleton. =20

So, I don't depend on it.  :-)

--jkl