|
From: | Helge Hess |
Subject: | Re: Light-weight GNUstep distribution |
Date: | Tue, 11 Mar 2003 19:07:02 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030302 |
Alexander Malmberg wrote:
Problem is, that to write such a preprocessor you need to implement a full ANSI-C parser which is not exactly trivial ... Maybe one could use LCC as a basis.FWIW, I once wrote a mostly complete c parser using gsantlr (it should handle all the interesting, ie. tricky, parts :). Adapting it to work as a preprocessor probably wouldn't be very difficult. If anyone is seriously interested in doing this, I could clean it up a bit and make it available.
Oh, you are right. ANTLR actually provides a full GNU C parser by itself: http://www.antlr.org/grammars/cgram It's probably not too difficult to extend that to Objective-C, I'm not sure. Helge -- __________________________________________________________________ Helge Hess Email: helge.hess@skyrix.com SKYRIX Software AG Tel: +49-391-6623-0 Universitaetsplatz 12 Fax: +49-391-6623-599 39104 Magdeburg, Germany Internet: http://www.skyrix.com __________________________________________________________________ Visit us at CeBIT 2003 in Hannover - hall 4 booth G77 __________________________________________________________________
[Prev in Thread] | Current Thread | [Next in Thread] |