Re: [PATCH for Dlang support] d: support api.symbol.prefix and api.token.prefix

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>

> Le 28 sept. 2020 à 14:30, Adela Vais <[email protected]> a écrit :
> 
> The D skeleton was not properly supporting them.
> 
> * data/skeletons/d.m4, data/skeletons/lalr1.d: Fix it.
> * tests/calc.at: Check it.

Good catch, thanks Adela!  Installed.

Note that these guys are critical in the case of C and C++ because of macros.  So if you define a token named EOF for instance, you'll get a clash with the EOF macro.  That's why it is important there to be able to "move away" from dangerous names.

In D and Java, since the symbol and token kinds are "scoped", there's no risk of collision, so it should not be so important.  But it does give us some consistency.

Cheers!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.