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. Entries call out Native C++ restrictions where behavior differs; Lua library entries are not automatically native bindings. The syntax and examples describe the shared language or the Lua form unless the backend note narrows them. See Native C++ Execution for build requirements, supported constructs, and fixed-channel verification.
| Category | Description | Entries |
|---|---|---|
| Runtime Blocks | Top-level declarations that create engine-managed tasks, calculations, or loops with persistent runtime state. | 8 |
| Runtime Sections | Named sections that configure handlers or data inside a compatible runtime block. | 14 |
| Blocks | Ordinary indentation-based control-flow, iteration, and definition constructs used inside executable DCode bodies. | 12 |
| Statements | Executable forms for authority, transitions, timing, no-op behavior, and channel writes. | 13 |
| Directives | Compile-time and module-level forms that import code, define parameters, or expand templates. | 3 |
| Syntax | DCode and inherited Lua language rules that shape expressions, channel paths, tables, comments, and indentation. | 8 |
| 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. | 17 |
| Lua Base | Lua keywords, literals, base functions, and standard libraries available to DCode scripts. | 45 |
| Event Metadata | DCode event metadata reference. | 8 |