OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env 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 # Copyright 2012, Google Inc. | 6 # Copyright 2012, Google Inc. |
7 # | 7 # |
8 | 8 |
9 """Decoder Generator script. | 9 """Decoder Generator script. |
10 | 10 |
11 Usage: generate-decoder.py <table-file> <output-cc-file> | 11 Usage: generate-decoder.py <table-file> <output-cc-file> |
(...skipping 21 matching lines...) Expand all Loading... |
33 f = open(output_filename, 'w') | 33 f = open(output_filename, 'w') |
34 dgen_output.generate_decoder(tables, | 34 dgen_output.generate_decoder(tables, |
35 dgen_output.COutput(f)) | 35 dgen_output.COutput(f)) |
36 f.close() | 36 f.close() |
37 print "Completed." | 37 print "Completed." |
38 | 38 |
39 return 0 | 39 return 0 |
40 | 40 |
41 if __name__ == '__main__': | 41 if __name__ == '__main__': |
42 sys.exit(main(sys.argv)) | 42 sys.exit(main(sys.argv)) |
OLD | NEW |