SNOBOL4OP(1)

πŸ“¦
version 2.3.1 Β· 3 versions
, in fedora 43, fedora 44, opensuse-leap 16.0

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