Operators

Display

Description

Types

Example

+

Addition

Numeric

+ a 48

-

Subtraction

 

 

*

Multiplication

 

 

/

Division

 

 

%

Modulus

Integer

% num 10

-

Negation

Numeric

- count

+

Concatenation

char

+ s1 s2

==

Equals

boolean

== x y

<> 

Not Equal

 

 

Less Than

 

 

Greater Than

 

 

<=

Less Than or Equal To

 

 

>=

Greater Than or Equal To

 

 

=

Assignment

All

= x expr1

not

Not

boolean, Integer

not flag

and

And

 

and p q

or

Or

 

 

xor

Exclusive Or

 

 

:

Get Array Element

All, Integer

: arr 8

:=

Set Array Element

 

:= arr 14 expr

..

Dot Operator

Object

.. obj fld

?

If-Then

boolean, All

? flag x y

<< 

Left Shift

Integer

<< n 3

>> 

Right Shift

 

 

+

Union

set

 

-

Difference

 

 

*

Intersection

 

 

<=

Inclusion

 

 

in

Membership

 

 

++

Increment

Integer

++ count

--

Decrement

 

-- count

new

New Object

Object

new obj

atomic

Is an Atom

All

atomic q

pchild

Get Child from Qnode

 

pchild q

pnext

Get Next from Qnode

 

pnext q

cons

Construct Qnode

 

cons p q