diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-26 09:44:47 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-26 09:44:47 -0700 |
commit | 094d3c76925cf6c05a8bfcc112849627d16279b8 (patch) | |
tree | 2ee67380e480241b8d89427493d794704783387e /sys/cmd/rc/code.c | |
parent | 3733507b090311b70ca8a2fed0c739b808f679c6 (diff) |
feat(rc): added index operations
Diffstat (limited to 'sys/cmd/rc/code.c')
-rw-r--r-- | sys/cmd/rc/code.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/cmd/rc/code.c b/sys/cmd/rc/code.c index bcc3d38..0723279 100644 --- a/sys/cmd/rc/code.c +++ b/sys/cmd/rc/code.c @@ -72,6 +72,14 @@ walk(Tree *node) emitf(Xjoin); break; + case Tindex: + emitf(Xmark); + walk(node->child[1]); + emitf(Xmark); + walk(node->child[0]); + emitf(Xindex); + break; + case ';': walk(node->child[0]); walk(node->child[1]); |