Mathematica's core tree-oriented symbolic language makes it well suited to working with a hierarchical view of C code as Mathematica expressions. This supports the use of the Mathematica language for the creation, manipulation, and optimization of C code. It is used extensively for Mathematica's code generation tools. In addition, you can use SymbolicC for your own code manipulation purposes.

C Formatting

ToCCodeString— convert a symbolic C expression into a string of C code