summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Jevnik <joejev@gmail.com>2014-06-05 15:51:04 -0400
committerJoe Jevnik <joejev@gmail.com>2014-06-05 15:51:04 -0400
commitad0bd3e40bff8d2735d8ec6b08b3b71622821184 (patch)
tree32b39e104b26007aa91a10323b6f3f5def4ff999
parent5550fcbc4c47b18f0d8bf4bf2c4982b9057c794b (diff)
downloadpygments-ad0bd3e40bff8d2735d8ec6b08b3b71622821184.tar.gz
Adds a test file for the r6rs comments.
-rw-r--r--tests/examplefiles/r6rs-comments.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/examplefiles/r6rs-comments.scm b/tests/examplefiles/r6rs-comments.scm
new file mode 100644
index 00000000..cd5c3636
--- /dev/null
+++ b/tests/examplefiles/r6rs-comments.scm
@@ -0,0 +1,23 @@
+#!r6rs
+
+#|
+
+ The FACT procedure computes the factorial
+
+ of a non-negative integer.
+
+|#
+
+(define fact
+
+ (lambda (n)
+
+ ;; base case
+
+ (if (= n 0)
+
+ #;(= n 1)
+
+ 1 ; identity of *
+
+ (* n (fact (- n 1))))))