1.51. Identifiers

Felix identifiers consists of a string of characters. The first character must be a letter or underscore, subsequent characters may be one of a letter, underscore, apostrophe or digit.

Certain identifiers are reserved as keywords. Identifiers beginning with an underscore are reserved to Felix. Identifiers containing more than one underscore in a row are reserved to Felix. Reserved identifiers may be used by programmers, but not defined.

The letters referred to consist of the usual A-Z and a-z, but also include any Unicode/ISO10646 code point recommended as a letter for the purpose of use in identifiers of programming languages by ISO/IEC PDTR 10176, as adopted by ISO C++. A full table can be found in the reference manual, Felix Standard, and source code.

These code points must be represented using UTF-8, or by embedded Universal Character Names (ucns). These consist of a \uXXXX or \UXXXXXXXX where the X's are hex digits. Felix normalises all such encodings so identifiers match properly.

Start felix section to tut/examples/tut_beg161.flx[1 /1 ]
     1: #line 2819 "./lpsrc/flx_tutorial.pak"
     2: #import <flx.flxh>
     3: 
     4: val x_y_7' = 1;
     5: val Y_can't_U_do_this_in_C'' : double = 2.0;
     6: val x\u05d0= 1; // x,Hebrew  aleph
     7: val zz = x\U000005D0; // x,Hebrew aleph
     8: 
End felix section to tut/examples/tut_beg161.flx[1]