diff options
author | Joe Jevnik <joejev@gmail.com> | 2014-06-05 15:51:04 -0400 |
---|---|---|
committer | Joe Jevnik <joejev@gmail.com> | 2014-06-05 15:51:04 -0400 |
commit | ad0bd3e40bff8d2735d8ec6b08b3b71622821184 (patch) | |
tree | 32b39e104b26007aa91a10323b6f3f5def4ff999 | |
parent | 5550fcbc4c47b18f0d8bf4bf2c4982b9057c794b (diff) | |
download | pygments-ad0bd3e40bff8d2735d8ec6b08b3b71622821184.tar.gz |
Adds a test file for the r6rs comments.
-rw-r--r-- | tests/examplefiles/r6rs-comments.scm | 23 |
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)))))) |