def _find_column(input, token):
    last_cr = input.rfind('\n', 0, token.lexpos)
    if last_cr < 0:
        last_cr = 0
    column = (token.lexpos - last_cr) + 1
    return column
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/csparser/parser.py/_find_column/original