Output line number and column number of syntax error

Please rename the variable, I don't understand what 'pos' stands for.