Sage
Tusk Language
Welcome to Sage
Volume (89%) Hide Volume
Topics
Var Declaration
flowchart LR
  Start[Start]
  Stop[Stop]
  Start --> Var([<tt>var</tt>])
  Var --> Ident([<a href="Identifier">Identifier</a>])
  Start -- &nbsp;(1)&nbsp; --> VarQ([<tt>var?</tt>])
  VarQ --> Ident
  Ident  -- &nbsp;(2)&nbsp; --> Comma([<tt>,</tt>])
  Ident --> Colon([<tt>:</tt>])
  Comma--> Ident
  Comma -- &nbsp;(3)&nbsp; --> Colon
  Type --> Equals([<tt>:=</tt>])
  Comma -- &nbsp;(3) (4)&nbsp; --> Equals
  Colon --> Type([<a href="DataType">Data Type</a>])
  Type --> Semi([<tt>;</tt>])
  Ident -- &nbsp;(4)&nbsp; --> Equals
  Equals --> Init([<a href="Expression">Expression</a>])
  Init --> Semi
  Semi -- &nbsp;(5)&nbsp; --> Ident
  Semi --> Stop

  style Start fill:#44E
  style Stop fill:#E44

Note (1)

Optional declarations are not allowed in Delphi Mode.


Note (2)

Multiple initialized identifiers, separated by ,, are not allowed.


Note (3)

Trailing commas are not allowed in Delphi Mode.


Note (4)

Initializers in local var blocks are not allowed in Delphi Mode.


Note (5)

Multiple declarations, delimited by ;, are only allowed in local var / var? blocks (in a routine, before the begin / end block).


Last Modified: 2/15 10:06:11 am
2/15 10:06:11 am