| OCR Text |
Show *;!':■;>>■ ^J 23 The Expression: A. Presentation of Operators Syntax <expression>i:*{<fekpressiön><binary>}<unexp> <unexp> i:«<unary op><unexp>I<primary> <unary op> : t* Heaa j Tail | type j | | sin | COB | • ••• |com | scribe |... <binary op> :•,= * \ * \ / \ // \ mod \ + \ ~ \ * \ ? \ < \ ■ > I < I > I A 1 V iV| S | ^| of | is |...| <user binary ops>| ••• j #... ö ••• ____„„ ___. _ _ A ^~ "Uinary opV»>pu.nexp ]■ primary J Note: Binary operators are given in order of precedence. Unary operators associate from the right. Semantics. All operators generalize whenever possible to arrays and lists. a. Unary Operators Operator Meaning logical negation unary minus floor x: integer part of x ceil x: if_ floor x=x then x else floor x+1 |