Menu
Home
Create new Paste
Log in
PreCompiler
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
import std.stdio; import std.process; import std.array; void main(string[] args) { string[] d_files; foreach (string param; args[1 .. $]) { if (param[$ - 2 .. $] == ".d") { d_files ~= param; } } foreach (string d_file; d_files) { shell("not_null_parser " ~ d_file ~ " #t"); } args[0] = "dmd "; shell(join(args, " ")); scope (exit) { foreach (string d_file; d_files) { shell("re_name " ~ d_file); } } }
Result:
Success
/
Return code: 0
/
Compilation time:
1.571
seconds
/
Run time:
0.183
seconds
Username
Message
Add comment
Paste info
Author:
Namespace
Views:
127
Private:
no
Expires:
Never
Uploaded:
06.08.12 12:02
Votes
:
0
Tweet
Compilation
Compiler:
DMD 2.062
Pointer size:
m64
Actions
Download
Fork
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason