Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I can't say I've ever heard of this process before. Do you know of another post or a site where there is information on this process? Commented Jun 9, 2014 at 17:22
  • 1
    @m25: really, you have never heard of code generation? Maybe you have heard of buzzwords like "domain specific languages". I recommend to get a copy of "The pragmatic programmer", there you will find tips like this one: pragmatictips.com/29 Commented Jun 9, 2014 at 21:27
  • I was actually referring to the compact meta format. I had heard of code generation but had never heard much or tried to implement it. Thanks for the link and the tips. I like the code generation idea. thanks for your help! Commented Jun 10, 2014 at 13:26
  • @m25: choose a meta format or DSL which fits best to your environment. It could be a plain and simple text file, an XML file, a C-like description similar to a CORBA-IDL spec, a machine-readable UML diagram (if you use CASE tools). Your choice should depend on the tools you have experience with. For example, if you can use a scripting language like Perl or Python for the code generator, there are tons of libraries available for parsing text files, XML files or even a complete language. Commented Jun 10, 2014 at 13:47
  • @m25: here blogs.perl.org/users/jeffrey_kegler/2012/08/… is an entry point for Perl, and here stackoverflow.com/questions/1547782/mini-languages-in-python one for Python. But if you prefer something different, just google "create dsl with <language of your choice>" Commented Jun 10, 2014 at 13:55