code: 9ferno

ref: 1de9b5a9c0d6ebb387ab840d27d1f62de689f781
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