Mercurial > lcfOS
diff python/c3/lexer.py @ 213:003c8a976fff
Merge of semantics and parser again ..
author | Windel Bouwman |
---|---|
date | Fri, 05 Jul 2013 11:18:48 +0200 |
parents | d77cb5962cc5 |
children | 848c4b15fd0b |
line wrap: on
line diff
--- a/python/c3/lexer.py Sun Jun 30 19:00:41 2013 +0200 +++ b/python/c3/lexer.py Fri Jul 05 11:18:48 2013 +0200 @@ -6,9 +6,10 @@ Lexical analyzer part. Splits the input character stream into tokens. """ -keywords = ['and', 'or', 'not','true', 'false', \ +keywords = ['and', 'or', 'not', 'true', 'false', \ 'else', 'if', 'while', 'return', \ 'function', 'var', 'type', 'const', \ + 'struct', \ 'import', 'package' ] def tokenize(s):