I use uint_parser to parse at most 2 consecutive digits. However I would like parsing to fail if the parsed integer is outside of the range [1,31]? For now, I take care of that in the semantic action.
Are there recommendations re detecting errors at parsing level vs at semantic action user code level?