pycparser (http://code.google.com/p/pycparser/) is a complete parser
for ANSI C89/90, parsing C into ASTs you can use for any processing.

pycparser has been already used by several people to parse real-life C
code.

Eli


On Mar 21, 5:37 am, Lee <[email protected]> wrote:
> Hi all,
>
>    I am new to this forum. I am wondering if any one know of any
> existing ply package, or some ply examples for parsing c programs?
>
>    I would like to build a basic c interpreter/compiler using python,
> to handle basic c constructs, such as function-declarations, while-
> loops, for-loops, switch-statements, etc..
>
>    Would anyone suggest or recommend any other python package besides
> ply for this purpose?
>
>    Any pointers will be greatly appreciated.
>
> Thanks in advanced.
>
> Lee
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to