All Questions
Tagged with code-generation string
4 questions
18
votes
24
answers
3k
views
Meta-cat program
Write a program or function that takes input and outputs/returns a full program (in the same language) that outputs said input.
Note that the input may contain any printable ASCII character or newline ...
3
votes
0
answers
183
views
Predictor Generator [closed]
Write a program that when given a string \$S\$, it generates a program of the same language as itself.
The generated program, when given a continuous substring of \$S\$, should predict the next ...
26
votes
8
answers
2k
views
Convert braces to Right Hand Brace (Sad Brace)
Right hand brace is a style of code bracketing in which curly braces and semicolons are all aligned to a single point on the right side of a a file.
Generally, this is considered bad practice, for ...
3
votes
3
answers
2k
views
Do not repeat yourself
Inspired by this challenge
Given a number m, output a program that prints out the string Do not repeat yourself.
Now for the ...