public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* SRFI 147 sample implementation and Kawa
@ 2017-03-02  0:11 Sudarshan S Chawathe
  2017-03-02  0:39 ` Per Bothner
  0 siblings, 1 reply; 2+ messages in thread
From: Sudarshan S Chawathe @ 2017-03-02  0:11 UTC (permalink / raw)
  To: kawa

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SRFI 147 sample implementation and Kawa
  2017-03-02  0:11 SRFI 147 sample implementation and Kawa Sudarshan S Chawathe
@ 2017-03-02  0:39 ` Per Bothner
  0 siblings, 0 replies; 2+ messages in thread
From: Per Bothner @ 2017-03-02  0:39 UTC (permalink / raw)
  To: Sudarshan S Chawathe, kawa

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
per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-02  0:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02  0:11 SRFI 147 sample implementation and Kawa Sudarshan S Chawathe
2017-03-02  0:39 ` Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).