DCode
Covers Engine 2.0.0
DCode Reference
Shared language reference for DCode with Lua and Native C++ execution.
Use the DCode guides for tutorials and examples, or choose a category below when you already know what you need.
Lua and Native C++ use this single feature catalog. Values and Scope defines shared arrays, objects, expressions and variable rules. Lua Base entries describe legacy Lua APIs and may remain Lua-specific; each Native C++ note identifies a backend limitation. See Native C++ Execution for build requirements and fixed-channel verification.
| Category | Description | Entries |
|---|---|---|
| Runtime Blocks | Top-level declarations for tasks, loops, calculations, events, task groups, and callbacks. Scheduled blocks retain runtime state; callbacks use a separate function scope per invocation. | 9 |
| Runtime Sections | Task execution sections, state handlers, implicit loop/sequence bodies, and scheduled timeline buckets. | 12 |
| Handlers | Executable entries inside timeline buckets and events. | 8 |
| Fields | Named configuration values inside their owning runtime block or bucket. | 15 |
| Blocks | Ordinary indentation-based control-flow, iteration, and definition constructs used inside executable DCode bodies. | 11 |
| Statements | Executable forms for authority, transitions, timing, no-op behavior, and channel writes. | 14 |
| Directives | Compile-time and module-level forms that import code, define parameters, or expand templates. | 3 |
| Syntax | DCode values, expressions, scope, channel paths, comments, and indentation. | 9 |
| Context Variables | Values supplied by the engine only in the runtime blocks and handlers where they are meaningful. | 10 |
| DCode Functions | Functions supplied by DARTWIC for channels, prompting, logging, timing, and other runtime behavior. | 38 |
| Lua Base | Lua keywords, literals, base functions, and standard libraries available to DCode scripts. | 42 |