Mercurial > lcfOS
diff python/ppci/c3/lexer.py @ 353:b8ad45b3a573
Started with strings
author | Windel Bouwman |
---|---|
date | Sun, 09 Mar 2014 18:49:10 +0100 |
parents | 44f336460c2a |
children | 173e20a47fda |
line wrap: on
line diff
--- a/python/ppci/c3/lexer.py Sun Mar 09 11:55:55 2014 +0100 +++ b/python/ppci/c3/lexer.py Sun Mar 09 18:49:10 2014 +0100 @@ -45,7 +45,7 @@ ('LONGCOMMENTBEGIN', r'\/\*'), ('LONGCOMMENTEND', r'\*\/'), ('LEESTEKEN', r'==|->|<<|>>|!=|\+\+|[\.,=:;\-+*\[\]/\(\)]|>=|<=|<>|>|<|{|}|&|\^|\|'), - ('STRING', r"'.*?'") + ('STRING', r'".*?"') ] tok_re = '|'.join('(?P<%s>%s)' % pair for pair in tok_spec) gettok = re.compile(tok_re).match