Search found 15 matches

by phdenis40
Sat May 14, 2016 10:53 am
Forum: Common Lisp
Topic: setq and assoc problem
Replies: 5
Views: 12884

Re: setq and assoc problem

Hello all, Thanks for your help. One thing which is very disturbing for me it that compare to C language, a function is not typed like void main(int argc, char* argv[]). Thus, how do you understand a program which is only written without comment. How do you debug it? For the debugging part, I'm call...
by phdenis40
Wed May 11, 2016 10:46 am
Forum: Common Lisp
Topic: setq and assoc problem
Replies: 5
Views: 12884

setq and assoc problem

Hello all, As newbie in Lisp, I'm faced off at an issue linked to the assoc function. Hereafter, the 2 parts of code involved in my issue: (setq values '((x . 100) (y . 200) (z . 50))) (assoc 'y values) This code is working without any problem (the code is an example extracted from the assoc http://...
by phdenis40
Fri Mar 11, 2016 5:10 am
Forum: Common Lisp
Topic: Reading a file, store it and display it
Replies: 5
Views: 13049

Re: Reading a file, store it and display it

Hello,
Unfortunately, I've no error message.
Nothing is printed on the screen linked to the parsing of the text file.
Do you know if a Lisp Debugger is available?
I'm quite lost ...
by phdenis40
Mon Mar 07, 2016 1:41 pm
Forum: Common Lisp
Topic: Reading a file, store it and display it
Replies: 5
Views: 13049

Re: Reading a file, store it and display it

Thanks for the answer, now the syntax of the program is correct but the behavior is quite strange for me. You're right about the fact that I want to be able to return the list "dico" because I want to parse it in order to find an atom, or display all atoms. So, why on the parser function, ...
by phdenis40
Sun Mar 06, 2016 5:07 pm
Forum: Common Lisp
Topic: Reading a file, store it and display it
Replies: 5
Views: 13049

Reading a file, store it and display it

Hello all, I'm a newbie in LISP and I'm face to several problems. I'm trying to read a text file and store it in a list thanks to a lisp program but it's not working. Could you please tell me what's wrong with this script? lisp code: (defun parser () ;Initialisation de la liste dico (setq dico '()) ...