[LLVMdev] Can I modify C syntax by using Clang and LLVM?
Chris Lattner
clattner at apple.com
Wed Sep 30 08:13:59 PDT 2009
On Sep 29, 2009, at 6:58 PM, Charlie Li wrote:
> I want to add command line (shell) like statement to C is it
> possible to implement this syntax by clang and llvm? The syntax is
> like
>
> func arg1 arg2 ... argn;
>
> and define func like
>
> void func( int arg1, int arg2, ..., int argn)
> { ...}
Hi Charlie,
You definitely could hack clang to allow syntax like this, it would be
a straight-forward parser extension. Why would you want to do this
though?
-Chris
More information about the llvm-dev
mailing list