SRFI 147 sample implementation and Kawa

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SRFI 147 sample implementation and Kawa

Sudarshan S Chawathe
When I try testing the sample implementation for SRFI 147 with Kawa I
get errors (below).

I have not looked at the SRFI implementation carefully so I do not know
whether the problem is with the implementation or Kawa, but I thought
I'd mention it here.  (A similar test with chibi-scheme works, though.)
Sorry for the lack of better details.

I tested with the gitlab Kawa 2.3.1 compiled with import.patch (from the
include-library-declarations thread) applied.

Regards,

-chaw

[The working directory below is the top-level directory of the SRFI
implementation from its github repo.]

chaw@vereq:/tmp/srfi-147$ kawa -Dkawa.import.path="./*.sld" tests.scm
/tmp/srfi-147/srfi/147/test.sld:33:4: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:41:9: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:48:9: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:59:4: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:64:4: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:69:4: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:74:4: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:81:9: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:90:4: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:96:44: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:101:4: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:107:11: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:107:33: invalid use of '_
/tmp/srfi-147/srfi/147/test.sld:112:4: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:117:4: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:131:4: invalid syntax-rules syntax
/tmp/srfi-147/srfi/147/test.sld:139:6: no matching syntax-rule for :continuation
/tmp/srfi-147/srfi/147/test.sld:141:8: define is only allowed in a <body>
/tmp/srfi-147/srfi/147/test.sld:142:8: define is only allowed in a <body>
chaw@vereq:/tmp/srfi-147$ kawa --version
Kawa 2.3.1 (git describe: kawa-2.3-4-gcb36c64-dirty)
Copyright (C) 2017 Per Bothner
Reply | Threaded
Open this post in threaded view
|

Re: SRFI 147 sample implementation and Kawa

Per Bothner
On 03/01/2017 04:10 PM, Sudarshan S Chawathe wrote:
> When I try testing the sample implementation for SRFI 147 with Kawa I
> get errors (below).
>
> I have not looked at the SRFI implementation carefully so I do not know
> whether the problem is with the implementation or Kawa,

Could be neither or both.  The implementation of Scheme hygienic macros is
fairly complicated, and if you push the limits, things may break.

>  but I thought
> I'd mention it here.  (A similar test with chibi-scheme works, though.)

I think is a case where you have to dig into the Kawa implementation of
macros, and add the desired SRFI-147 functionality.  Having it be an add-on
will be fragile, at best, I suspect.
--
        --Per Bothner
[hidden email]   http://per.bothner.com/