OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 """Simple testing utility to just run the mojom parser.""" | 6 """Simple testing utility to just run the mojom parser.""" |
7 | 7 |
8 | 8 |
9 import os.path | 9 import os.path |
10 import sys | 10 import sys |
(...skipping 16 matching lines...) Expand all Loading... |
27 print Parse(f.read(), filename) | 27 print Parse(f.read(), filename) |
28 except ParseError, e: | 28 except ParseError, e: |
29 print e | 29 print e |
30 return 1 | 30 return 1 |
31 | 31 |
32 return 0 | 32 return 0 |
33 | 33 |
34 | 34 |
35 if __name__ == '__main__': | 35 if __name__ == '__main__': |
36 sys.exit(main(sys.argv)) | 36 sys.exit(main(sys.argv)) |
OLD | NEW |