English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Best C parser to extend for Objective-C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-09-06 (20:56)
From: Joel Reymont <joelr1@g...>
Subject: Best C parser to extend for Objective-C
I made good progress recently with my Cocoa bridge for Lisp and I'm  
emboldened to start on the OCaml version. I would like to use a  
parser for header files to build wrappers for Cocoa classes by first  
building up the OCaml AST and then pretty-printing it.

I understand that there are ForkLift and CIL but it seems to me that  
FL is more for generating FFI wrappers whereas I just need a parser.  
I'm not familiar with CIL.

I want to grab a parser, add the Objective-C grammar and run the  
result over Cocoa headers. What would be the best parser code base to  
start with?

	Thanks, Joel