From: Frank Duncan Date: Sun, 12 Jul 2015 13:13:07 +0000 (-0500) Subject: Check for internal symbols X-Git-Tag: 0.1~10 X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f818db9cb54bc53b62e5b7c2268e6db7d62a3fa;p=wolf Check for internal symbols --- diff --git a/resources/internalsymbols.lisp b/resources/internalsymbols.lisp new file mode 100644 index 0000000..ba20295 --- /dev/null +++ b/resources/internalsymbols.lisp @@ -0,0 +1,8 @@ +(in-package #:nothing) + +(defun hello-world (a b c) + (progn + (with-open-file (str "increasinglylongfilenamesfailme.dat" :direction :input :if-does-not-exist :create) + (when + (read-line nothing::str) + (format t "This file had some things in int, yay!~%"))))) diff --git a/src/main/checker.lisp b/src/main/checker.lisp index f20b6a8..dcbe9ec 100644 --- a/src/main/checker.lisp +++ b/src/main/checker.lisp @@ -5,7 +5,7 @@ ; * No form longer than 50 lines ; - Top level multiline forms must be separated by exactly one space ; * No line longer than 120 characters -; - No use of unexported symbols in other packages +; * No use of unexported symbols in other packages ; * No tabs ; - Only one space between elements in a form on a single line ; * in-package must be first line in file unless file is package.lisp @@ -160,9 +160,8 @@ (cond ((not form) "Unmatched ending paren") ((< 50 (- *line-no* (car form))) "Forms can't be over 50 lines long"))))) - -(cl-ppcre:scan (cl-ppcre:create-scanner " *") " -asdf asdf") + (defevaluator :normal "::" + (constantly "No internal symbols from other packages")) (defevaluator :normal "." (constantly nil)) )