From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 gGWzKm7mCmYWsAAAqHPOHw:P1 (envelope-from ) for ; Mon, 01 Apr 2024 18:53:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gGWzKm7mCmYWsAAAqHPOHw (envelope-from ) for ; Mon, 01 Apr 2024 18:53:02 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b="PHq/+m5K"; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=RSnRY7Bd; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1711990382; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=hwyEV1zVKXhoBKpnQV2bWYvoPjv6QIPZEIGC+9/aB9c=; b=diVv+9UfmcwaM1ogVJA0fSdyfMAAb3b3uLEYWbxzkaS4ICO8rj/w8np57/+aDlzuydT8ds SZ741cUpiTp6CgRXBvOlLLG2Z4ehjsnEkeQIo0CKIoDx2cPrpQ7Zm1qydpMKTeD7CQm3Kf YcjC1cgGspySzoFNwncMtBwUroJ2iFBh6QeK8u/lwyPAR+g2kNF68tefqP9tZNlXQe2Khw b4gZUyb5qpDPJv75nfFkMg60x+tpLoRdEC8wJc1RFwHmSOeaRaNXiMIGgKu4PawBYk7pqf 59/YYiAf2kYx9m5CUs0zxLSD96Tpj6feYXoGv7CBi8qI2zgZXtv3x+Kpz7YMzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b="PHq/+m5K"; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=RSnRY7Bd; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com ARC-Seal: i=1; s=key1; d=johnnyrichard.com; t=1711990382; a=rsa-sha256; cv=none; b=r/IJXm27yufy1IIdiCkXsmEuVEllqXXFb7m9l4m3zannFx7NVA4MFzYx1WcYgvtHeHMEjd yI2ho5yUbks0nRDWh3FdKhbctHRUfte5KypIIqQ1+D9ges5B0GXzufm69UiMMPLX1b8sxo kM/7Dt10MyIpVw1bM55ZmyN5Bk3llck8DOktibh55IY42EddaV/fPhW8miSJiI/tQfbi7l G0lGZjnsG1mF1XQkZ8PKZG4Xj9vplQEDpF86q6LLZA5eQc4QJ0fEinbCbsRft0BMb97dJB JQtJbSLPo7Xn6Vu/8UsMfb8/ZZgeNSrlb0ioVmxqDNYFiFRRJnfo2aHa0oi3fg== 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 9B8E072C47 for ; Mon, 1 Apr 2024 18:52:59 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=vWF865VXMnvSxI05V2hjDbfEjaXP/zEltO0gInIP/Xg=; c=simple/simple; d=lists.sr.ht; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1711990379; v=1; b=PHq/+m5KnT1dsXLeqJ5VpW9XqmHUBEGFe6dl1SL8tZzKseZAeO2AFeKsrIrwmmZ/1DvlAi5F IueQF1pDz23rO9QdR5S6voZYLjugR+SMmpcsrSEgUcpb1w7ITe9KPsmv+MA9o+iuzuE0f3GEXsM THc1Wzu+9FcxgdbZZpOE8UXlBAM1Gc1k6DW4yD7sVVL4Vb8wYoPMUUJQY6ovzxvyIFyFTeFtYDi Yx8ZMCWAl0yVaOUp7yLDaq+yc7ie8bqKP0SiHKs29McUpHwD+0LxDDmz5DekBU13C/iE8iIlU5v Zlt4g4rmf/tkqAtDHbeohgPJXkyxcWogWj9SvoEgMbTVw== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 681E620201 for ; Mon, 1 Apr 2024 16:52:59 +0000 (UTC) Received: from out-187.mta0.migadu.com (out-187.mta0.migadu.com [IPv6:2001:41d0:1004:224b::bb]) by mail-a.sr.ht (Postfix) with ESMTPS id D23F6201FD for <~johnnyrichard/olang-devel@lists.sr.ht>; Mon, 1 Apr 2024 16:52:58 +0000 (UTC) Date: Mon, 1 Apr 2024 19:54:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1711990378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hwyEV1zVKXhoBKpnQV2bWYvoPjv6QIPZEIGC+9/aB9c=; b=RSnRY7Bdb4DpmiD2wcnjYMi+/X9NUY4KuE5dMrwil7vCPAmwVrLCbJ8Fos0cuhDAKGzZrL eFhuJjaDdQDM1f0xoXMFXLwL/afI2XkfzQf8NP9FLFdYuA+omPUEXNDyGc2OQXXBVt/hMy ch0xh672p8qSbcV9boHxa6KSbxFUULMfqdXBEt1+BSgQ7rOdiliIUBetx73EBSxxB4vpdY YDinQRtD7Rk2rxrg+KHlc4IzOvkZ2IZ7dWMmRCZ1TY9se2G+OWgJ6IesUNrpZKlsjvKYGK e/n6Q0UGIn/H/stmu+tMSx0zE3Pvbt7O6W08RBbZ/RGXNK94Cl/Fy4IdyEMiog== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Johnny Richard To: Carlos Maniero Cc: ~johnnyrichard/olang-devel@lists.sr.ht Subject: Re: [PATCH olang v1 2/2] docs: spec: add variables and constants specification Message-ID: References: <20240327032128.406911-1-carlos@maniero.me> <20240327032128.406911-3-carlos@maniero.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-Queue-Id: 9B8E072C47 X-Spam-Score: -7.12 X-Migadu-Spam-Score: -7.12 X-Migadu-Scanner: mx10.migadu.com X-TUID: vEz8BGYvvCrk On Fri, Mar 29, 2024 at 10:14:56PM -0300, Carlos Maniero wrote: > > + ::= '=' > > + | '*=' > > + | '/=' > > + | '%=' > > + | '+=' > > + | '-=' > > + | '<<=' > > + | '>>=' > > + | '&=' > > + | '^=' > > + | '|=' > I believe we may need two non-terminals, one for assignment which is > just the '=' and other for reassignments. > > The statements *const x: u32 += 1* is valid in the language but it is > not valid, but I'm not sure if it also isn't a semantic issue that most > ignored for the simplicity of the spec. Yeah, you are right. But I would love to catch this erro during syntax analyses. This error looks like a grammatic problem. What do you think? > Anyway, since you already addressed most of the issues in the spec I > propose, few free to send a v2 or let me know what you think about the > points I raised so then I can proceed with a new version. I can wait for other revision from you, no problem at all. Only if you really want me to do it.