Recent Changes - Search:

* PCAN

* Phix

edit SideBar

Declarations

Index | Core Language | Declarations

Declarations

Variable names and other user-defined symbols are known as identifiers, which may be of any length, with upper and lower case being distinct. Identifiers must start with a letter and then be followed by letters, digits or underscores. All unicode characters may be used, as long as your editor saves the source files as utf-8 - note however that all non-ascii characters are treated as letters, including a few that might look rather similar to operators, and even some numbers. The following reserved words have special meaning in Phix and may not be used as identifiers: **<font color="#008080">

    and             or              not             xor
    break           continue        exit            fallthru
    case            default                         fallthrough
    constant        enum            include         iff             
    catch           try                             iif<small><sup>*</sup></small>
    do              while           switch          public
    forward         global          export          private
    for             by              to              end             
    if              then            elsif           else
    function        procedure       type            return          
    ifdef           elsifdef        elsedef</font><font color="#2C5C2C">
    with            without</font>
  • Edita displays these words in teal (easily changed in Options/Colours).

(* iif is a simple alias of iff, and included for compatibility reasons only)

Identifiers can be used in naming the following:

< Precedence Chart | Index | Procedures >

Edit - History - Print - Recent Changes - Search
Page last modified on April 18, 2026, at 04:25 PM