This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, lys.nikolaou, pablogsal
Date 2020-05-11.23:26:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589239572.47.0.657107674809.issue40599@roundup.psfhosted.org>
In-reply-to
Content
In response to my PEG blogs last year someone showed me an entirely different algorithm, based on first looking for matching parentheses (and other matching things), then for operators by priority, and so on. The approach was designed with C in mind but looked like it would fit reasonably well with Python, once you view e.g. ':' as an operator of a certain priority, and figure out what to do with indentation.

This would actually be closer to the old approach, accepting "a+1 = b" initially as an assignment and then rejecting "a+1" as a target.

I wonder if we could (eventually) use this approach as a fallback when a syntax error is found. But it is an entirely different theoretical framework, so we should probably not hurry with this.

IOW I'm okay with closing this issue.
History
Date User Action Args
2020-05-11 23:26:12gvanrossumsetrecipients: + gvanrossum, lys.nikolaou, pablogsal
2020-05-11 23:26:12gvanrossumsetmessageid: <1589239572.47.0.657107674809.issue40599@roundup.psfhosted.org>
2020-05-11 23:26:12gvanrossumlinkissue40599 messages
2020-05-11 23:26:12gvanrossumcreate