Refactored and Optimized Logic:: Parser Logic, Latex Based Output & Shared Modules #283
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR intends to refactor the parse.py to achieve maintainability and scalability.
Scopes Covered
Approach Followed
parse.py
file now contains only the main function where it calls respective scripts for generating the output based on extensions selected.shared_utils.py
so that other scripts can re-use them efficiently. These functions are shared between various extension scriptsLatex
is refactored and optimized inlarex_utils.py
parse.py
andshared_utils.py
are refactored, modularized and optimized as wellNeeds to be done
latex
). They require improvements and enhancements. They are just simply taken fromparse.py
to their modules likec_utils.py
for generating c based outputshared_utils.py
, the methodcreate_inst_dict()
is yet to be refactored.