Skip to content

[FEATURE] Generalize prec_to_type and type_to_prec dictionary #431

@frankhart2018

Description

@frankhart2018

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.

Metadata

Metadata

Labels

easyEasy problemenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions