These methods all pass the messages through to the Log() singleton, but they also take care of echoing the
current position, calling the callback if there is one, and also
echoing the current line when this is the first message for the
current line.
# - - - S c a n . e r r o r
# - - - S c a n . s y n t a x
# - - - S c a n . w a r n i n g
def error ( self, *L ):
'''Send an error message to Log().
'''
self.msgKind ( ERROR_KIND, *L )
def syntax ( self, *L ):
'''Send an error message and raise SyntaxError.
'''
self.error ( *L )
raise SyntaxError ( ''.join(L) )
def warning ( self, *L ):
'''Send a warning to Log().
'''
self.msgKind ( WARNING_KIND, *L )