summaryrefslogtreecommitdiffstats
path: root/test cases/d/16 code generation/generator.d
blob: f944dd39f3216870b0dfac782e153a4d01e65aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module generator;

import std.file;
import std.stdio;
import std.string;

void main(string[] args)
{
    const text = cast(string)read(args[1]);

    writeln("module generated;");
    writefln!`string generatedString() { return "%s"; }`(text.strip());
}