[plt-scheme] lex problem

From: Stephen Bloch (sbloch at adelphi.edu)
Date: Tue Sep 29 15:37:27 EDT 2009

I wrote:
>>>         ((concatenation #\" (repetition 0 +inf.0 (complement # 
>>> \")) #\")
>>>          (token-str-lit-token (chop-fl lexeme)))

Jon Rafkind:
>> replace (complement #\") with
>>
>> (intersection (complement #\") any-char)

Carl Eastlund:
> Or replace complement with char-complement.

Duh!  I was thinking of complement with respect to the set of  
characters, not the set of strings.  All is clear now.  Thanks!


Stephen Bloch
sbloch at adelphi.edu



Posted on the users mailing list.