Determine type with NimbleParsec?

I’d separate parsing the string to tokens of interest and then bringing those tokens together with whatever business logic you have around it.