Mercurial > lcfOS
diff python/zcc.py @ 289:bd2593de3ff8
Semifix burn2
author | Windel Bouwman |
---|---|
date | Thu, 21 Nov 2013 15:46:50 +0100 |
parents | a747a45dcd78 |
children | 7b38782ed496 |
line wrap: on
line diff
--- a/python/zcc.py Thu Nov 21 14:26:13 2013 +0100 +++ b/python/zcc.py Thu Nov 21 15:46:50 2013 +0100 @@ -12,14 +12,17 @@ import outstream import hexfile + logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s' + def logLevel(s): numeric_level = getattr(logging, s.upper(), None) if not isinstance(numeric_level, int): raise ValueError('Invalid log level: {}'.format(s)) return numeric_level + # Parse arguments: parser = argparse.ArgumentParser(description='lcfos Compiler') # Input: @@ -51,7 +54,7 @@ # Optimization passes: optimize(ircode) - + if dumpir: ircode.dump()