|
From: | Paolo Bonzini |
Subject: | Re: [RFC] %language declaration |
Date: | Tue, 12 Sep 2006 11:45:20 +0200 |
User-agent: | Thunderbird 1.5.0.5 (Macintosh/20060719) |
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.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?).
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").
Agreed. Or just use the extension which ".y" maps to, which would be hopefully platform-independent -- ".cc" in the case of C++.And bison could postprocess the default filenames based on the platform it's on (e.g. change "lalr1.c++" to "lalr1.cxx" for DJGPP).
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |