Rich Lane | 96641df | 2013-06-10 13:36:35 -0700 | [diff] [blame] | 1 | :: from loxi_ir import * |
Rich Lane | a08c93d | 2013-10-01 21:04:50 -0700 | [diff] [blame^] | 2 | function ${name}(buf, subtree) |
Rich Lane | 96641df | 2013-06-10 13:36:35 -0700 | [diff] [blame] | 3 | :: for m in ofclass.members: |
4 | :: if isinstance(m, OFTypeMember): | ||||
5 | -- type ${m.name} | ||||
6 | :: elif isinstance(m, OFDataMember): | ||||
7 | -- data ${m.name} | ||||
8 | :: elif isinstance(m, OFLengthMember): | ||||
9 | -- length ${m.name} | ||||
10 | :: elif isinstance(m, OFPadMember): | ||||
11 | -- pad | ||||
12 | :: #endif | ||||
13 | :: #endfor | ||||
14 | end | ||||
15 |