Looking for a C parser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Looking for a C parser

Luc Fabresse
Hi all,

 I'm looking for a C parser (header files would be enough) to get an AST.
 I found the "CAnalyzer" project on squeaksource but tests are not green and it seems to be tight with an XML generator.

 Is there another projectt? something on the top of PetitParser?

Thanks,

#Luc

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Looking for a C parser

Alexandre Bergel
Arg, I will check CAnalyzer.
Parsing C is difficult. We use srcML to tranform C code into xml files,
way easier to load.

Cheers,
Alexandre



> Hi all,
>
>  I'm looking for a C parser (header files would be enough) to get an AST.
>  I found the "CAnalyzer" project on squeaksource but tests are not green
> and
> it seems to be tight with an XML generator.
>
>  Is there another projectt? something on the top of PetitParser?
>
> Thanks,
>
> #Luc
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Looking for a C parser

Dmitry Matveev
In reply to this post by Luc Fabresse
Hello Luc,

There is also a SmaCC project available on SqueakSource (http://www.squeaksource.com/SmaccDevelopment.html)

On "Downloads" section of its original home page (http://www.refactoryworkers.com/SmaCC/Download.html) there is a C Parser mentioned, but I assume that it is available for VW/Dolphin only.

Good luck!
Dmitry