]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen...
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 25 Mar 2019 22:01:12 +0000 (22:01 +0000)
committerGitHub <noreply@github.com>
Mon, 25 Mar 2019 22:01:12 +0000 (22:01 +0000)
commit91759d98015e1d6d5e1367cff60592ab548e7806
tree903553ec0677b1fc9c3531799ce890fd7a019069
parent027b09c5a13aac9e14a3b43bb385298d549c3833
bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen (GH-12456)

Now that the parser generator is written in Python (Parser/pgen) we can make use of it to regenerate the Lib/keyword file that contains the language keywords instead of parsing the autogenerated grammar files. This also allows checking in the CI that the autogenerated files are up to date.
Lib/keyword.py [changed mode: 0755->0644]
Lib/test/test_keyword.py
Makefile.pre.in
Misc/NEWS.d/next/Core and Builtins/2019-03-20-00-37-24.bpo-12456.fnKoKo.rst [new file with mode: 0644]
Parser/pgen/keywordgen.py [new file with mode: 0644]