commit 5f00bd1fe7cfedcb46128ae8b92ff218307da155
parent 8d86e755638ff37a59db1dc95413818106d50c86
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 26 Sep 2017 13:45:52 +0100
[as] Add indirection operand to primary()
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/as/expr.c b/as/expr.c
@@ -298,6 +298,12 @@ primary(void)
np->sym = yylval.sym;
next();
break;
+ case '[':
+ next();
+ np = or();
+ expect(']');
+ np = node('@', np, NULL);
+ break;
case '(':
next();
np = or();