Skip to content

Commit d22edea

Browse files
committed
add profile.rkt
1 parent 6dd3c29 commit d22edea

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

profile.rkt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#lang racket
2+
3+
(require "puff/puff.rkt")
4+
5+
;; define some files to skip, like "examples/functions.huff"
6+
(define skip-files (list "examples/functions.huff" "examples/padded.huff"))
7+
8+
;; check if string "included" is in the path
9+
(define (check-if-included p)
10+
(regexp-match #rx"included" p))
11+
12+
13+
;; iterate over all files in "examples" and call compile-filename for each
14+
(for ([filename (in-directory "examples")])
15+
(unless (or (check-if-included filename)
16+
(directory-exists? filename)
17+
(member (path->string filename) skip-files))
18+
(printf "compiling ~a\n" filename)
19+
(compile-filename filename)))

0 commit comments

Comments
 (0)