[issue42284] The grammar specification is inconsistent with the implementation of Python parser.

Raymond Hettinger report at bugs.python.org
Sat Nov 7 15:08:59 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

I concur with Georg.   

In writing compilers, it is often convenient to allow the grammar to be permissive and save the enforcement of additional syntax restrictions for the downstream semantic analysis phase.

For example, the C language grammar specifies the "break" statement in much the same way as Python does:  http://www.quut.com/c/ANSI-C-grammar-y.html

Thank you for the suggestion, but I'm going to mark this as declined.

----------
nosy: +rhettinger
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42284>
_______________________________________


More information about the Python-bugs-list mailing list