Mercurial > lcfOS
diff python/c3/semantics.py @ 152:b73bc14a3aa3
Light coupling ide and c3 frontend
author | Windel Bouwman |
---|---|
date | Sat, 02 Mar 2013 09:56:12 +0100 |
parents | 4ae0e02599de |
children | 8104fc8b5e90 |
line wrap: on
line diff
--- a/python/c3/semantics.py Fri Mar 01 17:13:56 2013 +0100 +++ b/python/c3/semantics.py Sat Mar 02 09:56:12 2013 +0100 @@ -1,6 +1,5 @@ from . import astnodes from .scope import Scope, topScope -from ppci.errors import CompilerException class Semantics: """ This class constructs the AST from parser input """ @@ -9,7 +8,7 @@ def addSymbol(self, s): if self.curScope.hasSymbol(s.name): msg = 'Redefinition of {0}'.format(s.name) - self.diag.diag(CompilerException(msg, s.loc)) + self.diag.error(msg, s.loc) else: self.curScope.addSymbol(s) def handlePackage(self, name, loc):