bison-patches
[Top][All Lists]
Advanced

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

Re: [updated PATCH] %language declaration


From: Paolo Bonzini
Subject: Re: [updated PATCH] %language declaration
Date: Thu, 07 Dec 2006 08:57:40 +0100
User-agent: Thunderbird 1.5.0.8 (Macintosh/20061025)


The main objection was that other people might then think about
language-dependent parsing of the Bison skeleton (for example, as in Perl,
because of clashes between the "$N"/"@N" variables, and the internal syntax of
the language).

What's wrong with that? Couldn't it prove to be necessary in order to support some languages? If you would prefer to point me to a previous post, that's fine.

http://www.mail-archive.com/address@hidden/msg01308.html
http://www.mail-archive.com/address@hidden/msg01325.html
http://www.mail-archive.com/address@hidden/msg01336.html

If I understood the first two comments well, Akim doesn't want language-dependent code to pollute the Bison parser. And I tend to agree.

The comments in Akim's last message are addressed by this revision of the patch. The %skeleton mechanism is not touched at all. People contributing new kinds of parsers will have to patch "c-lang.m4" and friends if they want the new skeleton to be selected automatically; it is not necessary however (and hence the patch is backwards compatible) if they prefer their users to use %skeleton in order to invoke the new feature.

Paolo




reply via email to

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