public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Rewrite the Rust expression parser
@ 2021-03-12  2:46 Tom Tromey
  2021-03-12  2:46 ` [PATCH 1/2] Fix syntax error in Rust test Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Tromey @ 2021-03-12  2:46 UTC (permalink / raw)
  To: gdb-patches

I've long regretted writing the Rust expression parser using yacc, and
recent changes gave me an excuse to redo it.  I think generally gdb
would be improved by using recursive descent parsers rather than yacc,
though I don't have plans to do this for anything else.

This parser is pretty similar to the Rust expression parser I wrote
for lldb.  I didn't reuse any code, but I did use the same basic
ideas, in particular the operator precedence parsing for binary
operators.  I think this one is more complete, though I no longer
recall what was missing from that one; maybe tuple struct expressions
or struct expressions?

Let me know what you think.

Tom



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-16 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12  2:46 [PATCH 0/2] Rewrite the Rust expression parser Tom Tromey
2021-03-12  2:46 ` [PATCH 1/2] Fix syntax error in Rust test Tom Tromey
2021-03-12  2:46 ` [PATCH 2/2] Rewrite the Rust expression parser Tom Tromey
2021-04-16 23:12 ` [PATCH 0/2] " Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).