qiskit/qasm/qasmparser.py
def find_column(self, input_, token):
        """Compute the column.

        Input is the input text string.
        token is a token instance.
        """
        if token is None:
            return 0
        last_cr = input_.rfind('\n', 0, token.lexpos)
        if last_cr < 0:
            last_cr = 0
        column = (token.lexpos - last_cr) + 1
        return column
def find_column(self, input_, token):
        if token is None:
            return 0
        last_cr = input_.rfind('\n', 0, token.lexpos)
        if last_cr < 0:
            last_cr = 0
        column = (token.lexpos - last_cr) + 1
        return column
def find_column ( self , input_ , token ) : if token is None : return 0 last_cr = input_ . rfind ( '\n' , 0 , token . lexpos ) if last_cr < 0 : last_cr = 0 column = ( token . lexpos - last_cr ) + 1 return column
Compute the column.

        Input is the input text string.
        token is a token instance.
Compute the column .