From 91c673b37782d4cd90e5cf9a8e4491723e6c04bf Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 19 Jun 2020 14:44:54 -0700 Subject: fix: many small bug fixes with parser and lexer --- sys/cmd/rc/tree.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/cmd/rc/tree.c') diff --git a/sys/cmd/rc/tree.c b/sys/cmd/rc/tree.c index 8dca67f..14049e5 100644 --- a/sys/cmd/rc/tree.c +++ b/sys/cmd/rc/tree.c @@ -121,10 +121,10 @@ Tree* simplehang(Tree *t) { Tree *u; - t = tree1(Asimple, t); - for(u = t->child[0];u->type==Aargs;u=u->child[0]) { - if (u->child[1]->type==Adup - || u->child[1]->type==Aredir){ + t = tree1(Tsimple, t); + for(u = t->child[0];u->type==Targs;u=u->child[0]) { + if (u->child[1]->type==Tdup + || u->child[1]->type==Tredir){ u->child[1]->child[1] = t; t = u->child[1]; u->child[1] = nil; @@ -137,7 +137,7 @@ Tree* wordnode(char *w) { Tree *t = newtree(); - t->type = Aword; + t->type = Tword; t->str = strdup(w); return t; -- cgit v1.2.1