From: Keith Seitz <keiths@redhat.com>
To: Project Archer <archer@sourceware.org>
Subject: Re: Parser rewritting
Date: Tue, 30 Mar 2010 22:20:00 -0000 [thread overview]
Message-ID: <4BB27911.9020000@redhat.com> (raw)
In-Reply-To: <m38w99v78x.fsf@fleche.redhat.com>
On 03/30/2010 02:18 PM, Tom Tromey wrote:
> Also, there is no good way in bison to disable a production only when
> the parsing language is C++. You can play games by returning different
> tokens in different modes, or you can run a preprocessor on the grammar,
> but both of those are pretty ugly.
Do we really need to worry about C vs C++? How dangerous would it be to
simply assume C++? [I know there is a subtle difference between the two,
I just wonder whether it would matter that much in usage to warrant
treating the two differently/independently.]
I also worry more about three other areas that might influence
design/implementation decisions:
1) Java? Okay, we could probably work around this by using the current
parser for java (ick!) [Do we even consider adding java to the mix worth
it? I don't, but that's just my opinion...]
2) Linespec re-evaluation: Let's face it, a number of us have had to
deal with problems in linespec.c, and we all know it's a nightmare.
Anyone (else) interested in moving to expressions-based linespec processing?
3) Symbol table cleanups: I get a sinking feeling that the symbol table
API may need some work before any attempt at writing a new parser my be
started.
Specifically, when a symbol lookup happens, we should get ALL matching
symbols, not just the first one found. [Maybe that's just me?] I know
this was a constant barricade when trying to implement overload
resolution in the parser. And to this day, we cannot implement overload
resolution on a non-class function. A nice side-effect of this: it would
help with symbol completion.
Heck, I might even just settle for something that says there are
multiple matches...
Keith
next prev parent reply other threads:[~2010-03-30 22:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 18:46 Sergio Durigan Junior
2010-03-30 19:05 ` Chris Moller
2010-03-30 21:12 ` Tom Tromey
2010-04-04 8:50 ` Dodji Seketeli
2010-04-08 19:28 ` Tom Tromey
2010-04-10 22:05 ` Jim Blandy
2010-04-10 22:11 ` Jim Blandy
2010-03-30 21:18 ` Tom Tromey
2010-03-30 22:20 ` Keith Seitz [this message]
2010-03-30 22:59 ` Tom Tromey
2010-03-31 2:01 ` Matt Rice
2010-04-02 1:50 ` Chris Moller
2010-04-08 19:21 ` Tom Tromey
2010-04-08 20:21 ` Chris Moller
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=4BB27911.9020000@redhat.com \
--to=keiths@redhat.com \
--cc=archer@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).