Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

import std.stdio;
void main()
{
writeln("hello, world!");
}
@zaydek-owl
zaydek-owl / regexes.d
Last active August 21, 2017 19:58
not for the faint of heart
import std.file, std.regex, std.stdio, std.string;
void main(string[] args)
{
if (args.length != 2)
return ;
auto text = readText(args[1]);
/+
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`;