Lines Matching refs:log
545 def __init__(self,ldict,log=None,reflags=0):
554 if log is None:
555 self.log = PlyLogger(sys.stderr)
557 self.log = log
577 self.log.error("No token list is defined")
582 self.log.error("tokens must be a list or tuple")
587 self.log.error("tokens is empty")
598 self.log.error("Bad token name '%s'",n)
601 self.log.warning("Token '%s' multiply defined", n)
613 self.log.error("Invalid literal %s. Must be a single character", repr(c))
618 self.log.error("Invalid literals specification. literals must be a sequence of characters")
626 self.log.error("states must be defined as a tuple or list")
631 self.log.error("Invalid state specifier %s. Must be a tuple (statename,'exclusive|inclusive')",repr(s))
636 self.log.error("State name %s must be a string", repr(name))
640 self.log.error("State type for state %s must be 'inclusive' or 'exclusive'",name)
644 self.log.error("State '%s' already defined",name)
668 self.log.error("No rules of the form t_rulename are defined")
684 self.log.error("%s:%d: Rule '%s' must be defined as a string",file,line,t.__name__)
694 self.log.warning("%s contains a literal backslash '\\'",f)
697 self.log.error("Rule '%s' must be defined as a function", f)
703 self.log.error("%s not defined as a function or string", f)
741 self.log.error("%s:%d: Rule '%s' has too many arguments",file,line,f.__name__)
746 self.log.error("%s:%d: Rule '%s' requires an argument", file,line,f.__name__)
751 self.log.error("%s:%d: No regular expression defined for rule '%s'",file,line,f.__name__)
758 self.log.error("%s:%d: Regular expression for rule '%s' matches empty string", file,line,f.__name__)
762 self.log.error("%s:%d: Invalid regular expression for rule '%s'. %s", file,line,f.__name__,e)
764 self.log.error("%s:%d. Make sure '#' in rule '%s' is escaped with '\\#'",file,line, f.__name__)
771 self.log.error("Rule '%s' must be defined as a function", name)
776 self.log.error("Rule '%s' defined for an unspecified token %s",name,tokname)
783 self.log.error("Regular expression for rule '%s' matches empty string",name)
787 self.log.error("Invalid regular expression for rule '%s'. %s",name,e)
789 self.log.error("Make sure '#' in rule '%s' is escaped with '\\#'",name)
793 self.log.error("No rules defined for state '%s'",state)
810 self.log.error("%s:%d: Rule '%s' has too many arguments",file,line,f.__name__)
814 self.log.error("%s:%d: Rule '%s' requires an argument", file,line,f.__name__)
856 self.log.error("%s:%d: Rule %s redefined. Previously defined on line %d",filename,linen,name,prev)
890 linfo = LexerReflect(ldict,log=errorlog,reflags=reflags)