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 1Q8ReE-0004ix-Me for garchives@archives.gentoo.org; Sat, 09 Apr 2011 06:27:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D416E1C01B; Sat, 9 Apr 2011 06:27:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A513A1C019 for ; Sat, 9 Apr 2011 06:27:37 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 26FC11B4057 for ; Sat, 9 Apr 2011 06:27:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2665780074 for ; Sat, 9 Apr 2011 06:27:36 +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: <3804bbb3116fbf4b81bf86e8c94f1cec7896610d.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: 3804bbb3116fbf4b81bf86e8c94f1cec7896610d Date: Sat, 9 Apr 2011 06:27:36 +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: c8e714d0d4437f6e783d5d0cf74cf786 commit: 3804bbb3116fbf4b81bf86e8c94f1cec7896610d Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Fri Apr 8 15:11:36 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Sat Apr 9 06:13:52 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D3804bbb3 Small readability fixes --- bashast/bashast.g | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index 0580b26..2b4e713 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -228,7 +228,7 @@ value : num //allow the parser to create array variables arr_val : | (ag+=3Dval wspace?)+ -> ^(ARRAY $ag+); -val : '['!BLANK!*var_index BLANK!?']'!EQUALS^ pos_val +val : LSQUARE! BLANK!* var_index BLANK!? RSQUARE! EQUALS^ pos_val | pos_val; pos_val : command_sub | var_ref @@ -467,7 +467,7 @@ negation exponential : negation (BLANK!* EXP^ BLANK!* negation)* ; times_division_modulus - : exponential (BLANK!*(TIMES^|SLASH^|PCT^)BLANK!* exponential)*; + : exponential (BLANK!* (TIMES^|SLASH^|PCT^) BLANK!* exponential)*; addsub : times_division_modulus (BLANK!* (PLUS^|MINUS^)BLANK!* times_div= ision_modulus)*; shifts : addsub (BLANK!* (LSHIFT^|RSHIFT^) BLANK!* addsub)*; compare : shifts (BLANK!* (LEQ^|GEQ^|LESS_THAN^|GREATER_THAN^)BLANK!* sh= ifts)?;