Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!swrinde!howland.reston.ans.net!plug.news.pipex.net!pipex!nielsen.co.uk!peer-news.britain.eu.net!newsfeed.ed.ac.uk!edcogsci!jeff
From: jeff@cogsci.ed.ac.uk (Jeff Dalton)
Subject: Re: input question
Message-ID: <DLpF52.I1B.0.macbeth@cogsci.ed.ac.uk>
Organization: Centre for Cognitive Science, Edinburgh, UK
References: <sl0dWnS00iWU42s8Qu@andrew.cmu.edu> <NORVIG.96Jan24093722@meteor.harlequin.com>
Date: Wed, 24 Jan 1996 21:17:25 GMT
Lines: 20

In article <NORVIG.96Jan24093722@meteor.harlequin.com> norvig@meteor.harlequin.com (Peter Norvig) writes:

>;;; The idea is that SAFE-READ will always return an atom.  It won't
>;;; signal an error just because the input stream is not valid Lisp
>;;; syntax. By default, SAFE-READ returns nil at end of file.
>;;; Exactly how the stream is broken into atoms depends on the read
>;;; table you construct with a call to MAKE-SAFE-READTABLE.  An example:
>
>;;; (with-input-from-string (stream "hello, #6); how are you?")
>;;;   (loop for x = (safe-read stream) while x collect x)
>;;; ==> (HELLO |,| |#| 6 |)| |;| HOW ARE YOU |?|)
>
>
>(defun make-safe-readtable (&key (alphabetic "") (ignore "")
>                                 (single "!@#$%^&*()_+|\=-[]{};'`:\"~,./<>?"))
> [Etc]

What happens if you put ":" in the alphabetics?  (^_^)

-- jd
