bskinn / pent

pent Extracts Numerical Text -- Mini-language driven parser for structured numerical data in text
MIT License
20 stars 3 forks source link

Add Parser arg taking a callable to filter element-wise #70

Open bskinn opened 5 years ago

bskinn commented 5 years ago

E.g., "drop anything containing a colon", for mwfn LI block.

Might not be too generally useful, since it's probably(?) impractical to target it to a specific capture token...unless adding a 'key' field to the token would then allow matching of the key to the passed callable...mapping of keys to callable, perhaps.

Would get pretty hairy...multiple keys on a token, cross-application of different callables...could be very powerful, though.