Skip to content

Instantly share code, notes, and snippets.

@Araq
Created December 20, 2016 22:33
Show Gist options
  • Save Araq/7ae88f36e09c3d2b0c0bda3fdc254e30 to your computer and use it in GitHub Desktop.
Save Araq/7ae88f36e09c3d2b0c0bda3fdc254e30 to your computer and use it in GitHub Desktop.
import strutils, os, pegs
proc modFile(f: string) =
transformFile f, f & paramStr(1), [(peg"\_[A-Za-z0-9]+", "")]
proc main(dir: string) =
for f in walkPattern(dir):
modFile f
main("tests/async/nimcache/*.c")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment