From: Bob Rossi <bob@brasko.net>
To: Michael Chastain <mec.gnu@mindspring.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB/MI Output Syntax
Date: Wed, 25 Aug 2004 19:37:00 -0000 [thread overview]
Message-ID: <20040825193659.GA19945@white> (raw)
In-Reply-To: <412CB6B6.nail1DX11BPYQ@mindspring.com>
On Wed, Aug 25, 2004 at 11:56:38AM -0400, Michael Chastain wrote:
> Bob Rossi <bob@brasko.net> wrote:
> > Does this sound reasonable? and again, should I post a new grammar with
> > the new lines moved to the 'output' production and with the changes I
> > have above?
>
> I'd love to see your grammar posted.
OK, here is what I have so far. It's pretty simple. Besides from
changing the grammar on the documentation to a lower level BNF form I
have made 3 modifications.
1. move the 'nl' up as high as it can go.
2. reduce the async_record
3. reduce the stream_record
so far, it seems to parse everything I throw at it. However, I haven't
tested it to much because I am building an intermediate representation.
This is what I'll use from the front end.
It would probably be helpful to post the grammar the way I have it, or
some slight modification of it instead or on top of what's on the
website now.
output -> oob_record_list opt_result_record "(gdb)" nl
oob_record_list -> oob_record_list oob_record nl | epsilon
opt_result_record -> result_record nl | epsilon
result_record -> opt_token "^" result_class result_list_prime
oob_record -> async_record | stream_record
async_record -> opt_token async_record_class async_output
async_record_class -> "*" | "+" | "="
async_output -> async_class result_list_prime
result_class -> "done" | "running" | "connected" | "error" | "exit"
async_class -> "stopped"
result_list_prime -> result_list | epsilon
result_list -> result_list "," result | "," result
result -> variable "=" value
variable -> string
value_list_prime -> value_list | epsilon
value_list -> value_list "," value | "," value
value -> c_string | tuple | list
tuple -> "{}" | "{" result result_list_prime "}"
list -> "[]" | "[" value value_list_prime "]" | "[" result result_list_prime "]"
stream_record -> stream_record_class c_string
stream_record_class -> "~" | "@" | "&"
nl -> CR | CR_LF
opt_token -> token | epsilon
token -> any sequence of digits.
Thanks,
Bob Rossi
next prev parent reply other threads:[~2004-08-25 19:37 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-25 15:44 Bob Rossi
2004-08-25 15:57 ` Michael Chastain
2004-08-25 19:37 ` Bob Rossi [this message]
2004-08-26 14:01 ` Michael Chastain
2004-08-26 18:31 ` Bob Rossi
2004-08-26 20:44 ` Michael Chastain
2004-08-26 20:52 ` Keith Seitz
2004-08-26 22:16 ` Michael Chastain
2004-08-26 22:03 ` Bob Rossi
2004-08-26 23:06 ` Michael Chastain
2004-08-26 21:13 ` Andrew Cagney
2004-08-26 21:25 ` Bob Rossi
2004-08-26 22:46 ` Michael Chastain
2004-08-27 10:14 ` Eli Zaretskii
2004-08-26 22:41 ` Michael Chastain
-- strict thread matches above, loose matches on Subject: below --
2005-01-06 0:28 Paul Schlie
2005-01-06 0:32 ` Kip Macy
2005-01-06 0:49 ` Paul Schlie
2005-01-06 1:10 ` Bob Rossi
2005-01-06 1:36 ` Paul Schlie
[not found] <1093622671.2836.ezmlm@sources.redhat.com>
2004-08-27 17:56 ` Jim Ingham
2004-08-27 19:12 ` Michael Chastain
2005-01-05 23:27 ` Bob Rossi
2005-01-06 4:48 ` Eli Zaretskii
2005-01-06 23:31 ` Bob Rossi
2005-01-07 0:36 ` Jim Ingham
2005-01-07 1:12 ` Bob Rossi
2005-01-07 3:12 ` Russell Shaw
2005-01-11 19:35 ` Bob Rossi
2005-01-13 2:23 ` Bob Rossi
2004-08-24 3:12 Bob Rossi
2004-08-24 4:15 ` Michael Chastain
2004-08-24 12:30 ` Bob Rossi
2004-08-24 12:50 ` Michael Chastain
2004-08-24 18:59 ` Andrew Cagney
2004-08-24 19:07 ` Bob Rossi
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=20040825193659.GA19945@white \
--to=bob@brasko.net \
--cc=gdb@sources.redhat.com \
--cc=mec.gnu@mindspring.com \
/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