I have a simple example readin function
Im using clisp in ubuntu and I using the clisp -c Test.lisp and it says "compiled with 0 warnings and errors"
and it makes a Test.fas file. so I use ./Test.fas (after giving +x permissions)
and then it gives me the error
./Test.fas: line 1: syntax error near unexpected token `|'
./Test.fas: line 1: `(|SYSTEM|::|VERSION| '(20060802.))'
.....What am I doing wrong? im almost certain the code is right but i've never ran a lisp program before? It compiled with 0 errors and 0 warnings? So whats going on.....how do i run such a simple test code (btw I have a file called thefile)
Sorry for such a newbish question but this is my first time?
(defun read-setup (thefile)
(with-open-file (stream thefile)
(loop for line = (read stream nil 'end)
until (eq line 'end)
do (print (list (coerce line 'integer)
)
)
)
)
)
That just reads in some integers into a file, Im pretty sure it works, because it was an example in a e-book I have for lisp.Im using clisp in ubuntu and I using the clisp -c Test.lisp and it says "compiled with 0 warnings and errors"
and it makes a Test.fas file. so I use ./Test.fas (after giving +x permissions)
and then it gives me the error
./Test.fas: line 1: syntax error near unexpected token `|'
./Test.fas: line 1: `(|SYSTEM|::|VERSION| '(20060802.))'
.....What am I doing wrong? im almost certain the code is right but i've never ran a lisp program before? It compiled with 0 errors and 0 warnings? So whats going on.....how do i run such a simple test code (btw I have a file called thefile)
Sorry for such a newbish question but this is my first time?