[Top][All Lists]

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

Re: [RFC] %language declaration

From: Paolo Bonzini
Subject: Re: [RFC] %language declaration
Date: Tue, 12 Sep 2006 11:45:20 +0200
User-agent: Thunderbird (Macintosh/20060719)

Then again, with a fixed naming scheme, users can simply drop, say,
"glr.c#" in the bison lib dir and bison will automagically use it
without having to know it exists (is that desirable?).
Not sure, for example in Java a sensible output filename would not have any ".tab", so some knowledge of the language needs to be there in Bison to make such choices.

Also, "glr.c#" is not really a nice filename, it should be "glr.cs" and the language directive arguments would be "C#" (possibly with a synonym "C-Sharp").
And bison could
postprocess the default filenames based on the platform it's on (e.g.
change "lalr1.c++" to "lalr1.cxx" for DJGPP).
Agreed. Or just use the extension which ".y" maps to, which would be hopefully platform-independent -- ".cc" in the case of C++.


reply via email to

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