• Roman Alifanov's avatar
    Refactor stdlib.py to use declarative method definitions · c3bf25cc
    Roman Alifanov authored
    - Import method definitions from methods.py for consistency
    - Define bash implementations in STRING_IMPLS, ARRAY_IMPLS, DICT_IMPLS
    - Generate stdlib functions from these definitions
    - Use context manager (with self.indented()) for cleaner code
    - Reduce code duplication and improve maintainability
    c3bf25cc
stdlib.py 22.7 KB