From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 CFT3OIoXEGcAJgAAe85BDQ:P1 (envelope-from ) for ; Wed, 16 Oct 2024 21:44:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id CFT3OIoXEGcAJgAAe85BDQ (envelope-from ) for ; Wed, 16 Oct 2024 21:44:11 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=VFJniycS; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=s6C6Qb7t; 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=1729107850; 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=DUo69Ef+sL9VFtSB7yUiJ5CPGGfs/2xa4a+gVBVw20Q=; b=TRSLRi7GKi61/zsQGiaPSf5xV1UzWQNOqpV61rZoXOrJ7TwGtdwNdq7mZ2RekK0tLCJfWO UtfRGLLabNeJ5y/i0WP2tbqXCvsrUr8kAbJgL8TGPgth2u3YUqm1Y7j5EarvJ735BlbK9s 4syAXGsYc0DextBZjIHSk9VoPAYCWYLzEyWZGbst/o0/y2bM0ostXS59PPDe/yBEc4KhNW aqnwDoWEoJ7zdIegjwYRERMDZMFIS2oTLY0UAoeGsUJEDR4m27IeJywLiLtUxaGmpe4/0+ vNE38wwW6Mr+ak4Mca+2zXTO/VF8Tva/vsI9G5NSyhevmWuy4LfPP+jiLBVA9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=VFJniycS; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=s6C6Qb7t; 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=1729107850; a=rsa-sha256; cv=none; b=bL2m/H/d5Q5IJHjCY7uYR2C/pWu15UiLJTRzp+y2Z9HGb315zZ7H4FT+B1tY9RKLP6Vjm4 HgRZ82BVfkbqauYLmYt9K2K/hYv23fTvPit+W4uMa7++GxIj6Z0hqPgyZJeA24kgaSmh/5 j4g0/SoEDb5IOFayPXHY58aB/tXXm3dScu9deXRk/n5/Sy58UfKbmDF2RhHBgUBnp5RnXv asQDmN9jTA0nBdfDwjV6locYVLouKrQOCPwBcgVE1TDn6rxSWrw5PYhC0+cj4gvZ4ETS7d m5FsN21bx3QHETLDhdGNkXOkW1lfjU2JYKKQz7PDxQm2+i/Dy/Qw2eBIJzyT5g== 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 823457E3ED for ; Wed, 16 Oct 2024 21:44:10 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=tbjruFUf3HLiq18II6N1GkjMIejp5+MioUPbeUpDvrM=; 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=1729107849; v=1; b=VFJniycSb3Bnf4nU3SjJqZ35V+ywFU4bsq+ma0QbdqtlRMyzPowGNmWJOpQsuiK7fHYU9X9e 7jm0HOvaz4LixQBJ5w02CwCD8K54dxmZDRwHxqCHWCoD/jKwMW+/TJowoKMFQN5EulhMuzK17QS GnTSysjNdFhALa0DjSSwKcVZBlG4TjR0mf1RktdMJoOln8dmbB3ePV5pKfE1sajP770uUY3Uj46 VGmqYCZXj5oHKFi54oK4HP1Hlb8PRKyiZATL+tivkwzA2B2qnwYT65slULzcp1wBNRwlPSr7j0l WnLlMx2HzO8/0I0uGTeWRG/NF28wjJRJiyLW9vQimfOrg== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id DA14320299 for ; Wed, 16 Oct 2024 19:44:09 +0000 (UTC) Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) by mail-a.sr.ht (Postfix) with ESMTPS id 223D020291 for <~johnnyrichard/olang-devel@lists.sr.ht>; Wed, 16 Oct 2024 19:44: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=1729107848; 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=DUo69Ef+sL9VFtSB7yUiJ5CPGGfs/2xa4a+gVBVw20Q=; b=s6C6Qb7t5WN/9XXnVD/yX2wLsvaKxKb3GxbxkSx0xqv77G4KNV8ItedmGPKUB0Q+1l+j3s lnckXB6B65+WsP2HkwokwsU9ysjgPRJyrw4Ol926wdLbopdwKmbhvdTdzm73XGqJh+uQYR PPyi0jOHWcX+zCD/WKg15SsWJGczpRYox950E8sXAMdGeto5yBthH1UhKjyyixZ90+0uFR 4c60qi8Fresw2CiIhVoD84FmNUltvA4UENKnCKggWJp9UNstK1XFmPrtH0PbQ8J4YJ2VE6 ds3xbni2eB0yENwwXC1+7s9Rs/20kjsRyNi5xiwase3QM7z4HHOU1gpG+k6haA== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v2] docs: info: add while-loop to getting started Date: Wed, 16 Oct 2024 23:43:24 +0200 Message-ID: <20241016214328.395001-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Sourcehut-Patchset-Status: PROPOSED 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.57 X-Spam-Score: -1.57 X-Migadu-Queue-Id: 823457E3ED X-TUID: P9qOf91MKXNr Signed-off-by: Johnny Richard --- docs/info/getting-started.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/info/getting-started.texi b/docs/info/getting-started.texi index a68f5b1..42b1438 100644 --- a/docs/info/getting-started.texi +++ b/docs/info/getting-started.texi @@ -68,6 +68,8 @@ var answer: u32 = 42 Any non zero expr is true. +@subsection If-Else + @verbatim if expr { # statement @@ -78,6 +80,14 @@ if expr { } @end verbatim +@subsection While loop + +@verbatim +while expr { + # statement +} +@end verbatim + @section Primitive data types @table @samp base-commit: cf5e4abf07a38f0ddf3ac6979b01b942ab99a691 -- 2.46.0