(argv)
| 1699 | |
| 1700 | |
| 1701 | def main(argv): |
| 1702 | for filename in argv[1:]: |
| 1703 | source = utils.ReadFile(filename) |
| 1704 | if source is None: |
| 1705 | continue |
| 1706 | |
| 1707 | print('Processing %s' % filename) |
| 1708 | builder = BuilderFromSource(source, filename) |
| 1709 | try: |
| 1710 | entire_ast = filter(None, builder.Generate()) |
| 1711 | except KeyboardInterrupt: |
| 1712 | return |
| 1713 | except: |
| 1714 | # Already printed a warning, print the traceback and continue. |
| 1715 | traceback.print_exc() |
| 1716 | else: |
| 1717 | if utils.DEBUG: |
| 1718 | for ast in entire_ast: |
| 1719 | print(ast) |
| 1720 | |
| 1721 | |
| 1722 | if __name__ == '__main__': |
no test coverage detected