Parser icon indicating copy to clipboard operation
Parser copied to clipboard

Consolidate parsing of `Expr::Name` in `TypeAliasName`, `MatchName`, and `Atom<Goal>`

Open zanieb opened this issue 2 years ago • 1 comments

We have three parser descriptions for in the LALRPOP grammar for generating Expr::Name from an Identifier.

  • TypeAliasName
  • MatchName
  • Atom<Goal>

These could be consolidated into a single reused identifier for simplicity and clarity.

Originally posted by @MichaReiser in https://github.com/RustPython/Parser/pull/97#discussion_r1263930630

zanieb avatar Jul 14 '23 19:07 zanieb

TypeAliasName may not be compatible with MatchName per https://github.com/RustPython/Parser/pull/99

zanieb avatar Jul 26 '23 21:07 zanieb