[antlr-interest] build AST from C file

silverhand31 silverhand31 at yahoo.com
Thu May 10 20:16:13 PDT 2012


I looked into the list of Grammar List
Tried some C.g and CPP.g but I can't find any grammar that help me convert C
file to an AST.
I need that in java so I could walk through the AST and rewrite it in
another language.
Could you post some C.g that I could use ANTLR to convert them in to
tokens,parser,lexer file?
Thanks a lot.
Currently I use ANSI C grammar for ANTLR v3 but I can't not make it run in
my java project?

--
View this message in context: http://antlr.1301665.n2.nabble.com/build-AST-from-C-file-tp7549013.html
Sent from the ANTLR mailing list archive at Nabble.com.


More information about the antlr-interest mailing list