Keywords

and         as          break       case        class       const  
continue    default     do          else        false       for    
from        function    if          import      in          is     
nil         not         operator    or          return      self   
static      super       switch      true        var         while  

Comments

Line comments start with // and end at the end of the line:

// This is a comment

Block comments start with /* and end with */. They can span multiple lines:

/*  This
    is
    a
    multi-line
    comment 
*/
precoperatordescriptionassociates
1. ()Grouping, callsLeft
2[]SubscriptLeft
3not ! ~Negate, Not, ComplementRight
4**PowerLeft
5* / %Multiply, Divide, ModuloLeft
6+ -Add, SubtractLeft
7..RangeLeft
8<< >>Left shift, Right shiftLeft
9&Bitwise andLeft
10^Bitwise xorLeft
11|Bitwise orLeft
12< > <= >=ComparisonLeft
13isType testLeft
14== !=Equals, not equalLeft
15andLogical andLeft
16orLogical orLeft
17=AssignmentRight