Mercurial > lcfOS
comparison python/ppci/common.py @ 353:b8ad45b3a573
Started with strings
author | Windel Bouwman |
---|---|
date | Sun, 09 Mar 2014 18:49:10 +0100 |
parents | 6f4753202b9a |
children | fb3c1f029b30 |
comparison
equal
deleted
inserted
replaced
352:899ae3aea803 | 353:b8ad45b3a573 |
---|---|
60 def addSource(self, name, src): | 60 def addSource(self, name, src): |
61 self.logger.debug('Adding source {}'.format(name)) | 61 self.logger.debug('Adding source {}'.format(name)) |
62 self.sources[name] = src | 62 self.sources[name] = src |
63 | 63 |
64 def addDiag(self, d): | 64 def addDiag(self, d): |
65 #self.logger.warning(str(d.msg)) | 65 self.logger.error(str(d.msg)) |
66 self.diags.append(d) | 66 self.diags.append(d) |
67 | 67 |
68 def error(self, msg, loc): | 68 def error(self, msg, loc): |
69 self.addDiag(CompilerError(msg, loc)) | 69 self.addDiag(CompilerError(msg, loc)) |
70 | 70 |