Le 22/11/2012 16:57, Igor Stasenko a écrit :
Very interesting topic and very userful. We could use C parser for automatic generation of FFI bindings to C libraries.
Yes, but... Someone who has a full C parser has a tendency to make that an asset, given how much it costs to do and maintain. Still, there are a few open solutions available: CLANG and maybe CIL. CLANG maybe the best bet, because it seems to be able to output the parsed AST in a neutral format. I spend some time looking at the CLANG source code a while back, but I didn't try the parse tree output. CLANG is a part of LLVM. CIL is used for parsing C in one of the CEA tools, Frama-C. It's in ocaml (and ocamlyacc).
On 22 November 2012 15:42, Goubier Thierry <thierry.goubier@cea.fr> wrote:
Hi all,
I'm looking for some help in parsing C files (and the opportunity to use Petit Parser (Parseur?)) so I'm looking for an internship candidate (Master level).
The objective is to do a C preprocessor with a targeted integration in an existing C parser, and, in particular, provide high-level information about applied macros/defines for the tokens provided to the C parser itself. Platform should be Pharo (2.0:)).
Place is Saclay, SW of Paris. The lab has a strong team on compilation tool chains for embedded manycores, from programming language design down to micro-kernel and mapping, and is able to select good interns for further work opportunities.
http://www.cea.fr/ressources-humaines/stages-et-formation-en-alternance/les-...
Regards,
Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95