integer.setParseAction(lambda t: int(t[0]))
month = integer.copy().addParseAction(rangeCheck(1, 12))
day = integer.copy().addParseAction(rangeCheck(1, 31))
How to pass values to pyparsing parseactions?