Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Generalize prec_to_type and type_to_prec dictionary #431

Open
frankhart2018 opened this issue Dec 29, 2020 · 0 comments
Open

[FEATURE] Generalize prec_to_type and type_to_prec dictionary #431

frankhart2018 opened this issue Dec 29, 2020 · 0 comments
Assignees
Labels
easy Easy problem enhancement New feature or request

Comments

@frankhart2018
Copy link
Member

Describe the solution you'd like
Two dictionaries called prec_to_type and type_to_prec have been created multiple times in the parser, these map an integer precedence to typename and typename to precedence integer respectively. If there is requirement of adding a new typename with precedence in between these values then one will have to change all these dictionaries. It would thus be better to have a single dictionary in parser_constants.py which can be used everywhere.

@frankhart2018 frankhart2018 added enhancement New feature or request easy Easy problem KWoC'20 These issues are being listed as part of KWoC'20 SWoC 2021 labels Dec 29, 2020
@PranshulDobriyal PranshulDobriyal self-assigned this Jan 6, 2021
@frankhart2018 frankhart2018 removed the KWoC'20 These issues are being listed as part of KWoC'20 label Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy problem enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants