public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Error repair in the C++ parser
@ 2005-07-27 19:41 Ziemowit Laski
  0 siblings, 0 replies; only message in thread
From: Ziemowit Laski @ 2005-07-27 19:41 UTC (permalink / raw)
  To: gcc list

I'm fixing a problem with ObjC++ going beserk upon encountering
a syntax error, specifically not finding a '{' at the beginning
of a method definition.  Is there a safe, established way of
repairing the token stream, i.e., inserting the '{' at that point?
That way, I could print an ObjC++-specific error message
(e.g., "missing `{' at beginning of Objective-C method definition"),
but then fix things up so that the generic C++ compound-statement
parsing logic doesn't get confused further.

Thanks in advance,

--Zem
--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-27 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27 19:41 Error repair in the C++ parser Ziemowit Laski

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).