From: Vladimir Prus <vladimir@codesourcery.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH:doc] GDB/MI attribute names
Date: Mon, 28 Sep 2009 16:25:00 -0000 [thread overview]
Message-ID: <200909282025.42149.vladimir@codesourcery.com> (raw)
In-Reply-To: <19133.20072.645141.88398@totara.tehura.co.nz>
On Saturday 26 September 2009 Nick Roberts wrote:
> > ...I can guess what it
> > means but why are there three pairs of double quotes?
>
> I see why now. Perhaps something like:
>
> <fieldchar> ::== <letter> | <digit> | "_"
> <variable> ::== """ <letter> ( <fieldchar> )+ """
I would say it's better to inline 'fieldchar' inside 'variable' here, since
we're not using it elsewhere. E.g.:
variable ==> """ letter ( letter | digit | "_" ) * """
> I would prefer to use BNF as it seems quite widespread and I've not seen
>
> `COMMAND ==>'
> `CLI-COMMAND | MI-COMMAND'
>
> as a syntax anywhere else.
I'd suggest we first fix the direct problem that hand -- which is documenting
that field names may not use random characters. And for that, can we use the
syntax that is already used?
We can discuss global change of grammar notation. I don't have a well-formed
opinion about the specific characters used to express the grammar -- I
found the current one fairly clear, and the difference between :== and
==> seems insignificant.
- Volodya
next prev parent reply other threads:[~2009-09-28 16:25 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 10:04 Nick Roberts
2009-09-25 8:09 ` Eli Zaretskii
2009-09-25 10:55 ` Nick Roberts
2009-09-25 11:09 ` Vladimir Prus
2009-09-25 12:34 ` Nick Roberts
2009-09-25 12:53 ` Vladimir Prus
2009-09-25 13:19 ` Eli Zaretskii
2009-09-25 13:35 ` Vladimir Prus
2009-09-25 13:59 ` Eli Zaretskii
2009-09-25 14:15 ` Vladimir Prus
2009-09-25 15:54 ` Eli Zaretskii
2009-09-25 22:32 ` Nick Roberts
2009-09-25 23:12 ` Nick Roberts
2009-09-28 16:25 ` Vladimir Prus [this message]
2009-09-26 9:00 ` Eli Zaretskii
2009-09-25 13:13 ` Eli Zaretskii
2009-09-25 13:40 ` Vladimir Prus
2009-09-25 13:07 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909282025.42149.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nickrob@snap.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox