|
||||||||||||
|
|
||||||||||||
Identifiers and keywords
Identifiers are sequences of alphanumeric characters, including
the underscore ( Some identifiers are called reserved words, which have special meanings. Keywords are:
as assert boolean break
case catch class classof
const copyof cloneof continue
default defined delete do
else extends exit false
finally float foreach for
function if implements import
in inf interface int
is has module namespace
new null println printbr
print return sizeof string
static super switch synchronized
this throw true try
typeof undefined var while
yield
Although keywords cannot be used as ordinary identifiers, they
can be escaped with the dollar sign ( Constant keywordsSome of the keywords represent constant values rather than language constructs. These are: true false null undefined inf Type keywordsSome of the keywords map into types found in anvil.lang These are: string int float Examples: $if = 1; $for = 10;
See also
| Lexical analysis
| Identifiers
| Attributes
| Calls
| Break
| Continue
| Continue .. case
| Import
| Classes
| Interfaces
| Functions and methods
| Modules
| New operator
| Has operator
| Statement labels
| Inline functions
| Method invokes
| Grammar
| Constants
| Variables
| Namespaces
|
||||||||||||
|
|
||||||||||||