This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.file, std.regex, std.stdio; | |
void main(string[] args) | |
{ | |
if (args.length != 2) | |
return; | |
auto text = readText(args[1]); | |
enum common = `((?:func|for|if|else)[^{\n]*)\n`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.file, std.regex, std.stdio, std.string; | |
void main(string[] args) | |
{ | |
if (args.length != 2) | |
return ; | |
auto text = readText(args[1]); | |
/+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
void main() | |
{ | |
writeln("hello, world!"); | |
} |