]> granicus.if.org Git - python/commitdiff
Add a warning notice on top of the generated grammar.txt.
authorArmin Rigo <arigo@tunes.org>
Thu, 7 Sep 2006 15:06:00 +0000 (15:06 +0000)
committerArmin Rigo <arigo@tunes.org>
Thu, 7 Sep 2006 15:06:00 +0000 (15:06 +0000)
Doc/perl/python.perl

index ab93c7cf8a118dba15ee8768bcf2ad9e5d155773..cf0301ebd6d840a9358229dd270b9f306dd00fd3 100644 (file)
@@ -883,6 +883,12 @@ sub process_grammar_files(){
             $filename = 'grammar.txt';
         }
         open(GRAMMAR, ">$filename") || die "\n$!\n";
+        print GRAMMAR "##################################################\n";
+        print GRAMMAR "#     This file is only meant to be a guide,     #\n";
+        print GRAMMAR "#    and differs in small ways from the real     #\n";
+        print GRAMMAR "#   grammar.  The exact reference is the file    #\n";
+        print GRAMMAR "#  Grammar/Grammar distributed with the source.  #\n";
+        print GRAMMAR "##################################################\n";
         print GRAMMAR strip_grammar_markup($DefinedGrammars{$lang});
         close(GRAMMAR);
         print "Wrote grammar file $filename\n";