Sage
Tusk Language
Welcome to Sage
Volume (45%) Hide Volume
Topics
Identifiers
Tusk follows the same rules for identifiers as Delphi: identifiers begin with a letter or underscore, after which may follow letters, digits, and underscores.

Case Sensitivity

Tusk is not case sensitive, so tusk, Tusk, and TUSK are all the same identifier.

Keywords

Tusk has many keywords, listed here, which may be used as identifiers in three contexts…

  • A keyword may be used as the right-hand operand of the dot operator, for example:

    Bag.Unit := 'km';

  • A keyword may be used as a property name in an object literal

    var Bag := { Amount = 100, Unit = 'km' };

  • To use a keyword as an identifier, escape it with an ampersand character…

    var &File := '<' + &Label + '>';

Diagram

Syntax Diagram

Identifiers


Last Modified: 2/15 10:06:11 am
In this article (top)  View article's Sage markup
2/15 10:06:11 am