C parser

89 views
Skip to first unread message

Jonathan Friedman

unread,
Aug 22, 2012, 10:12:44 AM8/22/12
to treet...@googlegroups.com
I'm writing a C to C# translator in ruby, and was wondering if anyone had a spare implementation of the C or C++ grammar sitting around?

Thanks, 
Jon

Clifford Heath

unread,
Aug 22, 2012, 4:58:45 PM8/22/12
to treet...@googlegroups.com
On 23/08/2012, at 12:12 AM, Jonathan Friedman wrote:
> I'm writing a C to C# translator in ruby, and was wondering if anyone had a spare implementation of the C or C++ grammar sitting around?

I haven't heard of one, but there are many other PEG-based parser generators,
and they all have published applications which could be translated more-or-less
easily into Treetop. If you don't find what you want already done in Treetop, try
a wider search.

Clifford Heath.

Tim Sally

unread,
Sep 28, 2012, 2:32:09 PM9/28/12
to treet...@googlegroups.com
I'm currently working on a grammar for C, but I doubt it's complete enough yet for your needs. Still, you may find something useful: https://github.com/tsally/cparser.

Tim
Reply all
Reply to author
Forward
0 new messages