OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # | |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # 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 |
5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
6 | 5 |
7 import sys | 6 import sys |
8 | 7 |
9 from idl_log import ErrOut, InfoOut, WarnOut | 8 from idl_log import ErrOut, InfoOut, WarnOut |
10 from idl_option import GetOption, Option, ParseOptions | 9 from idl_option import GetOption, Option, ParseOptions |
11 from idl_parser import ParseFiles | 10 from idl_parser import ParseFiles |
12 | 11 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 if not args: return Test() | 254 if not args: return Test() |
256 filenames = ParseOptions(args) | 255 filenames = ParseOptions(args) |
257 ast = ParseFiles(filenames) | 256 ast = ParseFiles(filenames) |
258 | 257 |
259 return Generator.Run(ast) | 258 return Generator.Run(ast) |
260 | 259 |
261 | 260 |
262 if __name__ == '__main__': | 261 if __name__ == '__main__': |
263 GeneratorReleaseTest('Test Gen', 'testgen', 'Generator Class Test.') | 262 GeneratorReleaseTest('Test Gen', 'testgen', 'Generator Class Test.') |
264 sys.exit(Main(sys.argv[1:])) | 263 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |