Mercurial > lcfOS
diff python/c3/lexer.py @ 152:b73bc14a3aa3
Light coupling ide and c3 frontend
author | Windel Bouwman |
---|---|
date | Sat, 02 Mar 2013 09:56:12 +0100 |
parents | 74241ca312cc |
children | 8104fc8b5e90 |
line wrap: on
line diff
--- a/python/c3/lexer.py Fri Mar 01 17:13:56 2013 +0100 +++ b/python/c3/lexer.py Sat Mar 02 09:56:12 2013 +0100 @@ -1,5 +1,6 @@ import collections, re -from ppci.errors import CompilerException, SourceLocation + +from ppci import CompilerError, SourceLocation """ Lexical analyzer part. Splits the input character stream into tokens. @@ -68,6 +69,6 @@ if pos != len(s): col = pos - line_start pos = line - raise CompilerException('Unexpected character {0}'.format(s[pos]), pos) + raise CompilerError('Unexpected character {0}'.format(s[pos]), pos) yield Token('END', '', line)