From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14199 invoked by alias); 25 Sep 2009 22:32:00 -0000 Received: (qmail 14187 invoked by uid 22791); 25 Sep 2009 22:31:57 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx.southnet.co.nz (HELO viper.snap.net.nz) (202.37.101.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Sep 2009 22:31:50 +0000 Received: from totara (67.29.255.123.dynamic.snap.net.nz [123.255.29.67]) by viper.snap.net.nz (Postfix) with ESMTP id 9D73C3D9D92; Sat, 26 Sep 2009 10:31:47 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 13A02C167; Sat, 26 Sep 2009 10:31:42 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19133.17613.991722.489023@totara.tehura.co.nz> Date: Fri, 25 Sep 2009 22:32:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH:doc] GDB/MI attribute names In-Reply-To: References: <19131.17428.428101.481874@totara.tehura.co.nz> <19132.47302.194071.325914@totara.tehura.co.nz> <83ocoztb7v.fsf@gnu.org> <83ljk3t9e2.fsf@gnu.org> From: nickrob@snap.net.nz (Nick Roberts) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00825.txt.bz2 > I have already suggested: > > string ==> > """ ( letter | digit | "_" ) * """ > > This at least uses a terminology that is already used in the > manual. This could drag on and I guess the above is adequate for the case under discussion but I don't understand the existing syntax. I can guess what it means but why are there three pairs of double quotes? When inserted into info it all gets enclosed in further single quotes. The usual meaning of `string' gets re-defined and * means 0 or more, so the empty string would be valid. Also we probably don't want a field name to start with a digit. Current names don't use digits at all and my initial proposal was not to include them in the specification. I don't see this combination of grouping and alternatives elsewhere and in BNF maybe it should look something like: ::== | | "_" ::== + -- Nick http://users.snap.net.nz/~nickrob