Errr, he doesn&#x27;t even need to use ANTLR, he can use clang, as a library. It can be linked into an app, has a nice AST, and matching abilities:<p><a href="http:&#x2F;&#x2F;clang.llvm.org&#x2F;docs&#x2F;LibASTMatchersReference.html" rel="nofollow">http:&#x2F;&#x2F;clang.llvm.org&#x2F;docs&#x2F;LibASTMatchersReference.html</a><p>Now he has the actual compiler doing the work for him.