From 902940401d1c1e657cdaf3e7bae8cbb89d14ffa9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 15 Nov 2026 08:57:03 +0100 Subject: added left shift (^<) and right shift (^>) operators Previously you'd have to write `a * 2^*b` for left shift, which is inefficient and cumbersome. --- doc/sciteco.7.template | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template index b6b0795..7a10f09 100644 --- a/doc/sciteco.7.template +++ b/doc/sciteco.7.template @@ -1129,12 +1129,21 @@ T};\^ Add \fIb\fP to \fIa\fP. T};\^ = -\fIa\fB & \fIb\fP;T{ -.SCITECO_TOPIC & and ampersand -Binary AND. +\fIa\fB ^< \fIb\fB;T{ +.SCITECO_TOPIC ^< "left shift" +Left shift \fIa\fP by \fIb\fP bits. T};T{ integers T} +\fIa\fB ^> \fIb\fB;T{ +.SCITECO_TOPIC ^> "right shift" +Right shift \fIa\fP by \fIb\fP bits. +T};\^ += +\fIa\fB & \fIb\fP;T{ +.SCITECO_TOPIC & and ampersand +Binary AND. +T};\^ = \fIa\fB ^# \fIb\fP;T{ .SCITECO_TOPIC ^# xor -- cgit v1.2.3