From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id 3C97F383F84B for ; Mon, 29 Jun 2020 01:44:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C97F383F84B Received: by mail-lf1-x133.google.com with SMTP id c11so8166027lfh.8 for ; Sun, 28 Jun 2020 18:44:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=i4quXIMlNF1VTV1sRcDkDovviEYX3QNRJxIbB6SyjXs=; b=Md1ehn6h9xeD1V4bLlLyhKkZTdHVbxxylhlHs/hZOjK6wAmBGQi08Agx1AnCFECwWv H/pZ4qP6hcfTGkc1x4CpfRNY/bvHe8vYSwjKQPjroHoGZHjC8qLNIY3snneC0PNJ4UG5 gbTmmVvdkzzdoOpoHydsyyXSDAkIQOXDzag/h2AoZ2zSwqft7eQjwwUCGR6/UNuQ5S5E YJR+mQlRNXtOmbd3VF4Eh+G0UdrAzBrPZsbghhn4oFMgmMVIQG5PuA8vezRSNu/NdMv3 OARFjD8Jm1v56gZVUHZoOnBQjZDPD/+pkCuL/M3ovB0I0dimnZOXTCAgEyzgz+OsEzYM JV6w== X-Gm-Message-State: AOAM532BMth+kmlT0h0G+fYOHvc3DblNQ6hiCjeuF+Lhw7Efv4qp4Sgp QuiYOZPnpFzg6GqYp2tsNK6cRXLDGCKoL7H97jtEF3kn1qY= X-Google-Smtp-Source: ABdhPJymeKrnMnjQGy+7lieh2tci2t44HCft4SJswW9rh5GaF+g4iCdeUZ8SzjzqbJLwUJ0rIUiWmJWW+Y33dlZK2iU= X-Received: by 2002:a19:dc08:: with SMTP id t8mr7865037lfg.191.1593395091292; Sun, 28 Jun 2020 18:44:51 -0700 (PDT) MIME-Version: 1.0 From: Duncan Mak Date: Sun, 28 Jun 2020 21:44:15 -0400 Message-ID: Subject: Reader handling of the @ character To: kawa mailing list X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: kawa@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Kawa mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 01:44:54 -0000 Hello all, I'm playing with the Alex Shinn match.scm macro again and I noticed that it doesn't load in Kawa, I think it's failing because of the handling of the @ character, probably due to how the splice operator was implemented. I tried the following in Chez, this is what I see with this test syntax-rules macro: $ chez Chez Scheme Version 9.5.2 Copyright 1984-2019 Cisco Systems, Inc. > (define-syntax test (syntax-rules (@) ((test @ x y z) (list x y z)))) > (test @ 1 2 3) (1 2 3) > (test 1 2 3) Exception: invalid syntax (test 1 2 3) Type (debug) to enter the debugger. > The same macro doesn't work in Kawa 3.1.1: $ kawa #|kawa:1|# (define-syntax test #|.....2|# (syntax-rules (@) #|.....3|# ((test @ x y z) (list x y z)))) #|.....4|# /dev/tty:2:20: invalid character #\) #|kawa:5|# (test @ 1 2 3) /dev/tty:5:2: warning - no declaration seen for test /dev/tty:5:2: unbound location: test at gnu.mapping.DynamicLocation.get(DynamicLocation.java:36) at atInteractiveLevel-2.run(tty:5) at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:290) at gnu.expr.ModuleExp.evalModule(ModuleExp.java:211) at kawa.Shell.run(Shell.java:289) at kawa.Shell.run(Shell.java:196) at kawa.Shell.run(Shell.java:183) at kawa.repl.processArgs(repl.java:724) at kawa.repl.main(repl.java:830) -- Duncan.