ref: db6a88b11ded5bd3de7c6898e6ad08c6be74a45d
parent: d44f42589d20b1285bd9e155f54a1c2937f18583
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Sep 26 09:45:52 EDT 2017
[as] Add indirection operand to primary()
--- a/as/expr.c
+++ b/as/expr.c
@@ -298,6 +298,12 @@
np->sym = yylval.sym;
next();
break;
+ case '[':
+ next();
+ np = or();
+ expect(']');
+ np = node('@', np, NULL);
+ break;
case '(':
next();
np = or();