1 |
Hi there, |
2 |
|
3 |
I'm just learning Lisp, as I start to work through the Structure and |
4 |
Interpretation of Computer Programs book, and I'm having troubles |
5 |
getting the mit-scheme-c to be co-operative. |
6 |
|
7 |
I rather suspect that the error lies with me being stupid, but I'd |
8 |
be everso grateful for a little help. |
9 |
|
10 |
Essentially, whenever I try to load any scheme from a file into |
11 |
mit-scheme-c, it mis-reads it. A transcript will do well to |
12 |
illustrate: |
13 |
|
14 |
------------------------------------------------- |
15 |
echo '(define testvar 2)' | scheme |
16 |
MIT/GNU Scheme running under GNU/Linux |
17 |
Type `^C' (control-C) followed by `H' to obtain information about interrupts. |
18 |
|
19 |
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, |
20 |
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
21 |
2006, 2007 Massachusetts Institute of Technology |
22 |
This is free software; see the source for copying conditions. There is NO |
23 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
24 |
|
25 |
Image saved on Wednesday December 23, 2009 at 4:25:28 AM |
26 |
Release 7.7.90.+ || Microcode 15.1 || Runtime 15.7 |
27 |
|
28 |
1 ]=> |
29 |
;Unbound variable: |testvarâ| |
30 |
;To continue, call RESTART with an option number: |
31 |
; (RESTART 3) => Specify a value to use instead of |testvarâ|. |
32 |
; (RESTART 2) => Define |testvarâ| to a given value. |
33 |
; (RESTART 1) => Return to read-eval-print level 1. |
34 |
|
35 |
2 error> |
36 |
End of input stream reached. |
37 |
Happy Happy Joy Joy. |
38 |
------------------------------------------------- |
39 |
|
40 |
The same thing happens if I try to load a file, either using |
41 |
mit-scheme-c < testfile or mit-scheme-c --load testfile |
42 |
|
43 |
This happens with both versions in the Lisp overlay, 20080130 and |
44 |
20090107. |
45 |
|
46 |
As I say, seems like it must be me being stupid, but I cannot see |
47 |
how. |
48 |
|
49 |
Thanks alot, |
50 |
|
51 |
Nick |
52 |
|
53 |
|
54 |
-- |
55 |
GPG : 0x04E4653F | 9732 D7C7 A441 D79E FDF0 94F6 1F48 5674 04E4 653F |