| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # |
| 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 """ | 8 """ |
| 9 Responsible for generating the decoder based on parsed | 9 Responsible for generating the decoder based on parsed |
| 10 table representations. | 10 table representations. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 out.write(METHOD_DISPATCH % values) | 264 out.write(METHOD_DISPATCH % values) |
| 265 if row.action.__class__.__name__ == 'DecoderAction': | 265 if row.action.__class__.__name__ == 'DecoderAction': |
| 266 values['decoder'] = row.action.name | 266 values['decoder'] = row.action.name |
| 267 out.write(METHOD_DISPATCH_CLASS_DECODER % values) | 267 out.write(METHOD_DISPATCH_CLASS_DECODER % values) |
| 268 elif row.action.__class__.__name__ == 'DecoderMethod': | 268 elif row.action.__class__.__name__ == 'DecoderMethod': |
| 269 values['subtable_name'] = row.action.name | 269 values['subtable_name'] = row.action.name |
| 270 out.write(METHOD_DISPATCH_SUBMETHOD % values) | 270 out.write(METHOD_DISPATCH_SUBMETHOD % values) |
| 271 else: | 271 else: |
| 272 raise Exception('Bad table action: %s' % repr(row.action)) | 272 raise Exception('Bad table action: %s' % repr(row.action)) |
| 273 out.write(METHOD_FOOTER % values) | 273 out.write(METHOD_FOOTER % values) |
| OLD | NEW |