示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 def addUnsupportedFeature(self, s, ln):
     self.m_err.append('Unsupported Feature: ' +
                       FileConcat.fileConcat().correctNameAndNumber(ln) +
                       ': ' + s)
示例#5
0
 def add(self, s, ln):
     self.m_err.append('Error: ' +
                       FileConcat.fileConcat().correctNameAndNumber(ln) +
                       ': ' + s)
示例#6
0
 def addUnsupportedFeature(self, s, ln):
     self.m_err.append("Unsupported Feature: " + FileConcat.fileConcat().correctNameAndNumber(ln) + ": " + s)
示例#7
0
 def add(self, s, ln):
     self.m_err.append("Error: " + FileConcat.fileConcat().correctNameAndNumber(ln) + ": " + s)
示例#8
0
 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)
示例#9
0
 def fileConcat():
     '''@RETURN: FileConcat reference'''
     return FileConcat.fileConcat()