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 ms5.migadu.com with LMTPS id uPvvEB9VEGdVAAAA62LTzQ:P1 (envelope-from ) for ; Thu, 17 Oct 2024 02:06:55 +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 uPvvEB9VEGdVAAAA62LTzQ (envelope-from ) for ; Thu, 17 Oct 2024 02:06:55 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=XsRccEGV; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=5s3YNdbX; 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=1729123615; 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=7rBkaL64NLP2NfAoMcyu3Kplk/lC03cKq3XJCbWsd7E=; b=NuvJ7MdgJ9jkJtETi5ek248BtJKYrDGH0GOhnxUsHxPVRlX1lYcHViWKrhjVkQFoYUbWrA 6v+0bMEBmEMgpPTOh4cMITO8seLFF9e2ZXxzM3JsjpskX0XSwjex8SpWPQDwZZ+zMzNGvB lgepar93Dlaf9jaYsfs2/UUmJwHrmmag5ucq1Tcb1oHEvXtsO6ro8gmo2L+lnrtUr0FY1B GBEwLAdv89ehiiGVPkrRjhWal6WGJVjqfcRqflEh3t9PA1oN4P1XIV6lJFz5vt7KMbvy8l z9n4pA5tw4cuO3uGgNKaJ+cw4yWB/MDICjBYAGlSl2yWPpY6vPfqS8Nwq186PQ== ARC-Seal: i=1; s=key1; d=johnnyrichard.com; t=1729123615; a=rsa-sha256; cv=none; b=PKRwEZbHzvHMNY42XqvdaZJYYAuo7B9bODftfuNe9T7mmHBCYG0SaaPRwIfsu6QWxLBy1k Ns8wCsX3dW/zUlSi1lCFsU1oDsmfudUyCYUbCTNXzt3Cmydj28aBRg1dcXutVBRi6WzYn/ XEoyi8RHuXw/bDGT/CScmeAgFGA8wuboxLfaTaMenzygC5Ml0G5V39v3GTag6JRUwZJI99 0BD3nXA3XGfMJ1AYQ9nsa1mVQkqb3qbIpwlWy+hecrFrdFo4x2KrHZxx5Ky553IofJH7ca MozxwKm28B2c0TEZg6hGIi7yY4SJ0+/u4pDMTKKSj+WaOHJKivacgTVoh72a5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=XsRccEGV; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=5s3YNdbX; 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 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 33A265B151 for ; Thu, 17 Oct 2024 02:06:55 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=QoL6/VV5gEH6oB5w2yQ4KkaLSx2JUmbXMe/sUWEjL5c=; 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=1729123610; v=1; b=XsRccEGVjEPh7/Q7Mg5x0ERzB5yI2kX1ie19fbBOphP/CvausjE8TkGwY3bKXyn46TH2/LCF kpBVNRG3hNShTR/LAu04sn2H1VGhI7Yw+zp8b9aQ3mYWrA/zws5GEPrPlpA9dXz+11dI9cN9e4J GM7O1QXfIsgiMkjMUrP/uc6LrQeJblNIqEMV+PS/rgzhsxaJlB0kb/XHWyXOCUHG74N2Sd1K/u8 7U+egFS5dBQYIbmgPYYZwW9/baMWa5c0lBA6WG+uC1lF2ba4ivhRigxMorl9kgoRbvnYBNkCSy3 uhDLgIr8e7OZHZEHgXWHu38+4wKGBXaXRdVPNJHyLwWiA== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 15D57202B2 for ; Thu, 17 Oct 2024 00:06:50 +0000 (UTC) Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) by mail-a.sr.ht (Postfix) with ESMTPS id 693C320272 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 17 Oct 2024 00:06:49 +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=1729123608; 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=7rBkaL64NLP2NfAoMcyu3Kplk/lC03cKq3XJCbWsd7E=; b=5s3YNdbXdH3utnwolLjJ+qPatYP0U09fYjlhVXaPLWOcoSmHJnzYEZZomq9BblEqivk+kp r7zl3UI8jwOY+oaqw/XF5SFcBmHPCf8cfXcGDfB/pT0KJMK286O0b3gECkxmCM6+X4utB9 uHBez4mtM/eBWmBGTfLJFJbisiitYqV8CqrWLtxiEATdYkJw5OFthLWtMwoQcqk6aky1cH DuII2nuFRMze73vLFWlCbHGmNki5UNsJH+1IeHs3iiEUDGEoiSH9rWiG/W6AJJFrSPBOOR mo+F95FTF88AIj2DvMMuyO+1TjdC9Bwk7BokmkC7TpjvKPuKZVmn7f+1s0pGVg== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v1 0/3] add support to compile extern fn def Date: Thu, 17 Oct 2024 04:04:41 +0200 Message-ID: <20241017020603.551431-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.84 X-Spam-Score: -4.84 X-Migadu-Queue-Id: 33A265B151 X-Migadu-Scanner: mx13.migadu.com X-TUID: XO7kdrIRWFk7 Johnny Richard (3): lexer: spec: add extern keyword for function def parser: support extern function definition codegen: x64: compile extern function definition docs/info/olang.ebnf | 2 +- src/ast.c | 3 ++- src/ast.h | 2 ++ src/checker.c | 4 ++- src/codegen_x86_64.c | 4 +++ src/lexer.c | 5 ++++ src/lexer.h | 1 + src/parser.c | 20 ++++++++++++--- src/pretty_print_ast.c | 14 +++++++---- tests/olc/0037_variable_overflow.ol | 39 +++++++++++++++++++++++++++++ 10 files changed, 83 insertions(+), 11 deletions(-) create mode 100644 tests/olc/0037_variable_overflow.ol base-commit: 160969fc5bd259f1fa2dacd2ba85e366d3b8f5d0 -- 2.46.0