Path: utzoo!attcan!uunet!snorkelwacker!apple!agate!shelby!neon!michaelg From: michaelg@Neon.Stanford.EDU (Michael Greenwald) Newsgroups: comp.lang.lisp Subject: Re: Building a string, character-by-character (HELP!) Message-ID: <1990Oct1.124048.24238@Neon.Stanford.EDU> Date: 1 Oct 90 12:40:48 GMT References: <51703@brunix.UUCP> Organization: Computer Science Department, Stanford University Lines: 18 dkb@cs.brown.edu (Dilip Barman) writes: >I'm writing a lexical analyzer in Common LISP and am having problems >in dealing with characters. I am using the read-char built-in >function to read from a file stream in a "standard" way to ignore >white space and fold to upper case alphabetic characters. However, >I find no way to deal with string concatenation - i.e., how do I >keep tacking on filtered characters to a nascent output string? >The cons primitive will build a list structure and seems to be >irrelevant to what I'm trying to do. Any suggestions???? Would VECTOR-PUSH or VECTOR-PUSH-EXTEND be what you are looking for? >Dilip Barman dkb@cs.brown.edu >U.S. mail: Brown University Home: 40 Everett Avenue > Dept. of Computer Science, Box 1910 Providence, RI 02906 > Providence, RI 02912 (401)863-7666 (401)521-9731