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 +MvVGkIDCGdLCwEAqHPOHw:P1 (envelope-from ) for ; Thu, 10 Oct 2024 18:39:31 +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 +MvVGkIDCGdLCwEAqHPOHw (envelope-from ) for ; Thu, 10 Oct 2024 18:39:31 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=CufPYOGu; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=oBtUSaQY; 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=none) header.from=maniero.me; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1728577778; 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=TPlof4WtBG7ZTuGk/fHHnrLe4LiH1oRpYRTMa1ZzZTI=; b=PCf6pS3PUX161SspVP5kypJOZ0iwB1Z1pv5dwf9Akp991Dp4z3ouTG1xFlgieagcpta+S1 7Ps/A3ISeAKCGeTOWAYXk64KLWYVnuLQMeHAOKjzYe43yzx0fp4uDU5FkR6eIYPRHCXcCf zYp/awxaAwGprCKYFZ3WyuuEJuVfvo89kGjowty/iut7+l6ODieSHf+ecscbffXVJbPpsX IeQR89ebFWfMvL4mEhuv3mAoa+vySGsYqY2WLBtg6bic0KlgdtwV/7lb7OH5bxKamk683I j0TUcjbuM0vrD/DImAj6dITWv5bF5EKmrGlqVsVxHkMIrsBuffJ1qQ6uE8ZOzQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=CufPYOGu; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=oBtUSaQY; 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=none) header.from=maniero.me; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1728577778; a=rsa-sha256; cv=pass; b=R1FaZCrdthf8Nu8BTddOuLdZCJd8AbJ111OSBorpFtU52pgp/8SFMbtFGA1Ll+3UcQNOqq ENWF9R1Qx59nnGNH1Ux4GpdNEWZmY3UKYlb0EPQPLFZX7r/T/vXBO3Dzu5/9go9YKNHMFs 5giS+zw7DsztMGAN0sK7AjaU9et6HEM+ML6FyW+Fz/XxqFjBc05ZMmWRQZ9kqEgfFQjuph lmU+UXX2kAvFom4OkgxayDWKdjz00sziQL7IiYz6dsbjJqIWGfG0duLVvzJ5fljHrZoggt I6VCu+e7nGVw4cVuGGVZqgV1C3+DIuN0uRlARk1gQBeR00Wij1sY+VYFQRjEeg== 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 0BB7886B9F for ; Thu, 10 Oct 2024 18:29:37 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=lXPxUtW1kIIyLXOK7TBnOcxGhccBixxv6ehlYadba0I=; 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=1728577776; v=1; b=CufPYOGuyJ8x0+no9u5u+5ySsDJCjk4qIqO+LV2YM8hBMT4P3GppR0PokeJb0G4L0pUN8ic6 U+wYT8qnKFFyvmL8WtpkQCQu3D5DtFXrq3hRu7HvKUboBSu4xvGnnNCFDrUkU7maW38GwDgM/Qz wOhMff0CNP2izCdAG7YPqqLFnPKwWJfmkxwvDTDN9yhVIw/3gfrDAAjg1IWxMaZFXzLWM7h2oKI Uwr4ThcP4ekXHgBs0SNReDWjYbE2bnP8cuqqwTsa4cNPOrx4jE7/HHm57kAzT9M8NKFKuXkmKuI fprnUPm5uXrzneEZSrjJabkAG83X0M/bwimxJMTx2mdrw== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id A6A522021E for ; Thu, 10 Oct 2024 16:29:36 +0000 (UTC) Received: from lightblue.cherry.relay.mailchannels.net (lightblue.cherry.relay.mailchannels.net [23.83.223.104]) by mail-a.sr.ht (Postfix) with ESMTPS id 35649201E1 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 10 Oct 2024 16:29:35 +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 EA0D17849F1 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 10 Oct 2024 16:29:32 +0000 (UTC) Received: from nl-srv-smtpout1.hostinger.io (trex-8.trex.outbound.svc.cluster.local [100.97.21.148]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 36DCF784957 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 10 Oct 2024 16:29:30 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1728577770; a=rsa-sha256; cv=none; b=qhALlkc5uQVZsSdKX8iOj2WXtqq0UCwTpAvPspiqhYqJgoIReAb2v5P1r3TIJnuLsNMK38 3p9A8EXw8yPQ0mlS8F1v1c6DfyHRiU99hKewiWL+bsNCnK37vXjvJcnJGFXIS6aVpNttjB dit5VLskPENWRaLcDJ6YoEw76jr0nHcEPQtTQMYs9FUKpd8HSJcWOBk0Dvvlh4yKOqbMTu Y7Hr8IzmMkVlV0kkUVTbbLl6QeobE5SdtDv27n+zRby+zpy161T3Wo/P2UuGNuSUn5OPGh TjrWwctJH1fVgCQ2m8R8iVPapcotYfbSxZ6j9eiBZkQnq0G2+5CQ1RE8yfTL7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1728577770; 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=TPlof4WtBG7ZTuGk/fHHnrLe4LiH1oRpYRTMa1ZzZTI=; b=HLQyLI6rFYd3SllaPt6iE7yh7QKg/JzRHYu196XROeXMZ0UKvyX9Oe7qSZ9SNaNTCZZMSN umIef5qBzDR124paxgUGxRxYLC6NcZGOTPU+VT9jyrxrpggeHBzcVDApT1CIqc5JaO/ZBj sU2nEuSAmpTfszFjFD2gF4mmHSaenwbYIfTk21tUh9yaObD+b1il+aYmfSUmq70ZfaN8Bq IKmmfaAbKXBZzJ/GnLveQSDOMDEBy5QXAHOwskYKR+SqUMzxjpyZesplYAbkAb41FjluCe S/hVZNr+Suq5KqePWkhoGsgsI5gHrGRMChuqjH2lEMC+r63MepApcCrVibQewA== ARC-Authentication-Results: i=1; rspamd-5fcd6bf96c-9xvp4; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Good X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Cure-Abaft: 1705c3151be64675_1728577770705_31796346 X-MC-Loop-Signature: 1728577770705:2757933407 X-MC-Ingress-Time: 1728577770705 Received: from nl-srv-smtpout1.hostinger.io (nl-srv-smtpout1.hostinger.io [145.14.150.87]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.97.21.148 (trex/7.0.2); Thu, 10 Oct 2024 16:29:30 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1728577768; 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=TPlof4WtBG7ZTuGk/fHHnrLe4LiH1oRpYRTMa1ZzZTI=; b=oBtUSaQYUZmSbKPizM6U7GHFCl3KE7UkxNtG9jpsWtZV66ZEvFXbl7Hoi58SUGJm67lB9k ArKtH/sOhtri4YTPKl3l72jAqwfuZzcqqQeeHezANfOyJr3Qf+vMmttzcnJaJEuBCB7yzG hvUyj6KGKHXt6q5K5h6SDg68jvmFuBNvx2zOnSQHLv7rPfNveadE6QbQzOULiuQF1uFJdh 9tzqUetjZdocKmQaPOQ4iUV1TXNhP/QnSim7/2GQQbGblTz7jQDu6map643NjSw/lzsHr9 Mj80gI2wD/LEymvbtVm6TFAZ2A1jek45JUMXP4cb/OywfQKsBIWWtWe3+jGaXQ== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v3 0/2] spec: parser: enable expression on function level Message-ID: <20241010162918.338338-1-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 10 Oct 2024 16:29:28 +0000 (UTC) X-CM-Envelope: MS4xfC4AbWM2WxvPMyv9LEMeUBvtuesZSwSlGhCAInRKSQsbiKd/7o7xmj4GzCuR6vjG1zqp0gUvQ0RD7rLxqVmWEsLHpPoxg4Na+gHZhtDdyoDnC8feVEj1 oam+frP5Zg1Y8KbGTtIVyU0LO7h5+aH/ghv7RnPlFy6SFvBIPa/2iilhJkErqmyQ/Tks60DHbRJbyyLU34+sIFGRELroxk22k3uIqilw6D1d/2HP/WAKhT+j X-CM-Analysis: v=2.4 cv=bZY5U/PB c=1 sm=1 tr=0 ts=670800e8 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=fz6ZaHuVDCML7rrcdiEA:9 a=BXDaF_L80NY05PYiAFlV:22 X-AuthUser: carlos@maniero.me 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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.60 X-Spam-Score: -1.60 X-Migadu-Queue-Id: 0BB7886B9F X-TUID: ugObN5TZX2PG v3: - transform the assignment expression into a binop - fix unary precedence Carlos Maniero (2): spec: parser: enable expression on function level parser: fix unary precedence docs/info/specification.texi | 18 ++++++------- src/ast.c | 14 ---------- src/ast.h | 2 +- src/checker.c | 8 ------ src/codegen_linux_x86_64.c | 35 ++++++++++++++----------- src/lexer.c | 1 + src/parser.c | 43 +++++-------------------------- src/pretty_print_ast.c | 40 ++++++++++++++++------------ tests/olc/0029_var_assigment.ol | 2 +- tests/olc/0030_while_statement.ol | 2 +- tests/olc/0034_pointers.ol | 43 +++++++++++++++++++++++++++++++ 11 files changed, 107 insertions(+), 101 deletions(-) create mode 100644 tests/olc/0034_pointers.ol base-commit: d45df92d81f00059ecd1f6478bac7e4511d9fd8d -- 2.46.1