Mercurial > lcfOS
diff python/ppci/c3/lexer.py @ 306:b145f8e6050b
Start on c3 rewrite
author | Windel Bouwman |
---|---|
date | Mon, 09 Dec 2013 19:00:21 +0100 |
parents | 0615b5308710 |
children | 084cccaa5deb |
line wrap: on
line diff
--- a/python/ppci/c3/lexer.py Fri Dec 06 13:50:38 2013 +0100 +++ b/python/ppci/c3/lexer.py Mon Dec 09 19:00:21 2013 +0100 @@ -19,6 +19,9 @@ def __init__(self, diag): self.diag = diag + def lex(self, source): + return self.tokenize(source) + def tokenize(self, input_file): """ Tokenizer, generates an iterator that