From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <lists@sr.ht>
Received: from mp0.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id YFCoC5Lw92UDKAEAqHPOHw:P1
	(envelope-from <lists@sr.ht>)
	for <patches@johnnyrichard.com>; Mon, 18 Mar 2024 08:43:14 +0100
Received: from aspmx1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp0.migadu.com with LMTPS
	id YFCoC5Lw92UDKAEAqHPOHw
	(envelope-from <lists@sr.ht>)
	for <patches@johnnyrichard.com>; Mon, 18 Mar 2024 08:43:14 +0100
X-Envelope-To: patches@johnnyrichard.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=qikXTs0u;
	dkim=pass header.d=johnnyrichard.com header.s=key1 header.b="F/8NLfgC";
	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=1710747794;
	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=wDbQavtYayQWzEikLkT6ap9u77/JWDdtQGSKTAO1bys=;
	b=tLRPmGkUDyqw6PHSBKeh0fOHu/Ok5v5TgUTUc+hXCCwvkfrBnZ337TA5wbpl6a3odx4sre
	PCrVoJlUssytJYWNkXN5eMHQ8eZ8ZZQ3elNYnHY4XprikAJ2ZsR9GsdxFvjbzyosIuQkkY
	g3f6Yalht+TGDuKa0F2BBWn2VaJv7gWbtZY28FnWrZZYFCjn8Ldm3K3Ts7HkFW569wmQtf
	UlZhGUqgMRxaTzSIyxFga2MPsFs6ffJWdkMf8ip2T2Y+aPEh1v5MXOAVR0gHhK4233eh0C
	G+n/SiMC3xS5ZjD3YcY8bhA9jqp+BVDZrwKNloMkk/EGH+9U/Wo3gq+RjBo4uA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=qikXTs0u;
	dkim=pass header.d=johnnyrichard.com header.s=key1 header.b="F/8NLfgC";
	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=1710747794; a=rsa-sha256;
	cv=none;
	b=4wURcw3Y2dR1YXGKe18JzjPpr2qAefA45XSXZH2P+S1+PTkexOrfj/vZTnzkuCuzjSm/lI
	+4+42DjJ8muN1CobBgazGMAN1rwvuAm6YtIwVi+So4w23QUgRRbJJIu4YUNuecqdd2pKDi
	EEGPiE+2l4LIMWYC72yNxpmGTasoJB3lMAjGEI9coNKgohf1IiIVkJx6wsIZ8S3I0hyGYD
	OQIBhBJhDNHOMJ48rGsiB9sgEOj1N9BSJ0NZl3iHTWV0fiXkVerpKkVG/6Pvy61vvNS9oe
	R2zX6knPfwqwNEYENo2hCwiDucstD3U77A8qpWKpDFYLJvJUhYVJBl9rNdQjeQ==
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 1B7AC19D06
	for <patches@johnnyrichard.com>; Mon, 18 Mar 2024 08:43:11 +0100 (CET)
DKIM-Signature: a=rsa-sha256; bh=KQbJwOsb8fsm3QqWFdtk3rGkc3j3otTgXrqIS7zA/Ss=;
 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=1710747790; v=1;
 b=qikXTs0uE1Yc3c2HBmO5eSyFetK1BHj906c8z/VWg245Jp56lqPVBUJZkSM6TXXaq77w5+/Y
 qkZPhY7PTosll6zvcMTqQgXedMjotji9Bn9nOW+t9tD1MEfU790TcVuKI6LyyUa/tWn5LC8jW5n
 Vr1XGguTjv9ay5BR/NWeU2DNeXAY6pr49ITnY2UBxK5ViI5A9Srjago6+I1CaQyW83Y5bPNzz1U
 QRP/9biy9CCsFLwMGS4GYGPeMI+pKGhQONvdwr7pqDcZRdzf80gI16mufHmvumE0ql6SeYeaTnG
 uEx4FDBEf6+ngUnErHbZjGo9OPL3SnJlhpvNhJViTKNdw==
Received: from lists.sr.ht (unknown [46.23.81.154])
	by mail-a.sr.ht (Postfix) with ESMTPSA id 1E07E20100
	for <patches@johnnyrichard.com>; Mon, 18 Mar 2024 07:43:10 +0000 (UTC)
Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189])
	by mail-a.sr.ht (Postfix) with ESMTPS id 4D84B20082
	for <~johnnyrichard/olang-devel@lists.sr.ht>; Mon, 18 Mar 2024 07:43:09 +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=1710747787;
	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=wDbQavtYayQWzEikLkT6ap9u77/JWDdtQGSKTAO1bys=;
	b=F/8NLfgC8Ak1b621avWizg2YcnzR8QHe1+Q1xfu451LJVd3B81b3lOO4TYIsKNLbV768T+
	fa9EksuznbBWwSi8Dln4HbV5waGOSVw+hcg66RP0XKzy2eSh3A00T4s8yGrqX96bp3cgYa
	rgSTIlxJmdAS7NfOIZLD7iZTXoKqqUYliJf7JhiG0mYB2zxSlf/VfvimBorV/a07CSQ7N3
	f+Mx+0/ruua5Avg5HHn4nCV5eeAs/B69rJn5KboVI0zFQWaSeR5hnj5W9E4IHmMnCcagOE
	xKFtF2qsFM6//7Rjg4LRjL4kA/LUgDLeJNWfNrayI22/NXTE8fYivxJEZb7G7w==
From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v3 0/3] fe: add binary operation expr support
Date: Mon, 18 Mar 2024 09:39:50 +0100
Message-ID: <20240318084254.142417-1-johnny@johnnyrichard.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
List-Unsubscribe: <mailto:~johnnyrichard/olang-devel+unsubscribe@lists.sr.ht?subject=unsubscribe>
List-Subscribe: <mailto:~johnnyrichard/olang-devel+subscribe@lists.sr.ht?subject=subscribe>
List-Archive: <https://lists.sr.ht/~johnnyrichard/olang-devel>
Archived-At: <https://lists.sr.ht/~johnnyrichard/olang-devel/%3C20240318084254.142417-1-johnny%40johnnyrichard.com%3E>
List-Post: <mailto:~johnnyrichard/olang-devel@lists.sr.ht>
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: mx12.migadu.com
X-Migadu-Spam-Score: -9.08
X-Spam-Score: -9.08
X-Migadu-Queue-Id: 1B7AC19D06
X-TUID: t8M/jjtBjCxS

This patchset implements the frontend for parsing binary operation
expressions.  The backend implementation is not implemented on this
patch series.

Johnny Richard (3):
  lexer: add tokenize support to binary op tokens
  ast: create binary operation ast node
  parser: add all binary operation expressions

 examples/expression.ol        |   3 +
 src/ast.c                     |  14 +++
 src/ast.h                     |  34 ++++++
 src/lexer.c                   | 190 ++++++++++++++++++++++++++++++-
 src/lexer.h                   |  29 +++++
 src/parser.c                  | 209 +++++++++++++++++++++++++++++++---
 tests/integration/cli_test.c  |  56 ++++++++-
 tests/integration/proc_exec.h |   3 +-
 8 files changed, 516 insertions(+), 22 deletions(-)
 create mode 100644 examples/expression.ol


base-commit: b34e6e1e8dde2852c2d1b050b6ac882605959180
-- 
2.44.0