| OLD | NEW |
| 1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import itertools | 6 import itertools |
| 7 import json | 7 import json |
| 8 import os.path | 8 import os.path |
| 9 import re | 9 import re |
| 10 import sys | 10 import sys |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 ''' | 373 ''' |
| 374 Dump a json serialization of parse result for the IDL files whose names | 374 Dump a json serialization of parse result for the IDL files whose names |
| 375 were passed in on the command line. | 375 were passed in on the command line. |
| 376 ''' | 376 ''' |
| 377 for filename in sys.argv[1:]: | 377 for filename in sys.argv[1:]: |
| 378 schema = Load(filename) | 378 schema = Load(filename) |
| 379 print json.dumps(schema, indent=2) | 379 print json.dumps(schema, indent=2) |
| 380 | 380 |
| 381 if __name__ == '__main__': | 381 if __name__ == '__main__': |
| 382 Main() | 382 Main() |
| OLD | NEW |