From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by sourceware.org (Postfix) with ESMTPS id DCD183858D28 for ; Mon, 9 Oct 2023 20:26:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DCD183858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-1e19cb7829bso3304585fac.1 for ; Mon, 09 Oct 2023 13:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696883207; x=1697488007; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I/+gEjxDkpOEyXaPhMIrgwFpHVWHnP0Ovj8JvYLvtVw=; b=crIEXon7E2YUdHpHh5U6i0Peb1horpZJtyL7yJ/cYzV9kLIbSueGjCzSFzmahvNldq y9V7CqjA5jQQk456Y66bUnlyOILs22CdWcpWcsSdWY38Pv2hMR3Vnq+/3TYlkreExu5R 18AXxNl7Kt1+4Kx1TeuYmE9QO3Lgcf35kgEDK/doTi3age5dsWdZk4Om5HovClZ+I28y qORhuojJ6nW52Zuc9cbYCKT2bW1DLTdUVWVoTQS8M13Uk7oBMi3CSDY5eVZaPIazTfgJ 1pG+9/QY6/fNR1miW94YcqvDyeLUUmQtKES8Xn2q1GLiusVil4gfAL3mLRBkQQfHzOQf mhLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696883207; x=1697488007; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I/+gEjxDkpOEyXaPhMIrgwFpHVWHnP0Ovj8JvYLvtVw=; b=U936lvGQbtjCAIfri4qbCkCRY1kmAKDj2jfNKBrcEw9DHDgnuP99nHxKoU0jNaWaEm WDpRdnb34BpoFzoxoJRWnpgs3QG/JvsyGCyA+aOWiurRSurU1HeU+DfpXJl/s/rXiQh9 P6AYIpwMale0FwW0fVYgSB34s7GkhK4JLD7ZfZcFeBL3lpRNFy7vRKf+vCO8kP/vb7xF 50e1tV88G10FKWH/vRznkSJy/HwkqMY9+5/pjA+1RlgJ5d5/M89pssCi/xWu4aJTb70+ WsQZNBX5TYj5rHxk4E30H0kReJxOeoObmP7znmPu2DAaa9wGMvDsftYnPd+2pplaETn0 isEA== X-Gm-Message-State: AOJu0Yy05Q50u59RGJjzQsHCnzrcXysLh8wEsVp6OoJ2Aysh9Z34zTzz 3IawH1pYYA7uOyUUjAzL+ely4fxFEnKAxjrvX6c= X-Google-Smtp-Source: AGHT+IF1pTESW56fI6mD6leu2in0uiKURop+ZxfGA+bjnGoNPVxyMt9q6Lnjq7Xr6trBHolk5e3lIerpiRC4XLnnKZw= X-Received: by 2002:a05:6870:93cb:b0:1be:ccce:7991 with SMTP id c11-20020a05687093cb00b001beccce7991mr20121361oal.13.1696883206949; Mon, 09 Oct 2023 13:26:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Panicz Maciej Godek Date: Mon, 9 Oct 2023 22:26:36 +0200 Message-ID: Subject: Re: unrecognized pattern operator list To: Damien Mattei Cc: kawa mailing list Content-Type: multipart/alternative; boundary="000000000000c6910706074e68b0" X-Spam-Status: No, score=-0.0 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000c6910706074e68b0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable For what it's worth, I wrote my own implementation of match for Kawa and use it in GRASP: https://github.com/panicz/grasp/blob/main/src/language/match.scm It is derived from the now withdrawn SRFI-200 document that I submitted at some point: https://srfi.schemers.org/srfi-200/srfi-200.html (it contains a fairly detailed description of the implementation of the match macro, both in syntax-case and syntax-rules) Anyway, it doesn't seem to be causing any conflicts with Kawa's built-in match, so you cloud try adapting it to your taste. pon., 9 pa=C5=BA 2023 o 22:18 Damien Mattei via Kawa napisa=C5=82(a): > one of problem is coming from the special syntax of kawa that use > [ ] where others scheme don't and incompatible with SRFI 105, this > limits some use. > like: in type[] or match with patterns looking like ([_ y] ... > this would be a good idea to have an option in Kawa that allow > replacing those [ ] by normal ( ) or even be compatible with the 2 > syntaxes should be possible > > in my case i dislike 'match form and do not using typing in scheme > when available so this not a big problem in my codes but for now i do > not know how to modify the SRFI-105 reader for be compatible. It is > also possible to parse it with SRFI 105 and after modify again the > code to set back the transformed [] in () again in [] in 'match and > type[] .... > > > On Mon, Oct 9, 2023 at 4:48=E2=80=AFPM Damien Mattei > wrote: > > > > hello, > > > > in this code belonging from Guile and Racket version: > > > > (match (list index1-or-keyword-eval-pos index2-or-keyword-eval-pos > > index3-or-keyword-or-step-eval-pos) > > > > > > > > > > ;; {a <+ (make-vector 7 0)} > > ;; '#(0 0 0 0 0 0 0) > > ;; > {a[$ $] <- #(1 2 3)} > > ;; > a > > ;; '#(1 2 3 0 0 0 0) > > ((list (=3D=3D slice) (=3D=3D slice)) > > (container-copy! container-eval > > 0 > > expr-eval) > > > > i have this error: > > unrecognized pattern operator list near ((list (=3D=3D slice) i2 (=3D= =3D slice)) > > slice is defined like that: > > > > (define $ '$) > > (define slice $) > > > > what is the equivalent syntax for kawa? > > > > damien > --000000000000c6910706074e68b0--