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*
-
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?m25– m252014-06-09 17:22:53 +00:00Commented 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/29Doc Brown– Doc Brown2014-06-09 21:27:51 +00:00Commented 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!m25– m252014-06-10 13:26:57 +00:00Commented 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.Doc Brown– Doc Brown2014-06-10 13:47:08 +00:00Commented 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>"Doc Brown– Doc Brown2014-06-10 13:55:28 +00:00Commented Jun 10, 2014 at 13:55
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
default