summaryrefslogtreecommitdiffstats
path: root/genvmop.txr
blob: 3149e4b86044f3ab82bca20edca3c403f52d26f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@(in-package :sys)
@(mdo (find-struct-type 'assembler))
@(bind oc @(keep-if .code %oc-list%))
@(next "vm.h")
@(collect)
@{copyright}
@(until)

@(end)
@(output "vmop.h")
@{copyright "\n"}

typedef enum vm_op {
@  (repeat :vars (oc))
  @{oc.symbol :filter :upcase} = @{oc.code},
@  (end)
} vm_op_t;
@(end)