[plt-scheme] get rid of the pipes

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sat Jan 15 16:00:14 EST 2005

pietri bob wrote:

> The result of my parser gives me pipes between number ( ¦5¦ instead of 5 )
> which I can't eval.how I can get rid of them?

The external syntax of symbol whose name is spelled 5 is simply |5|.
If you want to convert the symbol to a number, first convert the
symbol to a string using symbol->string, then use string->number for
converting the string to a number.

   > (string->number (symbol->string '|5|))
   5

-- 
Jens Axel Søgaard




Posted on the users mailing list.