Example #1
0
	def error_in_specification(self, ex):
		if ex.token.isEOF():
			# Unexpected end of file
			raise error.from_antlr_token(ex.token, filename = self.getFilename(),
					text = "Unexpected end of file")
		else:
			raise
Example #2
0
 def error_in_definition(self, ex):
     if ex.token.getText() == 'interface':
         # Parsed "interface" but couldn't get beyond it.
         # Complain about the token.
         raise error.from_antlr_token(self.LT(2), self.getFilename())
     else:
         raise
Example #3
0
	def error_in_definition(self, ex):
		if ex.token.getText() == 'interface':
			# Parsed "interface" but couldn't get beyond it.
			# Complain about the token.
			raise error.from_antlr_token(self.LT(2), self.getFilename())
		else:
			raise
Example #4
0
 def error_in_specification(self, ex):
     if ex.token.isEOF():
         # Unexpected end of file
         raise error.from_antlr_token(ex.token,
                                      filename=self.getFilename(),
                                      text="Unexpected end of file")
     else:
         raise