More on reading
Posted: Fri Oct 10, 2003 4:18 pm
I Common Lisp you can transform a string into a list of atoms, such as:
"hi how are you" -> (hi how are you).
You just 'read-input-from-string' the original string and cons the atoms into a list. For instance, see (read-sentence) in Winston 3rd ed., p. 426.
How to do this in Newlisp ?
I imagine this can be done with regex, but since I dont know Perl, I cannot be sure.
"hi how are you" -> (hi how are you).
You just 'read-input-from-string' the original string and cons the atoms into a list. For instance, see (read-sentence) in Winston 3rd ed., p. 426.
How to do this in Newlisp ?
I imagine this can be done with regex, but since I dont know Perl, I cannot be sure.