def add(self, s): msg = s[s.find(']') + 1:] #error message s = s[1:s.find(']')] #line and column numbers ln = int(s[0:s.find(',')]) #line number col = int(s[s.find(',') + 1:]) #column number self.m_err.append(FileConcat.fileConcat().correctNameAndNumber(ln) + ',' + str(col) + ':' + msg)
def appendSyntaxError(self, s): """@s: Error string""" msg = s[s.find("]") + 1 :] # error message s = s[1 : s.find("]")] # line and column numbers ln = int(s[0 : s.find(",")]) # line number col = int(s[s.find(",") + 1 :]) # column number self.m_syntax_err_count += 1 self.m_err.append(FileConcat.fileConcat().correctNameAndNumber(ln) + "," + str(col) + ":" + msg)
def appendSyntaxError(self, s): '''@s: Error string''' msg = s[s.find(']') + 1:] #error message s = s[1:s.find(']')] #line and column numbers ln = int(s[0:s.find(',')]) #line number col = int(s[s.find(',') + 1:]) #column number self.m_syntax_err_count += 1 self.m_err.append(FileConcat.fileConcat().correctNameAndNumber(ln) + ',' + str(col) + ':' + msg)
def addUnsupportedFeature(self, s, ln): self.m_err.append('Unsupported Feature: ' + FileConcat.fileConcat().correctNameAndNumber(ln) + ': ' + s)
def add(self, s, ln): self.m_err.append('Error: ' + FileConcat.fileConcat().correctNameAndNumber(ln) + ': ' + s)
def addUnsupportedFeature(self, s, ln): self.m_err.append("Unsupported Feature: " + FileConcat.fileConcat().correctNameAndNumber(ln) + ": " + s)
def add(self, s, ln): self.m_err.append("Error: " + FileConcat.fileConcat().correctNameAndNumber(ln) + ": " + s)
def add(self, s): msg = s[s.find("]") + 1 :] # error message s = s[1 : s.find("]")] # line and column numbers ln = int(s[0 : s.find(",")]) # line number col = int(s[s.find(",") + 1 :]) # column number self.m_err.append(FileConcat.fileConcat().correctNameAndNumber(ln) + "," + str(col) + ":" + msg)
def fileConcat(): '''@RETURN: FileConcat reference''' return FileConcat.fileConcat()