summary refs log blame commit diff stats
path: root/tests/accept/compile/twalker.nim
blob: 3fdd8769badaac8d45cc6b1f149d1e949eed59a2 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                              
            




                                     
                              

                                     
              
# iterate over all files with a given filter:

import
  os, times

proc main(filter: string) =
  for filename in walkFiles(filter):
    writeln(stdout, filename)

  for key, val in envPairs():
    writeln(stdout, key & '=' & val)

main("*.nim")