From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qMrLOdrkDGccMAAAe85BDQ:P1 (envelope-from ) for ; Mon, 14 Oct 2024 11:31:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qMrLOdrkDGccMAAAe85BDQ (envelope-from ) for ; Mon, 14 Oct 2024 11:31:07 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=gOgtL2k5; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=RCACBB+O; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht ARC-Seal: i=1; s=key1; d=johnnyrichard.com; t=1728898266; a=rsa-sha256; cv=none; b=mhl79FRDMB7cd+p8oWilR4hoT49B8EVDH5I4oH19DF3Gpcw8/WGpwj6pjT2lHd6uFr7d0p cj+abUYZ6y/wOPmk4jXWLtft977Mmm0uj0XQdYP9/jL6ER9hjl/DOfyeBNIOp+po/XVo1Q xHWJLR3FZWQtfCUeieX7xhVKAL6QgeKEorw199AiJFtUe7Py6YZWHQR8UZgIdFkehPgQsa PMfpUBkE0LoGNh2KR3D60VYjBvDFWbK70+ZuCjEUH7vNJHO/UzXa3UySDjamE8XiGZdMoe qyaDgBNrRT0HuV8xR+u6fovZkZ0PWB0M7JxIJ/zdvrD4I7lGKB+E+5YKNT86Jw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=gOgtL2k5; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=RCACBB+O; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1728898266; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=03luaG1l9Bw83FxZnvnA1vjl95M7EsYbC5Ww6ylHHWc=; b=L8CfW/vdwSp8gS/UaVYZIYFZ31fnFc5280QS1t7iwDozWvLEPzx1V27ZqitJYipKOlkiYu JtB4XkBWUU4gpYQZ5cGuwOC6ZliZq9gXpkL6OIRU1MsqpOzeW91wnM92fX+HcF65zN452W nVCzumJtzKxtjHTLfRFDv9cS3wMWxR1JvzAHTtOLrN/IWMwRhcfzapWeDmNGkrdHmXAKBn RwDQYAeIfCZf5CAmlq72e17oftwu0iWz7MvkUAQNY7lFQoeQPaK4kPH8KYf2OZop+2lIUu Aha2CS1WMEyv7WmFcb0uOaT61+WdbNBl1qvSZ7ndHAaj7lNnnqKt+R0vtqDk3A== Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 61F6F1BEBB for ; Mon, 14 Oct 2024 11:31:03 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=3xT5xY6Z7nJdZhklyy11ER9N09tGgFkY54qfzU1+eD4=; c=simple/simple; d=lists.sr.ht; h=From:To:Cc:Subject:Date:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1728898262; v=1; b=gOgtL2k5nUwoqKUai9TtJGZNExtOdblvHlQUwdhDUpu9JNdz6ayFwP1347Xhi10apUofPL3g PWWULOYTWGaY36qGzKpgPKBbL8u4KbErowWTIwl8/HgL/mkTCRm7t2C+CATsInVOhoPV/NmwVog MbWRc33xX1A9YMfhXLYsUSKO2VEnaEiRFUxWstX+Sv7LN9iiJiK3ICIAP6A8cDcuDYlcnny50yo 881s+hlKGUXyp+ypUoz3VZ0G9dLQ3/HiiQ7mwsANxhRu4jd/WXp5qu10Rm1GCgKXGinRlFXNeZt ujkiFnkZn0yuvX6d5WkFHWaszpes0/IMwJHkdgneuE9EA== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id B7BC62017B for ; Mon, 14 Oct 2024 09:31:02 +0000 (UTC) Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) by mail-a.sr.ht (Postfix) with ESMTPS id 1D850200C0 for <~johnnyrichard/olang-devel@lists.sr.ht>; Mon, 14 Oct 2024 09:31:02 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1728898261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=03luaG1l9Bw83FxZnvnA1vjl95M7EsYbC5Ww6ylHHWc=; b=RCACBB+O+RsGh7qT3Dr5IUVGTWzAuFgYBsuFTkvmEFzpHl9HJ+IvlFSS5295hqZx6jv5av ff2RFjJ5AhsspjoPKWTp3EewHtiB8Irpxy5w9GBMF2PbNS1XwiEu3W+5rZDYpcju3cki2Q atx/0WInD8BwLWfT7Vt9hyGOudepdM00UqF5HDeltU801cSxTNW1GkQkieFMUOzh2qRRyT 2Ew1hetK7HMzpInScFOPt/yQbep7nNE06VsI5Ywsp51eKTJHwxfUBsGYQAAs39p/HuJl/9 XjuqfeVoRKLHA1G9f4FuNUqcB2Nd0baTfdj4soiZeMQC452yTVkxyJNq6XFM0w== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v1 0/2] parser: spec: allow nested expresssion Date: Mon, 14 Oct 2024 13:29:46 +0200 Message-ID: <20241014113011.108922-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Flow: FLOW_IN X-Migadu-Country: NL X-Migadu-Spam-Score: -0.79 X-Spam-Score: -0.79 X-Migadu-Queue-Id: 61F6F1BEBB X-Migadu-Scanner: mx12.migadu.com X-TUID: S7fkKcdAM4Rr Johnny Richard (2): parser: rename factor to primary_expr parser: spec: allow nested unary expressions docs/info/olang.ebnf | 13 ++++--- src/parser.c | 62 ++++++++++++++++++++++++---------- tests/olc/0035_unary_nested.ol | 36 ++++++++++++++++++++ 3 files changed, 86 insertions(+), 25 deletions(-) create mode 100644 tests/olc/0035_unary_nested.ol base-commit: 0e12f269f9beb2caf7ea43a3dd47e2dd3c67d96d -- 2.46.0