From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QWOzd-0006Ip-4O for garchives@archives.gentoo.org; Tue, 14 Jun 2011 08:29:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E6DE1C028; Tue, 14 Jun 2011 08:28:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A2C11C028 for ; Tue, 14 Jun 2011 08:28:48 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 75D181B4015 for ; Tue, 14 Jun 2011 08:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id BB9E88003C for ; Tue, 14 Jun 2011 08:28:46 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <42eb1d5a0261113e2f14786d1678cc0631c1e9a9.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: bashast/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/bashast.g X-VCS-Directories: bashast/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 42eb1d5a0261113e2f14786d1678cc0631c1e9a9 Date: Tue, 14 Jun 2011 08:28:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2eaa9a5d8feb327937a265ef91ad0eeb commit: 42eb1d5a0261113e2f14786d1678cc0631c1e9a9 Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Sat Jun 11 11:20:07 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Sat Jun 11 11:20:07 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D42eb1d5a Parser: remove redundant case_pattern rule --- bashast/bashast.g | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index fde2c7e..17e8fbb 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -222,12 +222,8 @@ case_expr case_body : case_stmt (wspace* DOUBLE_SEMIC case_stmt)* wspace* DOUBLE_SEMIC? wsp= ace* -> case_stmt*; case_stmt - : wspace* (LPAREN BLANK*)? case_pattern (BLANK* PIPE BLANK? case_patter= n)* BLANK* RPAREN (wspace* clist)? - -> ^(CASE_PATTERN case_pattern+ (CASE_COMMAND clist)?); -case_pattern - : command_sub - | fname - | TIMES; + : wspace* (LPAREN BLANK*)? fname (BLANK* PIPE BLANK? fname)* BLANK* RPA= REN (wspace* clist)? + -> ^(CASE_PATTERN fname+ (CASE_COMMAND clist)?); //A grouping of commands executed in a subshell subshell: LPAREN wspace? clist (BLANK* SEMIC)? (BLANK* EOL)* BLANK* RPAR= EN redirect? -> ^(SUBSHELL clist redirect?); //A grouping of commands executed in the current shell