From f2efbb46ef89c7c1693400f7209113c50c959f02 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 13 Oct 2021 10:51:54 -0700 Subject: Feat(rc): working(ish) version of rc shell Removed compile commands --- sys/cmd/rc/syn.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/cmd/rc/syn.y') diff --git a/sys/cmd/rc/syn.y b/sys/cmd/rc/syn.y index c7de353..3af3254 100644 --- a/sys/cmd/rc/syn.y +++ b/sys/cmd/rc/syn.y @@ -14,7 +14,7 @@ #include "fns.h" %} %union{ - struct tree *tree; + struct Tree *tree; }; %type line paren brace body cmdsa cmdsan assign epilog redir %type cmd simple first word comword keyword words @@ -54,7 +54,7 @@ cmd: {$$=0;} */ {$$=mung3($1, $3, $5 ? $5 : tree1(PAREN, $5), $8);} | FOR '(' word ')' {skipnl();} cmd - {$$=mung3($1, $3, (struct tree *)0, $6);} + {$$=mung3($1, $3, (struct Tree *)0, $6);} | WHILE paren {skipnl();} cmd {$$=mung2($1, $2, $4);} | SWITCH word {skipnl();} brace @@ -87,5 +87,5 @@ comword: '$' word {$$=tree1('$', $2);} | '(' words ')' {$$=tree1(PAREN, $2);} | REDIR brace {$$=mung1($1, $2); $$->type=PIPEFD;} keyword: FOR|IN|WHILE|IF|NOT|TWIDDLE|BANG|SUBSHELL|SWITCH|FN -words: {$$=(struct tree*)0;} +words: {$$=(struct Tree*)0;} | words word {$$=tree2(WORDS, $1, $2);} -- cgit v1.2.1