SNOBOL4OP(1)
SNOBOL4OP(1) π
okay bestie, this is the CSNOBOL4 Manual page for SNOBOL4OP(1), and it's literally all about SNOBOL4 operators. no cap. π«Ά
β¨ NAME β¨
snobol4op β SNOBOL4 operators
π¦ DESCRIPTION π¦
okay so listen: all SNOBOL4 operators can be redefined with OPSYN(). these are the default assignments. periodt. π
The following operator character sequences are permitted and represent a cross between PDP-10 Macro SNOBOL4, SITBOL and Catspaw SPITBOL usage:
π Binary Operators π
List of Binary Operators, in decreasing order of precedence. When operators of equal precedence are adjacent, associativity determines order of evaluation.
SPITBOL and BLOCKS extensions control operator definitions are orthogonal and can be controlled separately.
the columns are Char, Defn., Assoc., and Enabled:
- Char:
= _β Defn.: assignment β Assoc.:RIGHTβ Enabled:w/ SPITBOL - Char:
?β Defn.: pattern match β Assoc.:LEFTβ Enabled:w/ SPITBOL - Char:
&β Defn.: definable β Assoc.:LEFT - Char:
|β Defn.: alternation β Assoc.:LEFT - Char:
#β Defn.: normal concat β Assoc.:LEFTβ Enabled:w/ BLOCKS - Char:
%β Defn.: vertical concat β Assoc.:LEFTβ Enabled:w/ BLOCKS - Char:
spβ Defn.: concatenation β Assoc.:LEFT - Char:
@β Defn.: definable β Assoc.:LEFT - Char:
- +β Defn.: subtract, add β Assoc.:LEFT - Char:
#β Defn.: definable β Assoc.:LEFTβ Enabled:w/o BLOCKS - Char:
*β Defn.: multiplication β Assoc.:LEFT - Char:
%β Defn.: definable β Assoc.:LEFTβ Enabled:w/o BLOCKS - Char:
?β Defn.: definable β Assoc.:LEFTβ Enabled:w/o SPITBOL - Char:
/β Defn.: division β Assoc.:LEFT - Char:
^ **β Defn.: exponentiation β Assoc.:RIGHT - Char:
$ .β Defn.: match naming β Assoc.:LEFT - Char:
~β Defn.: definable β Assoc.:RIGHT
β¨ Unary Operators β¨
the columns are Char and Defn.:
- Char:
\β Defn.: negation - Char:
?β Defn.: interrogation - Char:
$β Defn.: indirect reference - Char:
.β Defn.: none - Char:
!β Defn.: none - Char:
%β Defn.: none - Char:
*β Defn.: unevaluated expression - Char:
/β Defn.: none - Char:
#β Defn.: none - Char:
+β Defn.: positive - Char:
-β Defn.: negative - Char:
@β Defn.: cursor position assignment - Char:
|β Defn.: none - Char:
&β Defn.: keyword
π SEE ALSO π
xoxo bestie π β source/version: CSNOBOL4B 2.3.1 β date: March 31, 2022 β page: SNOBOL4OP(1) β¨
π¦ where this page comes from
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms