bison-patches
[Top][All Lists]
Advanced

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

Re: %union ... {


From: Hans Aberg
Subject: Re: %union ... {
Date: Tue, 20 Jun 2006 13:50:41 +0200

On 20 Jun 2006, at 13:34, Akim Demaille wrote:

It is much trouble: the syntax depends on the language which is used,
and I don't think bison should be aware of intricacies of the target
language, only m4 should.

Specifically, I think that Bison needs to be aware of the target language syntax in the portions where the .y input file explicitly adds code, like in the actions, the code placement version of % define, and so on, but nowhere else. This target language knowledge is very limited, though: ignoring comments, translating $k, etc. These different code placement places of the Bison grammar should be consistent.

But, if more target languages than say C/C++/Java should be enabled, I think that Bison will need some %target_language option.

  Hans Aberg






reply via email to

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