2
Write a program in language A which outputs a program in language B where:
- Language A != Language B
- The output is itself a solution to this question.
This is a popularity contest. If you want to define your own BNFs/grammars for this, feel free, but try not to make it too boring by doing so.
EDIT: The more languages it ends up generating code in, the better (in my opinion).
EDIT2: Try to use languages that are not similar (I.e. generate the code in a different family of languages). (E.g. C to Scheme)
I would make this code-bowling, but I don't want it to be too difficult for people. – Millie Smith – 2014-03-10T17:13:44.087
Code-bowling is not a good idea. Many solutions here would just print out larger versions on each iteration, so the arguably longest version is infinitely long. – Justin – 2014-03-10T17:20:24.637
1Might want to restrict what languages. Otherwise, languages that are very similar (almost identical, such as the two Befunges) could cheat, and for some reason, such answers tend to get a lot of upvotes. – Justin – 2014-03-10T17:21:32.243
1
This is a slightly relaxed version of Golf a mutual quine and its variant Write a third order quine.
– Peter Taylor – 2014-03-10T17:26:06.513The relaxation is that it does not need to be a "quine", that is, it can expand indefinitely. I think this is different enough to not mark it as a duplicate, but only if this is changed to make it so that it needs to be expandable (ie, never will come back to the same program, only a bigger one for each language). – Justin – 2014-03-10T17:32:03.313
Next time, remember to send your question through the sandbox
– Justin – 2014-03-10T17:32:46.430This trumps everything – user80551 – 2014-03-10T17:38:57.620
Thanks @Quincunx. I wasn't aware. Yes, yes that does user80551 – Millie Smith – 2014-03-10T17:48:29.993