diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-18 20:12:49 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-18 20:21:17 -0600 |
commit | 633e6598859fc5104bb28d5cccac845cb5d5198e (patch) | |
tree | 575e9343507673d3f515993ee636e602c3d33182 /nqasm.h | |
parent | 6c6b91f9a6bc5ae203e99ac7abb3a70215488a6f (diff) |
nqasm: support binary arithmetic operators in immediate operands
Diffstat (limited to 'nqasm.h')
-rw-r--r-- | nqasm.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -10,6 +10,11 @@ enum { ARG_UNARY_SUB, ARG_UNARY_NOT, ARG_UNARY_INV, + + ARG_ADD, + ARG_SUB, + ARG_MUL, + ARG_DIV, }; struct argument { @@ -17,7 +22,7 @@ struct argument { union { long value; char *label; - const struct argument *children[1]; + const struct argument *children[2]; }; }; |