Reference
This section contains the language reference documentation for DLiteScript.
Syntax
DLiteScript syntax reference covering identifiers, reserved keywords, literals, arithmetic and logical operators, comments, and code structure with examples.Arrays
DLiteScript arrays including creation, indexing, modification, iteration, spread operator, and built-in array functions for common operations with examples.Comments
DLiteScript comment syntax including single-line and inline comments. Best practices for documenting your code effectively with examples.Control Flow
DLiteScript control flow including if-else statements, for loops, range loops, break and continue statements. Program flow control with examples.Functions
DLiteScript functions including declarations, parameters, return values, variadic functions, recursion, scoping, and function calls with examples.Imports
DLiteScript import system and module organization. Learn how to import files, use aliases, handle paths, and organize code with examples.Operators
DLiteScript operators including arithmetic, comparison, logical, assignment, and special operators like spread and index operators with examples.Types
DLiteScript data types including number, string, bool, arrays, any, error, and null. Learn static typing and type conversion with examples.Variables and Constants
DLiteScript variable and constant declarations including syntax, scoping rules, type annotations, shadowing, and naming conventions with examples.