From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id E83D83858D28 for ; Mon, 9 Oct 2023 20:18:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E83D83858D28 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-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-53b32dca0bfso7214488a12.0 for ; Mon, 09 Oct 2023 13:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696882705; x=1697487505; darn=sourceware.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZPg3qNnCW1yuKgIQV85YfVyHZWzLf6RamMwfbLqtjdI=; b=TwKq3nNbU4w0VwMVEewRJC8aqWy3L+X3EZBkMxoTd6aZJvZW0r9rCHkpUPx07MMHn8 YU7twR8i1fzlQjrojwvri/4b4lG1P67DrIYzyOoIoRGlQMVnQBa3MxsCmzKUVgcU7Hh4 7KdTcBjYcQC4AuZ6SV6t0MGPwHtJY7eq4u8bZ+7RI40Ut4638A+snyQSqwX2YT/AhpVH 5x0eU7ullM2SRSKtJ+VyZJRQIzoWjKcIYaxpLGiD8oZNWqeG9vIMy7ioLwgi3W+CpnaM uqqc9YMySrTkQRX5cHCm0frmBkGwB7Ye5U0EScuIGJxsGzuF783KKMye9Cg2+Otc7ZoH JnZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696882705; x=1697487505; h=content-transfer-encoding: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=ZPg3qNnCW1yuKgIQV85YfVyHZWzLf6RamMwfbLqtjdI=; b=dIr35jSYgdDBMPLWDymLrH4r1gSPld5wXaOdiJ/daQvGEUi+zdte74QcsBtMoP0IJ3 9bGQhObgJUeXKE4BgsnUWsrW/Ez2bxTGjqE8RA+aoJDGYagCIh24ANizCOo7dleUyH4s j7DjlxeyLDs9NEz3xOGk2xVu5CAtCE27sSHGdx7XEgxvBK9LFG8uZJ9jF9dLjvFmznZn eoA4BKVuYFdirn2dShvfrlkXQVEiC7FgTwJrNLTYR1/Pj9vY+HLXfDVZKQfqXxHAwZr0 OJ1+K5L6JQOcZoWLrUpJFRrW2LqUdiURRToiD9B2ifJZkk63iunCD9R6CfuxLAkgcEre cB8Q== X-Gm-Message-State: AOJu0Yw/BRUzWszZ8U+btAzmBtG78z+sFA8StKg96xcEdW03uIsesjeP 3hOMl9EuUdZd/6Xejo8Cyks5zlJQzyturXzSYPOVpiMX X-Google-Smtp-Source: AGHT+IH+FAA4c9YBGQZ/36vLrkdI2TAIYV56DIsl18gmKO5FptQMMJxbFXJgD3nqYFdVutbkfECpIu2srGXdNC0aKMk= X-Received: by 2002:a05:6402:50d2:b0:530:8fdb:39c8 with SMTP id h18-20020a05640250d200b005308fdb39c8mr12008524edb.15.1696882705295; Mon, 09 Oct 2023 13:18:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Damien Mattei Date: Mon, 9 Oct 2023 22:18:14 +0200 Message-ID: Subject: Re: unrecognized pattern operator list To: kawa mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: 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