Main   Class List   Namespace List   Wiki

Lexical Structure

Comments

Single-line comments start with two forward slashes next to each other.

 // Comment up to next newline.

Multi-line comments start with / * and end with * / (without the spaces between the symbols).

 /* Multi-line
 comment */


Literals

Text

Keywords

The following identifiers are reserved in TorqueScript and cannot be used as names.

 assert
 break
 case
 continue
 datablock
 default
 do
 else
 false
 for
 foreach
 foreach$
 function
 if
 in
 namespace
 new
 NL
 or
 package
 return
 singleton
 SPC
 switch
 switch$
 TAB
 true
 while
 


Copyright © GarageGames, LLC. All Rights Reserved.