From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KIhhL09dGGd7cQEA62LTzQ:P1 (envelope-from ) for ; Wed, 23 Oct 2024 04:19:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KIhhL09dGGd7cQEA62LTzQ (envelope-from ) for ; Wed, 23 Oct 2024 04:19:59 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b="S+3ylq/M"; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b="OmE/ftFX"; 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=1729649999; 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=xukz7mvbi01wvpIFzDI1CwDznVGfPd3CW/uxXg0p2Qc=; b=EPpfb/5iM/j86bkQg11IV8x6W6B8HM4+PpN+ywxLTmBS2oCgpFu48p+GRNmWuja8xRCZo/ rt4TR4TobHSBwA5cQPu7PB0R0nvU19rLg3xVWi610j2Hj/xi9l/psVk9wxtcK+ud1YY4m0 mK8zAEoc9WDQdHvN0NcvUuyew4HNN/LWmzKJ1Bgn7Ar4735jTIQTsqyIhTuVq91jcd7CdN yYAosjTZJqCHDGLCJx/h3uAw1OqyFNa4v1ARfYq3kkbs5Q0XHUHCJUgqknFXplf8T2KiiW 7D8YK3ItDXAPc10lUcTnlWVq0/igNXf6ECfmmvHUdW5DHCzvkOPbMO6PwombgQ== ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1729649999; a=rsa-sha256; cv=pass; b=Ot/R7BpflNxUTjh75j4i5X9+Kf9NuGE62wcvx6Fskb/An0tl+k+zLldbFdjBVIvI9TF0M0 OJRvnaEdK4cwdxs4kE6gFP239B8OHrZtbrEobB/AyPcE2nsq97xH1FsYjQ3fuaNUGyYin1 9SCuYjvwpuHj9tgj+isrZXEVHAX/kWvXhvlueG70d5+34DZeYAuYnqInEN8iKOpewpktUp KkRK/0m4BwfIWHm/p0wPMp7i8XOCSrtn4RupAzP6pz0+7CH366oBj3LgA1R96cFBcfkJ5T MwNSWderTUm9GTdjsrLSgKG2DzETVGrWZHjCGvdzqeIkyEPomXiZ9MMr3tslBg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b="S+3ylq/M"; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b="OmE/ftFX"; 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 4DFEA51EE4 for ; Wed, 23 Oct 2024 04:19:59 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=nT83wAdn7nfjSj0Qn/4SIFRmhi0zUgYWvH0IV0fCfKs=; 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=1729649998; v=1; b=S+3ylq/MPruP3v+Yv6vQbFdDe5InuuYzNzOoKwH8K0wCPOYLtIGWMufoeBwEdQeuuotpxJpJ tDCL9jssIp0WIAcmnENiEjaQE+itpjfK9+K53I093yqztpWlRyJSt91ZcllWPGQZ0Fw0THw9fuX 7qPgpzQGJKhgu4KkZxhK8myhbQ+tTagxkpjVIXVcty4FGw3wzmV+S0vqFx1uEYkZfn/28VGcv5j NTY3oVvYSA5Yi8HqUmETO1PcFLMNGSdndZb1/1o//wdMNkHfyNf/8mPK3xnbr4Jcwy4QM/tGz7I D47dYQyVDeiIKUPJkidZb8ynujAlLl1bE6pynHsQlOvkA== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id B3174202BF for ; Wed, 23 Oct 2024 02:19:58 +0000 (UTC) Received: from chocolate.ash.relay.mailchannels.net (chocolate.ash.relay.mailchannels.net [23.83.222.35]) by mail-a.sr.ht (Postfix) with ESMTPS id 795B3202B1 for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 23 Oct 2024 02:19:57 +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 61621C5322 for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 23 Oct 2024 02:19:55 +0000 (UTC) Received: from nl-srv-smtpout1.hostinger.io (trex-13.trex.outbound.svc.cluster.local [100.99.209.159]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id A5296C532D for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 23 Oct 2024 02:19:54 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1729649994; a=rsa-sha256; cv=none; b=xOR8R71vBVKyYNOqnUlM5vXNXG8celBygLaoSTt8DXrqzD5o0xOWQGPK5IN3DfsBZTmBKa Fh4XqwL9xAw42I7j7um/tkLX2hqtHST7XP1EEtjX3VhTCZmFzW3aGcujPB6/Ds5DKuKppj I56tuFQPgSUOKtA3QOUnyc2lF6Ys0NT00iWXn8MMXjzzRkoHlnw4OUV506p+zCFE9HatCm YEaF3ZY8wDfluOqdP183PFdE768F2X0FaUIuSsR2EChhC6aEs4lKguda9KlU6S9A7QjKgM Fc548mNRGjX5n+M1JLv9+a+4b00Ev57krt+2LiDWCmlv6nv0RMTKI7f41m5Jiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1729649994; 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=xukz7mvbi01wvpIFzDI1CwDznVGfPd3CW/uxXg0p2Qc=; b=qrv1YzItKlYX23i7uWBLIQmAYWig5jNIqLKNBJNIxxwFp7Ki/vQx+Oma+5ZWue/rHisgzh ISDZjVSIGWMJMG8TOoId730B2Jrtm4udjBdcmnuZf96/M2SYvzagdA3jQ+DRFDVS/7x9Pv o5nobxJJdtq6u1Xb8CGU7FnrBVFL/vcjqVJvkoV3+BBUsiXcPdbX+cD437L4kukhnZWmtJ KR4a+nGsH/6/ABMfQo5JNhVGp+VnXVmjVVuKyqddmVRjZqolUaGPE5j0jZIE9XYJawEVIT MkhIf2E9+Qx72QlRjiXPwG+nYGtB1iUcbCECAEQfCOVuTeVPITC2zUIiomF3Yw== ARC-Authentication-Results: i=1; rspamd-7d55d965b5-lg68n; 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-Well-Made-Wipe: 787fa3f5645b4118_1729649995139_3714068454 X-MC-Loop-Signature: 1729649995139:1844389609 X-MC-Ingress-Time: 1729649995139 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.99.209.159 (trex/7.0.2); Wed, 23 Oct 2024 02:19:55 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1729649993; 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=xukz7mvbi01wvpIFzDI1CwDznVGfPd3CW/uxXg0p2Qc=; b=OmE/ftFX1Hr3fqp475y7M9O8HJsUZAgWe0ozVJq9aQlJDsDmsx/kx/ChP8Bxc8c361f3AH avvOhzB6c1+GFmwiVJOdU6GJm+ElferbC/57ZZ15GzKNzqsQTP0KFHiHyAHRZ3QWqPl9Y/ ZIima3aM4EmIm5XdQb6RBzNAu2ei4tVNusGrZS4ifGYvXJAApABG9vac9hNzxKfDQUOsw7 BLVVQglYF3jySX+13Tze2lg5mgNeufcDN2iKlGAo74lWIS1tCEq5PSFObqHP2cgUVpHv6f is8iBi3h6vc3lFtsA5vZIk3V5PB818i3uL33s8UOFjdLVCZMkwugBveHcKfVRw== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v1 1/5] type_checker: rename checker to type_checker Message-ID: <20241023021941.38321-1-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Wed, 23 Oct 2024 02:19:52 +0000 (UTC) X-CM-Analysis: v=2.4 cv=VemlP0p9 c=1 sm=1 tr=0 ts=67185d49 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=mDV3o1hIAAAA:8 a=9KisMK1rK_g-DIe0jzoA:9 a=FkCZZD8GzSt-lrsu6tJP:22 a=BXDaF_L80NY05PYiAFlV:22 X-CM-Envelope: MS4xfJgzluwYU7wVsfOcRnH4jsZKfINa+SQfDS9GWUPHYF+NjrUwGU1R99ByRul5UGu4dYwSR3JWcvzYEEdeDVg7lRXYximbZvfRMIc+CSMBNniFpipeA7qi bgI3xbKkdxUblHvP30FF9y0ErjDubC8lZTlK16MGlQj5RO3tK2Y2nMD5NbvS5ItQ9/YgBIFge2FXImFl95fikisQXtuuro6F5OI+4wJJUBy1SLkNJ7V9s/nR X-AuthUser: carlos@maniero.me 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-Spam-Score: -4.81 X-Spam-Score: -4.81 X-Migadu-Queue-Id: 4DFEA51EE4 X-Migadu-Scanner: mx13.migadu.com X-TUID: M/pk6zW9fRJB To void adding all the semantics concerns into a single module, we are renaming the checker file to type_checker. Other checkers will be introduced as needed. Signed-off-by: Carlos Maniero --- src/main.c | 2 +- src/{checker.c => type_checker.c} | 2 +- src/{checker.h => type_checker.h} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{checker.c => type_checker.c} (99%) rename src/{checker.h => type_checker.h} (100%) diff --git a/src/main.c b/src/main.c index 685d8ce..c99ccfc 100644 --- a/src/main.c +++ b/src/main.c @@ -22,7 +22,6 @@ #include #include "arena.h" -#include "checker.h" #include "cli.h" #include "codegen_aarch64.h" #include "codegen_x86_64.h" @@ -30,6 +29,7 @@ #include "parser.h" #include "pretty_print_ast.h" #include "string_view.h" +#include "type_checker.h" // TODO: find a better solution to define the arena capacity #define ARENA_CAPACITY (1024 * 1024) diff --git a/src/checker.c b/src/type_checker.c similarity index 99% rename from src/checker.c rename to src/type_checker.c index 02341cc..b426349 100644 --- a/src/checker.c +++ b/src/type_checker.c @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "checker.h" +#include "type_checker.h" #include "scope.h" #include #include diff --git a/src/checker.h b/src/type_checker.h similarity index 100% rename from src/checker.h rename to src/type_checker.h -- 2.46.1