ocaml/tools/make-opcodes

3 lines
102 B
Plaintext
Raw Normal View History

$1=="enum" {n=0; next; }
{for (i = 1; i <= NF; i++) {printf("let op%s = %d\n", $i, n++);}}