mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Add a warning notice on top of the generated grammar.txt.
This commit is contained in:
parent
62e475b84f
commit
863f3d1fbf
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue