def verifyInRightHalf(strg, locn, toks):
    col = pp.col(locn, strg)
middle = len(strg) // 2
if not col > middle:
    raise pp.ParseException(strg, locn,
        'matched token not in right half of string')
Match an element only when it appears in the right half of the parsing string