shithub: purgatorio

ref: c116550e6a41572796e4db65e4f6acbcb3d9d6f8
dir: /libinterp/mkoptab/

View raw version
rm -f optab.h
tr '[A-Z]' '[a-z]' <../include/isa.h >optab.h
ed optab.h <<'HERE'
1;/enum/c
void	(*optab[256])(void) =
.
/}/+1,$ d
,s/^[ 	]*i/	/g
1;/nop/s//badop/
1;/exit/s//i&/
1;/goto/s//i&/
1;/case/s//i&/
1;/load/s//i&/
1;/recv/s//i&/
1;/send/s//i&/
1;/raise/s//i&/
w
q
HERE