def scanerror(self, msg):
        """Emit scan error and abort assembly."""
        error('scan error: ' + msg + ' on line {}'.format(self.sline))
        sys.exit(-1)
def scanerror ( self , msg ) : error ( 'scan error: ' + msg + ' on line {}' . format ( self . sline ) ) sys . exit ( - 1 )
Emit scan error and abort assembly.