Could have an optional initialization parameter, say postprocessor, for Parser, that takes a callable... that takes the data structure generated from the pent parsing, and then converts it down stream to the desired output format.
As an additional enhancement, then there could be a library of command post-processing helpers, perhaps there taking advantage of things like numpy, that users could exploit.
Could have an optional initialization parameter, say
postprocessor
, forParser
, that takes a callable... that takes the data structure generated from the pent parsing, and then converts it down stream to the desired output format.As an additional enhancement, then there could be a library of command post-processing helpers, perhaps there taking advantage of things like
numpy
, that users could exploit.