When `make-evaluator' receives a path to a file, it allows reading it.

This commit is contained in:
Eli Barzilay 2011-12-05 13:42:12 -05:00
parent 6fae17282f
commit 0514bec845

View File

@ -976,6 +976,10 @@
(init-hook-for-language lang)
(append (extract-required (or (decode-language lang) lang)
reqs)
(if (and (= 1 (length input-program))
(path? (car input-program)))
(list (car input-program))
'())
allow)
(lambda () (build-program lang reqs input-program))))