• Serhiy Storchaka's avatar
    bpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370) · 8ac65811
    Serhiy Storchaka yazdı
    "Include/token.h", "Lib/token.py" (containing now some data moved from
    "Lib/tokenize.py") and new files "Parser/token.c" (containing the code
    moved from "Parser/tokenizer.c") and "Doc/library/token-list.inc" (included
    in "Doc/library/token.rst") are now generated from "Grammar/Tokens" by
    "Tools/scripts/generate_token.py". The script overwrites files only if
    needed and can be used on the read-only sources tree.
    
    "Lib/symbol.py" is now generated by "Tools/scripts/generate_symbol_py.py"
    instead of been executable itself.
    
    Added new make targets "regen-token" and "regen-symbol" which are now
    dependencies of "regen-all".
    
    The documentation contains now strings for operators and punctuation tokens.
    8ac65811
Adı
Son kayıt (commit)
Son güncelleme
..
Python.asdl Loading commit data...
acceler.c Loading commit data...
asdl.py Loading commit data...
asdl_c.py Loading commit data...
bitset.c Loading commit data...
firstsets.c Loading commit data...
grammar.c Loading commit data...
grammar1.c Loading commit data...
listnode.c Loading commit data...
metagrammar.c Loading commit data...
myreadline.c Loading commit data...
node.c Loading commit data...
parser.c Loading commit data...
parser.h Loading commit data...
parsetok.c Loading commit data...
parsetok_pgen.c Loading commit data...
pgen.c Loading commit data...
pgenmain.c Loading commit data...
printgrammar.c Loading commit data...
token.c Loading commit data...
tokenizer.c Loading commit data...
tokenizer.h Loading commit data...
tokenizer_pgen.c Loading commit data...