Reader handling of the @ character
Damien MATTEI
damien.mattei@oca.eu
Mon Jun 29 22:52:40 GMT 2020
thanks,
my mail was intend to be in the mailing list.
Le 29/06/2020 à 16:05, Per Bothner a écrit :
> On 6/28/20 8:04 PM, Per Bothner wrote:
>> This seems to work:
>>
>> (define-syntax test
>> (syntax-rules (|@|)
>> ((test @ x y z) (list x y z))))
>>
>> The --r7rs flag also works.
>>
>
> In private email I was asked about |@| and --r7rs.
>
> The slice operator
> @expression
> is converted by the Kawa reader into:
> ($splice$ expression)
>
> The vertical bars in |@| makes @ into a regular
> symbol and disables the special treatment of the @ character.
>
> The --r7rs command-line flag disables Kawa extensions that
> conflict with strict R7RS compatibility:
>
> https://www.gnu.org/software/kawa/Options.html#Options-for-language-selection
>
More information about the Kawa
mailing list