4 # print-table.py: Print the function table for a webassembly .wast file
9 prefix
=" (elem (i32.const 1) "
12 print ("Usage: python print-table.py <path to mono.wast>")
15 f
= open (sys
.argv
[1])
19 table_line
= line
[len(prefix
):]
22 for (index
, v
) in enumerate (table_line
.split (" ")):
23 print ("" + str(index
) + ": " + v
)