OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright 2012 The Native Client Authors. All rights reserved. | 3 # Copyright 2012 The Native Client Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can | 4 # Use of this source code is governed by a BSD-style license that can |
5 # be found in the LICENSE file. | 5 # be found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 """Decoder Generator script. | 8 """Decoder Generator script. |
9 | 9 |
10 Usage: generate-decoder.py <table-file> <output-cc-file> <decoder-name> | 10 Usage: generate-decoder.py <table-file> <output-cc-file> <decoder-name> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 decoder, decoder_name, _localize_filename(output_filename), f) | 70 decoder, decoder_name, _localize_filename(output_filename), f) |
71 else: | 71 else: |
72 print 'Error: output filename not of form "*.{h,cc}"' | 72 print 'Error: output filename not of form "*.{h,cc}"' |
73 f.close() | 73 f.close() |
74 print "Completed." | 74 print "Completed." |
75 | 75 |
76 return 0 | 76 return 0 |
77 | 77 |
78 if __name__ == '__main__': | 78 if __name__ == '__main__': |
79 sys.exit(main(sys.argv)) | 79 sys.exit(main(sys.argv)) |
OLD | NEW |