1# Future self: the vertical bar is being used here as a delimiter in
2# the input file, not in the usual alternate-choice regex meaning.
3/^##/d
4s/^# \(.*\)/  { 0, 0, "\1", NULL, },/
5s/^#W \(.*\)/  { 0, 0, NULL, "\1" },/
6s/\([^|]*\)|\([^|]*\)|\([^|]*\)|\([^|]*\)|\(.*\)/  { \1, \2, "\3", "\4", \5 },/
7s/\\/\\\\/g
8s/
9/\\r/g
10