code: def error(self, msg, n):
          
          raise SyntaxError(msg, n.lineno, n.col_offset,
                            filename=self.compile_info.filename)
docs: Raise a SyntaxError with the lineno and col_offset set to n's.