Sign in
qemu
/
meson
/
ba5141a82bfb8decbb68680d24f2a8035c500a3a
/
.
/
test cases
/
d
/
16 code generation
/
generator.d
blob: f944dd39f3216870b0dfac782e153a4d01e65aa8 [
file
] [
log
] [
blame
]
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
());
}