Created
December 20, 2016 22:33
-
-
Save Araq/7ae88f36e09c3d2b0c0bda3fdc254e30 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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