[issue42128] Structural Pattern Matching (PEP 634)
Lysandros Nikolaou
report at bugs.python.org
Tue Feb 9 09:35:17 EST 2021
Lysandros Nikolaou <lisandrosnik at gmail.com> added the comment:
The grammar is indeed auto-generated by reading the actual Grammar file, python.gram. Here's the lexer Pablo had developed for doing the syntax-highlighting.
https://github.com/python/cpython/blob/master/Doc/tools/extensions/peg_highlight.py
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42128>
_______________________________________
More information about the Python-bugs-list
mailing list