Currently we have to manually import each adapter and have an ugly function (_parser_adapter) with (potentially) lots of if statements.
We could detect these packages automatically, and have each parser_adapter declare the type of parser it matches. Then, we can convert the _parser_adapter to a (slightly) more elegant for loop, and not have to update it ever again (when adding new parsers).
Currently we have to manually import each adapter and have an ugly function (
_parser_adapter) with (potentially) lots ofifstatements.We could detect these packages automatically, and have each
parser_adapterdeclare the type of parser it matches. Then, we can convert the_parser_adapterto a (slightly) more elegant for loop, and not have to update it ever again (when adding new parsers).