aboutsummaryrefslogtreecommitdiffstats
path: root/fac.tpr
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-05 21:04:17 +0000
committerDavid Robillard <d@drobilla.net>2009-03-05 21:04:17 +0000
commit2e7b59ee140e75bb763a90ef10b1d4126822467a (patch)
tree9fab3cfdaafbfd45c2d450da4c7eccb81891a407 /fac.tpr
parent43a365c87a017513be9370557ee2cbbad3f0648a (diff)
downloadresp-2e7b59ee140e75bb763a90ef10b1d4126822467a.tar.gz
resp-2e7b59ee140e75bb763a90ef10b1d4126822467a.tar.bz2
resp-2e7b59ee140e75bb763a90ef10b1d4126822467a.zip
Proper error reporting for undefined symbols.
Fix line/col in error messages to point to start of relevant token. git-svn-id: http://svn.drobilla.net/resp/tuplr@48 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'fac.tpr')
-rw-r--r--fac.tpr1
1 files changed, 1 insertions, 0 deletions
diff --git a/fac.tpr b/fac.tpr
index a696ff7..076a02c 100644
--- a/fac.tpr
+++ b/fac.tpr
@@ -1,3 +1,4 @@
+; Factorial
(def fac (fn (n)
(if (= 0 n) 1
(* n (fac (- n 1))))))