From 633e6598859fc5104bb28d5cccac845cb5d5198e Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Wed, 18 Jan 2017 20:12:49 -0600 Subject: nqasm: support binary arithmetic operators in immediate operands --- nqasm.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nqasm.h') diff --git a/nqasm.h b/nqasm.h index e5a7452..3e6ec72 100644 --- a/nqasm.h +++ b/nqasm.h @@ -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]; }; }; -- cgit v1.2.3