From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sFndMUPq8WZ6TAAAqHPOHw:P1 (envelope-from ) for ; Tue, 24 Sep 2024 00:23:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sFndMUPq8WZ6TAAAqHPOHw (envelope-from ) for ; Tue, 24 Sep 2024 00:22:59 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; none 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 B9A867CD28 for ; Tue, 24 Sep 2024 00:22:59 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=p+NqevlTVZ952hvHFKGTMSvK4kfJ8LEnTSePGS3YbJE=; c=simple/simple; d=lists.sr.ht; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1727130179; v=1; b=qKSz6Iajgj/7ShrDTVjqavZiHEUYd/XMRDubi3zq5gLczD0bONUR+d3Zh9enYZ99+7jfTU2C F6482JXkdVtlhYDi6FkQRVJi3wZaqWbzRszldICvROfXAIAFqMU96UHRnsadrnrwChMoOts1P2+ v6XsusJpMF5MYK8aAMLu9opIuoyBRr/FBfBQr5/QtDO+O2UGXmjdIRDgkpmY6MhQmil5zo/JJgj utMz0cq5nFb/xGRCR6hbzbCNPVtNoPjoJlNVHZ+UbUpjdTbPvjWo8Mp2vlVo83NxNTGg9Vu+aix Q4ARQXzdi4xsi58YQ7paTvkskPDxRdYPuhtPI1QTk3WaQ== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 88E8C20221 for ; Mon, 23 Sep 2024 22:22:59 +0000 (UTC) Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) by mail-a.sr.ht (Postfix) with ESMTPS id D61FF201AD for <~johnnyrichard/olang-devel@lists.sr.ht>; Mon, 23 Sep 2024 22:22:57 +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=1727130177; 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: in-reply-to:in-reply-to:references:references; bh=kn/Xd/dG548TXcALGfsVDNvRfO9DWYokBM7fMExJpFE=; b=MFhZGq8xrEw5ed1wc7UQhA/vFJR5XuUWyPplxJJvU0v9gCqOq/V4bF00D0EJuWoOADQaKh 0c+mOD6CfSyaKV6N0mEW9OgZ5Q2o6zR/Y0t6kml3SpjSN2T6e+17F5wWfco/jahyRXrDUk s4yNBiHdB8RJP/9driQz1SLedBZY0ZX+Q5ENlgMTsKUox8uov2xYhPWCQ91kk6wdygdtXp G+Pa/JiCEeHW6ioq0dzCpnwOwX1XxuwBzJ11cwITO45fLr1kyQgBzxoQYifmNCTAgVcxCh dfLwaQdgL/rfImaw2n40jSuNlPShS2gn4uXqHodiaJ/CouCpxno40oui05znlw== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v1 1/3] spec: add function params and function call Date: Tue, 24 Sep 2024 00:19:58 +0200 Message-ID: <20240923222229.151017-2-johnny@johnnyrichard.com> In-Reply-To: <20240923222229.151017-1-johnny@johnnyrichard.com> References: <20240923222229.151017-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Sourcehut-Patchset-Status: UNKNOWN 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-Queue-Id: B9A867CD28 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.00 X-Migadu-Spam-Score: -4.00 X-TUID: uXyrQ/pwSpj/ Signed-off-by: Johnny Richard --- docs/info/specification.texi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/info/specification.texi b/docs/info/specification.texi index df5c029..9144133 100644 --- a/docs/info/specification.texi +++ b/docs/info/specification.texi @@ -33,13 +33,15 @@ language. ::= '=' (* Functions *) - ::= 'fn' ':' + ::= 'fn' '(' ( | ) ')' ':' ::= - ::= '(' ')' + ::= ':' ( ',' )* ::= ::= ::= '{' ( )* ? '}' - ::= | | + ::= ( ',' )* + ::= '(' ( | ) ')' + ::= | | | ::= 'if' ::= 'return' @@ -74,6 +76,7 @@ language. ::= ( ('*' | '/' | '%') )* ::= | + | | '(' ')' (* Identifiers *) -- 2.46.0