From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SPLUIsPzDmeLkAAAe85BDQ:P1 (envelope-from ) for ; Wed, 16 Oct 2024 00:59:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id SPLUIsPzDmeLkAAAe85BDQ (envelope-from ) for ; Wed, 16 Oct 2024 00:59:15 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=XFegzR2e; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b="W/xUZJW1"; dmarc=pass (policy=none) header.from=maniero.me; arc=pass ("mailchannels.net:s=arc-2022:i=1"); 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=2; s=key1; d=johnnyrichard.com; t=1729033155; a=rsa-sha256; cv=pass; b=Twf1gdzRAowm1eXVloMq1e0n8GoZ22U3dq5Hd0U5jId/0Nc9LvgKMba+99ojycvkQiwgxn Bn97m660U9/Exn+KxiWt9pTBavahW/s8KzLuTgFSiOdOFGYP5nlxPwxaN2oG4zkJYSNFrc fxXDMK9nPrMDeZJ7NZpiqC2S2+fJfBzjOJOHVxYfuAdkxRigS6FlwiwCncspmtfboLzGyx v7WtpS1pPGJiy5zcRErT2cFRWf2eOaChvlabkkululvoHxA4he4QxJCrOABs94PKsr8I6a nkVwwOonAZZf6pEggmLcrtDtLxOiO7Ny6Km2ws+y0BXtN/IsBg5rkuAjo/kgNw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=XFegzR2e; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b="W/xUZJW1"; dmarc=pass (policy=none) header.from=maniero.me; arc=pass ("mailchannels.net:s=arc-2022:i=1"); 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=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1729033155; 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=VwRj5kBilzCbbuY1yL403V1NR/ojKBOPxm1ghLiAeuA=; b=WFsJVcw5SNXknXZbd9/Q0NvrweUEb1zrC88biG2KIQQz+M3O/Ay3DaK9dtQ3XRl0oOp0RA zw51vQ0SEus6WaGj4ksOb3T0gw+mq4aH/3RJwquEQtUjzeEdQEi+vwUYhIpAAEslWla4TZ PlHhrgNm5VPfL0UGDakttFz+Zxrx8hx+3Z9XQ+8ugzyUgUjurcEztT0az8yhtDzHusbeLC omLAY44IqStWVGGQPujZj4o69KvqMyRB5RAw+WWLqDqlek99++HMa9Z7GvYWSJJrms5JPI ofDyTLWAvTBUIpKERk1NMG7SPwrv9iuyODAd8znlIgckzwibeih2Fkodvr1a0w== 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 63A5E36370 for ; Wed, 16 Oct 2024 00:59:15 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=szh8yOrdrZH/LWsKXPqksQzQmWkRRLvUC4R4HvwiqKY=; 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=1729033149; v=1; b=XFegzR2eOIK2v4aQtb65VHvuxgxeFGdE9bhWT/Ws+VDZk3GM8TwD20sAAtDPjM9x/6WCpqEd lBBooex4Tg/2LozxLgI+iY28h5iVizhbXf8Xvfqnv0/Mma4/BnhzCrDWmIDBtNf3AOKwFXDqbBA Twah7NnTP/y6VkyAwlcvKyZ1ETv/bVj7nZ3r/fp1jwpW25kg5jz/QmKHojF1H+hX/wBqhgd5/lG aTmfZO4Sp0Y0D4dAiTia5EI1/grDcYb80oNoECooYtRDzdpTH+Bpku3LmrKpXiU7Ssqwjq5USBk 1TJmS22eqzXDecCepQFVAzJEt5hrpX+pxXYBOMmHoaKug== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id D87AB2035C for ; Tue, 15 Oct 2024 22:59:09 +0000 (UTC) Received: from sienna.cherry.relay.mailchannels.net (sienna.cherry.relay.mailchannels.net [23.83.223.165]) by mail-a.sr.ht (Postfix) with ESMTPS id 4CA5420355 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 15 Oct 2024 22:59:08 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 72BC3A3EA2 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 15 Oct 2024 22:59:06 +0000 (UTC) Received: from uk-fast-smtpout10.hostinger.io (trex-3.trex.outbound.svc.cluster.local [100.101.173.49]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 9E32DA3FC4 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 15 Oct 2024 22:59:05 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1729033145; a=rsa-sha256; cv=none; b=9Kc+iteHXcAGx9euuLJme93beYpagLEv3a8GiY4kDR4AEVk0tU8FjUTtt0dcRYVNpLLeI6 u6sILsEvvS5uVgzt03pw6E3qPxAAt4+ruE/o4qMTxQyx/lcZicRGafyVVRyYk0PaYrPINJ IjWibcOfBIzKaN7J+nD2MRX711Owd4bqDaYZ4lVqW7NL5/usOLCg7M1lvmH3aeHowBoM+i YhjcKvCc4v5CKSLlwqyUuHoR/7jLaTXgDy8pEdD+fFzT164IaVuQsGn9CfqbIA7yLdCcZm 7aMUnZS4arCaKLm0ydI8R6RF7ddQWwq0WykYDWfD9clI9m/WIHBmUg00KuAtyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1729033145; 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:dkim-signature; bh=VwRj5kBilzCbbuY1yL403V1NR/ojKBOPxm1ghLiAeuA=; b=AV3YStqSl6jW2nQMMwUZMZ77/1Pn2+q17qXMAXpUUDRyKAX/HRExC6QksogSFSP7EI+pWE dNkvSG5shMfpoNAMeX+NuYgmgGLbjYO5ca5Zn8Pux/FqlgRA6acxhRn+GwFaf0lmncTEBi 9c5kaQAkyzjg6wb/YUsEF6IDorKyHL3RkPhgR73HMUZ+X2k74Lm0YrREAQpTs+qxtweZZS 8WYhTAvHxNZ0mu0u5PeAkL8qveHci1yH4Oe+X0d45oEmeE22yw0Q7kSgH9me2/qEAo1KJi HRnEAy3HaDMTU0araImHuh+c3OQfhsSbnrxFaCjrGliiYMHeIS7IQTWHW+hnTg== ARC-Authentication-Results: i=1; rspamd-6b8cf4b767-g2sgw; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Bitter-Wiry: 3649bb05576d0762_1729033146132_1666571973 X-MC-Loop-Signature: 1729033146132:2282918886 X-MC-Ingress-Time: 1729033146132 Received: from uk-fast-smtpout10.hostinger.io (uk-fast-smtpout10.hostinger.io [145.14.155.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.101.173.49 (trex/7.0.2); Tue, 15 Oct 2024 22:59:06 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1729033143; 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=VwRj5kBilzCbbuY1yL403V1NR/ojKBOPxm1ghLiAeuA=; b=W/xUZJW1Z+CqtaZvLv2pdtEdq2hZnAYlEiQ4F8nZ1124aeHsaaiyy+dkXlKbVK3DktVuCw BcyieKsT8dwqwAeyk+Oub4bvUjZ/x0F2RCoJ3Gy2pW2xizL1f6xMBxv7lPIgRAJCUMp8N3 Aak0N3curs9lrmopJNh4SBsfe16mSXFcWS9AiOL66hz5mA5PgH5ViJezaJhVrLMB3UJr+4 JcxJVK6Pjnl0kgm/PD2Z34N99XTgsFWXfCwHAQVqDs/evI/IOmBg8SbfVSdvVE5bYwGENB dRf/+nhFopUCKlnYGea8C9AGaZXOfnE233pDI3UApQrLc51rP313/9veZHUuCQ== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang] spec: allow comments inside blocks Message-ID: <20241015225750.211129-2-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 15 Oct 2024 22:59:03 +0000 (UTC) X-CM-Analysis: v=2.4 cv=TcnEtgQh c=1 sm=1 tr=0 ts=670ef3b7 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=U7an_XtFkLVy8TnmOyQA:9 a=BXDaF_L80NY05PYiAFlV:22 X-CM-Envelope: MS4xfBq2DzPJ0roNqUbI64Qeu2Tm2MhuaOP8qiEmCZvTEq0h6EQsQUwMmPPNiIUoD5gHA+AwNI20TrSQk46dhLsTslGQ8J7BTFQsnu15jW/tCdI9k9EXgayo 9KEFz8PAo5VdlGC88VeW4pqLu3aNFXnJlQ+TLQJ+rCKdGdl3cBAjr2w/43brl1BgI38J1NMBLdRq59p5CPUWJmqW/MAuuEtneG0775uf7Iv3Z3m0u0Kx3D3N X-AuthUser: carlos@maniero.me X-Sourcehut-Patchset-Status: PROPOSED 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-Country: NL X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.64 X-Spam-Score: -5.64 X-Migadu-Queue-Id: 63A5E36370 X-Migadu-Scanner: mx10.migadu.com X-TUID: krgTpKIL6WDS The comments bellow were now allowed following our spec: { # this is now allowed return 1 # so is this } Signed-off-by: Carlos Maniero --- docs/info/olang.ebnf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/info/olang.ebnf b/docs/info/olang.ebnf index 791c6f0..475be6e 100644 --- a/docs/info/olang.ebnf +++ b/docs/info/olang.ebnf @@ -16,10 +16,10 @@ ::= ':' ( ',' )* ::= ::= - ::= '{' ( )* ? '}' + ::= '{' ? ( )* ? '}' ::= ( ',' )* ::= '(' ( | ) ')' - ::= | | | | + ::= | | | | | ::= 'if' ( 'else' ( | ) )? ::= 'while' ::= 'return' -- 2.46.1