Lexical Conventions
Comments
Single-line comments start with
//
:
Identifiers
Must start with a letter (
a-z
,A-Z
) or underscore (_
).Can contain letters, digits (
0-9
), and underscores.Case-sensitive.
Examples:
Keywords
The following keywords are reserved and cannot be used as identifiers:
Literals
Integer Literals: Numeric values without decimal points.
String Literals: Text enclosed in double quotes.
Last updated