code: def _find_column(input_, token):
      
  
      i = token.lexpos
      while i > 0:
          if input_[i] == '\n':
              break
          i -= 1
      column = token.lexpos - i - 1
      return column
docs: Find the column in file where error occured. This is taken from
          token.lexpos converted to the position on the current line by
          finding the previous EOL.