[plt-scheme] Characters espace with lex/yacc

From: Jos Koot (jos.koot at telefonica.net)
Date: Sun Nov 25 15:39:43 EST 2007

Why does your parser put an escape char before every parenthesis in the first 
place?
Jos

((((lambda(x)((((((x x)x)x)x)x)x))
   (lambda(x)(lambda(y)(x(x y)))))
  (lambda(x)(write x)x))
 'greeting)
----- Original Message ----- 
From: "Laurent" <Ouaibou at gmail.com>
To: <plt-scheme at list.cs.brown.edu>
Sent: Sunday, November 25, 2007 9:29 PM
Subject: [plt-scheme] Characters espace with lex/yacc


> Hello,
>
> I escape characters in my parser like this :
>
> `(\(call/cc \(lambda \(cont\) \(k \(,$2 cont\)\)\)\)\)\)\)))
>
> When i catch the result, i have something like :
>
> (|(call/cc |(lambda |....)
>
> So, i have to do an regexp in order to replace | by "" (the empty
> string).
>
> Is there an another easy solution ?
>
> Thanks,
> Laurent
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 



Posted on the users mailing list.