bison-patches
[Top][All Lists]
Advanced

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

Code that disapears


From: Akim Demaille
Subject: Code that disapears
Date: Sun, 02 Feb 2003 12:15:58 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

I often put in some code that is not yet used, but plans to be used.
I'd like it to stay there.  In particular, it is not by chance that
there was more M4 code than C code in some areas, for instance in the
handling of output file names.  Scavenging in the pat, I find things
like:

http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/data/lalr1.cc.diff?r1=1.13&r2=1.14&diff_format=h

 m4_define_default([b4_input_suffix], [.y])  
   
 m4_define_default([b4_output_parser_suffix],  
 [m4_translit(b4_input_suffix, [yY], [cC])])  
   
 m4_define_default([b4_output_parser_name],  
 [b4_output_prefix[]b4_output_infix[]b4_output_parser_suffix[]])  
   
   
 m4_define_default([b4_output_header_suffix],  
 [m4_translit(b4_input_suffix, [yY], [hH])])  
   
 m4_define_default([b4_output_header_name],  
 [b4_output_prefix[]b4_output_infix[]b4_output_header_suffix[]])  
   
 m4_define_default([b4_header_guard],  
                   [m4_bpatsubst(m4_toupper([BISON_]b4_output_header_name),  
                                 [[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]],
                   [_])])  
 

This code is no longer in Bison, and it should.  @output_file_name@
and so forth should be replaced by a definition of
output_file_escaped, and restore the role played by M4 in the
output. (BTW, I don't understand why the guard has disappeared here).

I'll do that when I have time, but I am opposed to any release of
Bison now.




reply via email to

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