Denoting Variables

A single name can denote a global variable, a local variable, or a formal parameter. Square brackets are used to index a table:

VAR [ EXP ]

The syntax var.NAME is just syntactic sugar for var["NAME"]:

VAR.NAME  <->  VAR [ "NAME" ]

The meaning of assignments and evaluations of global variables and indexed variables can be changed by tag methods.