Mercurial > lcfOS
comparison python/ppci/c3/parser.py @ 334:6f4753202b9a
Added more recipes
author | Windel Bouwman |
---|---|
date | Thu, 13 Feb 2014 22:02:08 +0100 |
parents | 084cccaa5deb |
children | d1ecc493384e |
comparison
equal
deleted
inserted
replaced
333:dcae6574c974 | 334:6f4753202b9a |
---|---|
17 def __init__(self, diag): | 17 def __init__(self, diag): |
18 self.logger = logging.getLogger('c3') | 18 self.logger = logging.getLogger('c3') |
19 self.diag = diag | 19 self.diag = diag |
20 | 20 |
21 def parseSource(self, tokens): | 21 def parseSource(self, tokens): |
22 self.logger.info('Parsing source') | 22 self.logger.debug('Parsing source') |
23 self.tokens = tokens | 23 self.tokens = tokens |
24 self.token = self.tokens.__next__() | 24 self.token = self.tokens.__next__() |
25 try: | 25 try: |
26 self.parsePackage() | 26 self.parsePackage() |
27 self.mod.ok = True # Valid until proven wrong :) | 27 self.mod.ok = True # Valid until proven wrong :) |