Mercurial > lcfOS
diff python/ppci/c3/parser.py @ 311:ff665880a6b0
Added testcase for kernel and userspace
author | Windel Bouwman |
---|---|
date | Mon, 16 Dec 2013 12:49:24 +0100 |
parents | 2e7f55319858 |
children | 04cf4d26a3bc |
line wrap: on
line diff
--- a/python/ppci/c3/parser.py Fri Dec 13 14:10:10 2013 +0100 +++ b/python/ppci/c3/parser.py Mon Dec 16 12:49:24 2013 +0100 @@ -386,6 +386,9 @@ elif self.Peak == 'false': val = self.Consume('false') return Literal(False, val.loc) + elif self.Peak == 'STRING': + val = self.Consume('STRING') + return Literal(val.val, val.loc) elif self.Peak == 'ID': return self.parseDesignator() self.Error('Expected NUM, ID or (expr), got {0}'.format(self.Peak))