Mercurial > lcfOS
diff python/ppci/errors.py @ 191:6b2bec5653f1
Added assembler testset
author | Windel Bouwman |
---|---|
date | Sun, 26 May 2013 15:28:07 +0200 |
parents | e9b27f7193e3 |
children | b01429a5d695 |
line wrap: on
line diff
--- a/python/ppci/errors.py Sat May 25 15:15:42 2013 +0200 +++ b/python/ppci/errors.py Sun May 26 15:28:07 2013 +0200 @@ -4,11 +4,11 @@ """ class CompilerError(Exception): - def __init__(self, msg, loc): - self.msg = msg - self.loc = loc - def __repr__(self): - return 'Compilererror {0} at row {1}'.format(self.msg, self.loc.row) + def __init__(self, msg, loc): + self.msg = msg + self.loc = loc + def __repr__(self): + return 'Compilererror {0} at row {1}'.format(self.msg, self.loc.row) def printError(source, e): def printLine(row, txt):