1SNOBOL4OP(1)                    CSNOBOL4 Manual                   SNOBOL4OP(1)
2
3
4

NAME

6       snobol4op - SNOBOL4 operators
7

DESCRIPTION

9       All SNOBOL4 operators can be redefined with OPSYN().  These are the
10       default assignments.
11
12       The following operator character sequences are permitted and represent
13       a cross between PDP-10 Macro SNOBOL4, SITBOL and Catspaw SPITBOL usage:
14
15   Binary Operators
16       List of Binary Operators, in decreasing order of precedence.  When
17       operators of equal precedence are adjacent, associativity determines
18       order of evaluation.
19
20       SPITBOL and BLOCKS extensions control operator definitions are
21       orthogonal and can be controlled separately.
22
23       Char      Defn.               Assoc.    Enabled
24       = _       assignment          RIGHT     w/ SPITBOL
25       ?         pattern match       LEFT      w/ SPITBOL
26       &         definable           LEFT
27       |         alternation         LEFT
28       #         normal concat       LEFT      w/ BLOCKS
29       %         vertical concat     LEFT      w/ BLOCKS
30       sp        concatenation       LEFT
31       @         definable           LEFT
32       - +       subtract, add       LEFT
33       #         definable           LEFT      w/o BLOCKS
34       *         multiplication      LEFT
35       %         definable           LEFT      w/o BLOCKS
36       ?         definable           LEFT      w/o SPITBOL
37       /         division            LEFT
38       ^ **      exponentiation      RIGHT
39       $ .       match naming        LEFT
40       ~         definable           RIGHT
41
42   Unary Operators
43       Char      Defn.
44       \         negation
45       ?         interrogation
46       $         indirect reference
47       .         none
48       !         none
49       %         none
50       *         unevaluated expression
51       /         none
52       #         none
53       +         positive
54       -         negative
55       @         cursor position assignment
56       |         none
57       &         keyword
58

SEE ALSO

60       snobol4(1)
61
62
63
64CSNOBOL4B 2.3.1                 March 31, 2022                    SNOBOL4OP(1)
Impressum