MOD-DECF (MODULO PLACE &OPTIONAL (DECREMENT 1) &ENVIRONMENT ENV)
Decrements the PLACE by DECREMENT modulo MODULO.
MOD-INCF (MODULO PLACE &OPTIONAL (INCREMENT 1) &ENVIRONMENT ENV)
Increments the PLACE by INCREMENT modulo MODULO.
DO: Read a character from the underlying stream and keep it in the buffer for GETCHAR. RETURN: The character that has been read, or NIL when EOF (which doesn't mean GETCHAR would return NIL). NOTE: We have: (equalp (loop repeat N collect (nextchar ps)) (loop repeat N collect (getchar ps))) but not: (equalp (loop repeat N collect (getchar ps)) (loop repeat N collect (nextchar ps))) SEE ALSO: NEXTCHAR.
RETURN: The next character in the PEEK-STREAM, advancing.
NEXTCHAR (PEEK-STREAM &OPTIONAL PEEK-TYPE)
DO: Just like CL:PEEK-CHAR. If peek-type is not supplied or NIL, peek-char returns the next character to be read from input-stream, without actually removing it from input-stream. The next time input is done from input-stream, the character will still be there. If peek-type is T, then peek-char skips over whitespace characters, but not comments, and then performs the peeking operation on the next character. The last character examined, the one that starts an object, is not removed from input-stream. If peek-type is a CHARACTER, then peek-char skips over input characters until a character that is char= to that character is found; that character is left in input-stream. RETURN: The same character that will be returned by the next (getchar self). NOTE: There's no conforming way to determine whether a character has the whitespace syntax in the current *readtable*. Therefore we use instead the PEEK-STREAM-SPACES method to get the list of spaces.
RETURN: A string containing the read line.
UNGETCHAR (PEEK-STREAM CH)
DO: Unread the character CH from the PEEK-STREAM.
The RETURN: A sequence of characters to be considered whitespace by (nextchar peek-stream T).
SETFPEEK-STREAM-SPACES (NEW-WHITESPACES PEEK-STREAM)
The DO: Changes the sequence of characters to be considered whitespace by (nextchar peek-stream T).
SETFBUFFER (NEW-VALUE OBJECT)
SETFHEAD (NEW-VALUE OBJECT)
SETFNEXT (NEW-VALUE OBJECT)
SETFTAIL (NEW-VALUE OBJECT)
More than one character may be peeked and unread from this.