From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MBtuBdwWEGduJgAAqHPOHw:P1 (envelope-from ) for ; Wed, 16 Oct 2024 21:41:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MBtuBdwWEGduJgAAqHPOHw (envelope-from ) for ; Wed, 16 Oct 2024 21:41:16 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=SaISO37Q; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=ZnEjeFRF; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=pass (policy=none) header.from=maniero.me ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1729107676; 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=I/q6AFOXKwLR3XRP+f1K7rYhNr/GA/fA+qd6jTEwmSo=; b=m8J4ykDzOv8r57Net/47I+ethueIhdOcJ6uRzdyhf71rdqZYhZH0fvlL7o55XfwCjFm4aT q3cN/xoHvvF8TN36vAYGTmi+AGD92tkuB/1Y9j1/GkjQ2Y4mCyb9xcyNzV64sPZpVI88Iy jya+aX0WspkPuEwYmTfsQr9atm7yb9LWBiKDNSARHekl9KlXuQDRBQF7GF8K0N1XSSCRXf kNmsuyUaplnefm1BdR7TSCAmKcv7dnmPISsZ2KVXWTRJOKIbEsM4hnQLfo0DMY5fy4K0nV qmzDymQIYf9DVhQPjWv1cvrqr86/H4KmQojxLJD6/J5C5Sm+kPsuk/87K9eFGg== ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1729107676; a=rsa-sha256; cv=pass; b=K92dgpKyVzMrQdkgbaA5Wme0BbysvifbANF2ZVYZN5X0TFO3Wf7S1ilQyDtC0BalhjExjL sondMosG0FXKtAoOslX1ZS/pPInhssk5EB1l2a7tdg/DJSh2d/ZFlXzHkQNhu+2SdgF/rB K8y947EjmM9/njYAf0QAsLVpi8dc0IQTaLcrCjJAFm7sXYWcHZzlDWZmTqVD0ZvItA5apg apBE4AP1BUA/I99M8g0izA/8DZuULZjc93sDCJCw3XoUYQ/OXGy8Y+7ybK1YX/7sXelexD qmaPZWO4ARub7++2ZT8bwb3hynfGFjM/yy5SBotxy8BdIasduO6TmGgFwKsAsw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=SaISO37Q; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=ZnEjeFRF; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=pass (policy=none) header.from=maniero.me 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 EB10950B49 for ; Wed, 16 Oct 2024 21:41:11 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=cXKb7ezE+Kb97rRwTWKjZkFcL+kr3Ci5RvxU30RJ1Gg=; 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=1729107671; v=1; b=SaISO37QTcvqITQMGOdIBHQ5FOYC/rBBXQ3/ZFkA79AT09Aigk56tg1qX5xOE99HwqYO+ipr c3JHCKHNxV5oQCml+2Dv9qAnD4NUUek0IdSkBmA5ietX0Ap2S+osf27Z+Qt8eI1mrvVPmOWpE3v 5bFSW69K3eFgoeAM10qfwNvDGjJFFZuWjFpN08IRNPM9v/BSDOHww7c+7784uZGbl33QLHVyqWE Y9buZtiyaTrnNOTrer/T7QsWWg2jsDKpUtGaVIh+0TXsNsOb3RDGCIO4Ncbs7zpsNpPPpZOjOQS 2RLWvSncRdDSAquRCn0fHQCFZKsFQFGgcsFlyBGdPhStg== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 8C24220299 for ; Wed, 16 Oct 2024 19:41:11 +0000 (UTC) Received: from seagreen.cherry.relay.mailchannels.net (seagreen.cherry.relay.mailchannels.net [23.83.223.160]) by mail-a.sr.ht (Postfix) with ESMTPS id 041B920291 for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 16 Oct 2024 19:41:09 +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 32C768A5350 for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 16 Oct 2024 19:41:08 +0000 (UTC) Received: from fr-int-smtpout5.hostinger.io (100-101-176-47.trex-nlb.outbound.svc.cluster.local [100.101.176.47]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 57A518A1CE4 for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 16 Oct 2024 19:41:07 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1729107667; a=rsa-sha256; cv=none; b=NS+6c+trZMNXhJt04LJfc2T5xQJsfUxoZHC58xHMudnuVtOhuebG8gHB+Ck/uSol6L18O0 5EbH0SwGcgt9Um9dYHyBOzTQSBDvkfKhXPW2RupKtESoLusTVebnFtgmMiT120F3MLrVYi Nf5pvsuSJR5Lq54ZsulM9YbzbdzS6KSbs0hHosbMcBrljcEr1lLBC7PcsLacXEtWA/BgJE sFg9uwQ2e+wES/VDPPhpR1psVnTpxkkUcOfYA0xih/9LR9Pc3oS2mQu073ctjLtcfW93d4 ++/cVsDR/zng+P7hWhAhIg60nigz78aQO79yAYFqjfFxuBaywGJ4Q5dEYeNR4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1729107667; 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=I/q6AFOXKwLR3XRP+f1K7rYhNr/GA/fA+qd6jTEwmSo=; b=He/+0Y9jNiVCJxb8I3nhCImnJJ3Jpy+eUznOIdNd3fV2Iv3XENfb1AU+R2DOV8FGcNqQ6Q 3ajwXudOMj1iZuUVTeSUNfnQJHE1QxbgTH3V9Up3Fg7rBJxV/+WLEbrpXu/DyQ4yFXZf4b 9ryhdYdRRh2YNq1y1rDJo35C/xl+Q1VMmtjSP9VEH1oRZWa8zLUrwOyOI4CnlLyUFuegO7 pG0uHb8WW7uWNXEV7sMlqveU8CoMZsxA6s3VD4yLIDtrOSQMiPu58iJAOgg/pH2fFrGwH2 AIuJG/FbMcDszYkyiRuqfRh2TaLwSsRSARKkStUAgDj0SrNMAi4IzfXBSHuTfw== ARC-Authentication-Results: i=1; rspamd-6bcbdd57f8-kdmjj; 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-Stop-Cure: 0706893a77770185_1729107667839_2361592074 X-MC-Loop-Signature: 1729107667839:653144873 X-MC-Ingress-Time: 1729107667839 Received: from fr-int-smtpout5.hostinger.io (fr-int-smtpout5.hostinger.io [89.116.146.168]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.101.176.47 (trex/7.0.2); Wed, 16 Oct 2024 19:41:07 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1729107665; 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=I/q6AFOXKwLR3XRP+f1K7rYhNr/GA/fA+qd6jTEwmSo=; b=ZnEjeFRFUiQ00JluUQZy6qvwAGv3sBuL+y2py0p59Ehk9sGd1JlNL65e5G0AHXtCGnkvJi UmqcFHy3LAnf9PN6U1OX+CPnJXZdMKQS3kaF6g5nG+wX+yKtwaVtJVBSE+YXIDuY4+R9QM dNx5K6G2+vyjF3nuJDetE37sVlRag7Dfsow0JX6+IB3WcEcZRTlIkd3b/GrtGJCKPjhml2 yiX1tQ31/pbuQlThGB2j1TqBOOANJxZl5VIUtJg8ZdVaPYsFxTaAqdMCXCKNX1hFgokQNG HQgtfMGbhRSINnwSJSBG+V6Ae7rbCplb5JwNzyn4B9tmGiivbWWSa3dC2+8c/g== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v2] spec: remove comments from the spec Message-ID: <20241016194054.231344-1-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Wed, 16 Oct 2024 19:41:04 +0000 (UTC) X-CM-Envelope: MS4xfJzICmROaE3lAFM2J0rt2If3xjxVaC2pU7rmcDgESimXJfRbycpbgvcE4CPiWMwxdkmUOE5difTbVsIDw+hHkN9Juc3q+7g6lX57OrrLny5krCZyQCCa dqBjrrGZ+t6Yy61BLLxIqKdJunVM7JWDJPiTMjF87ufCl844qR5aNlfmbD6PeA0d6FZ1M17rNgWfO3NniKeN+9AHmU/F75pXF6xySdReIXBB41mfbd2xqivv X-CM-Analysis: v=2.4 cv=Z6G+H2RA c=1 sm=1 tr=0 ts=671016d1 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=l52BXoxXMo7Z2uNFoWUA:9 a=BXDaF_L80NY05PYiAFlV:22 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-Flow: FLOW_IN X-Migadu-Country: NL X-Migadu-Spam-Score: -4.83 X-Spam-Score: -4.83 X-Migadu-Queue-Id: EB10950B49 X-Migadu-Scanner: mx13.migadu.com X-TUID: +4SNHrwxaHnH The comments bellow were now allowed following our spec: { # this is now allowed return 1 # so is this } To avoid spreading the comment all over our spec, the comment is no longer part of the spec and we are get riding of anything that starts with #. Signed-off-by: Carlos Maniero --- contrib/bin/run-ebnf | 2 +- docs/info/olang.ebnf | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/bin/run-ebnf b/contrib/bin/run-ebnf index 4b2b559..85b7c35 100755 --- a/contrib/bin/run-ebnf +++ b/contrib/bin/run-ebnf @@ -19,4 +19,4 @@ BASEDIR="$(dirname "$0")" DEPS='{:deps {instaparse/instaparse {:mvn/version "1.5.0"}}}' -cat $BASEDIR/../../docs/info/olang.ebnf | sed 's/<\([a-z-]*\)>/\1/g' | FILE="$1" clj -Sdeps "$DEPS" -M $BASEDIR/ebnf.clj +cat $BASEDIR/../../docs/info/olang.ebnf | sed 's/<\([a-z-]*\)>/\1/g' | FILE=<(cat $1 | sed 's/#.*$//') clj -Sdeps "$DEPS" -M $BASEDIR/ebnf.clj diff --git a/docs/info/olang.ebnf b/docs/info/olang.ebnf index 791c6f0..0bc7eb5 100644 --- a/docs/info/olang.ebnf +++ b/docs/info/olang.ebnf @@ -1,5 +1,5 @@ (* Entry Point *) - ::= ( ( | ) ( | ))* + ::= ( () ( | ))* (* Translation Unit *) ::= | @@ -76,7 +76,6 @@ ::= #'0[Xx]' ( | '_')* (* Utilities *) - ::= '#' #'[^\n]*' ::= + ::= * ::= | -- 2.46.1