StardustPL / Stardust

"A programming language that doesn't make me angry to use it."
https://StardustPL.GitHub.IO/
The Unlicense
4 stars 0 forks source link

Planning: Identifiers #8

Open LB-- opened 9 years ago

LB-- commented 9 years ago

Identifiers are as in many other languages.

Identifiers must have at least one valid character in their name.

The following characters (primary set) may appear anywhere within an identifier: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^&*_-+=<>/|

The following characters (secondary set) may only appear in an identifier if one of the above characters (from the primary set) is also in the identifier: 0123456789

Any other non-whitespace characters not in the following list or secondary set may be considered to also be in the primary set: `(){}[]:;"',.``

LB-- commented 9 years ago

Identifier literals may be used to treat an identifier as an object rather than an identifier. The identifier must be enclosed between backticks:

`identifier`

Identifier objects can only be constructed at compile time, not runtime. This is for security reasons and optimization purposes.

LB-- commented 8 years ago

http://www.unicode.org/reports/tr31/