From 79fb5e6be113678d4ef0349d2e584f219e567426 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 21 Oct 2021 12:02:14 -0700 Subject: feat(rc): string join operator --- sys/cmd/rc/parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/cmd/rc/parse.c') diff --git a/sys/cmd/rc/parse.c b/sys/cmd/rc/parse.c index 731c244..d1909a5 100644 --- a/sys/cmd/rc/parse.c +++ b/sys/cmd/rc/parse.c @@ -127,7 +127,7 @@ enum yysymbol_kind_t YYSYMBOL_22_ = 22, /* '^' */ YYSYMBOL_23_ = 23, /* '$' */ YYSYMBOL_Tcount = 24, /* Tcount */ - YYSYMBOL_Tflat = 25, /* Tflat */ + YYSYMBOL_Tjoin = 25, /* Tjoin */ YYSYMBOL_26_ = 26, /* '(' */ YYSYMBOL_27_ = 27, /* ')' */ YYSYMBOL_28_ = 28, /* '{' */ @@ -567,7 +567,7 @@ static const char *const yytname[] = "\"end of file\"", "error", "\"invalid token\"", "Tword", "Twords", "Tif", "Telse", "Tbang", "Tsubshell", "Toror", "Tandand", "There", "Tredir", "Tpipe", "Tdup", "Tbasic", "Tparen", "Tblock", "Targs", - "Tindex", "Twhile", "'\\n'", "'^'", "'$'", "Tcount", "Tflat", "'('", + "Tindex", "Twhile", "'\\n'", "'^'", "'$'", "Tcount", "Tjoin", "'('", "')'", "'{'", "'}'", "';'", "'&'", "'='", "$accept", "rc", "line", "body", "paren", "block", "cmds", "cmdsln", "ifbody", "assign", "redir", "epilog", "cmd", "basic", "atom", "word", "executable", "nonkeyword", @@ -1625,9 +1625,9 @@ yyreduce: #line 1626 "sys/cmd/rc/parse.c" break; - case 43: /* nonkeyword: Tflat atom */ + case 43: /* nonkeyword: Tjoin atom */ #line 111 "sys/cmd/rc/syntax.y" - { (yyval.tree) = maketree1(Tflat, (yyvsp[0].tree)); } + { (yyval.tree) = maketree1(Tjoin, (yyvsp[0].tree)); } #line 1632 "sys/cmd/rc/parse.c" break; -- cgit v1.2.1