From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4fe319e8a983326a X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: C question (was: Ada & C) Date: 2000/01/16 Message-ID: #1/1 X-Deja-AN: 573614356 Sender: kst@king.cts.com References: <3878D189.80E1CCB4@gte.net> <387CE6DC.4DFDDFC4@ftw.rsc.raytheon.com> <85ipn5$7pu2@news.cis.okstate.edu> <85j3a5$r3p$1@nnrp1.deja.com> <85j4r7$9qe1@news.cis.okstate.edu> X-Trace: thoth.cts.com 948085059 26758 198.68.168.21 (17 Jan 2000 04:57:39 GMT) Organization: CTS Network Services Newsgroups: comp.lang.ada X-Complaints-To: newsmaster@cts.com Date: 2000-01-16T00:00:00+00:00 List-Id: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) writes: > On Wed, 12 Jan 2000 23:38:47 GMT, Ted Dennison wrote: > >> [c2ada not working well] > >Hmmm. This sounds like a good application for OpenToken. It currently > >only ships with Java and Ada syntaxes, but a C syntax shouldn't be too > >tough for someone with an ANSI C standard handy to cobble together. I > >actually thought C would be the *first* syntax someone submitted, but up > >to now no one seems to have been that interested in C. :-) > ANSI C's a bit of a bear to parse, or so I've heard. Indeed. The biggest problem is typedef names. When a typedef is in scope, the name of the typedef has to be treated as a distinct token, not as an identifier -- unless it's a new declaration of the same name. Thus you have to have feedback from the symbol table to the parser. Ick. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Welcome to the last year of the 20th century.