I want to design a source-to-source translator for C with clang.
Any info on which is the best place to start will be helpful.
Thanks,
Santosh
I want to design a source-to-source translator for C with clang.
Any info on which is the best place to start will be helpful.
Thanks,
Santosh
Start with the lib/Rewrite directory. Try a simple objc program and
run it with -rewrite-objc resulting in a c++ source. Try this.
@interface I @end
@implementation I @end