Esempio n. 1
0
 def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
     ex = ParseCancellationException(f'line {line}: {column} {msg}')
     ex.line = line
     ex.column = column
     raise ex
Esempio n. 2
0
 def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
     ex = ParseCancellationException(
         f'In line {line}, column {column}: {msg}')
     ex.line = line
     ex.column = column
     self.errors.append(ex)