summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-09-07 15:06:00 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-09-07 15:06:00 (GMT)
commit863f3d1fbff6b65eb0526f2d98a6f89474b96eb9 (patch)
tree90e5641f1daa37cefb770ae950ff3f1fccead8c5 /Doc
parent62e475b84f0cf3343fbd15810678b3c6f728aa9f (diff)
downloadcpython-863f3d1fbff6b65eb0526f2d98a6f89474b96eb9.zip
cpython-863f3d1fbff6b65eb0526f2d98a6f89474b96eb9.tar.gz
cpython-863f3d1fbff6b65eb0526f2d98a6f89474b96eb9.tar.bz2
Add a warning notice on top of the generated grammar.txt.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/perl/python.perl6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index ab93c7c..cf0301e 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -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";