RustPython / Parser

MIT License
66 stars 24 forks source link

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

Open zanieb opened 11 months ago

zanieb commented 11 months ago

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

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 commented 11 months ago

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