title: How to generate C code automatically
body: <p>I am working on a project in C. I observe that a lot of code can be automatically generated based on certain rules. ie. if I specify just C structures, based on that, the code can be automatically generated. I know it can be done, but I havent done it before. It will be nice if experienced C programmers can give certain pointers or share their experience on how to do such things with minimum engineering effort.</p>
  
  <p>EDIT: To be very specific, do I need to write a custom parser in C to do all that or is there some easier way to deal with this?</p>