davidhalter / davidhalter/parso

Soft Keywords and How to Implement Them

Open
#138 44 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
679
Forks
120
PR merge metrics
No merged PRs in 30d

Description

I've been thinking for a day about how we can possibly implement [PEP 622]() in case of acceptance. While I was thinking, I drafted a piece of code, which might seem totally unreasonable (since it changes the parser to semi-LL(1) from LL(1)) but wanted to share it as a maybe last resort? I tried to document the strategy as inline comments, so feel free to read and comment about it:

https://github.com/davidhalter/parso/compare/master...isidentical:soft-keywords-very-very-bad-demo?expand=1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.