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.

CategoryDescriptionEntries
Runtime BlocksTop-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 SectionsTask execution sections, state handlers, implicit loop/sequence bodies, and scheduled timeline buckets.12
HandlersExecutable entries inside timeline buckets and events.8
FieldsNamed configuration values inside their owning runtime block or bucket.15
BlocksOrdinary indentation-based control-flow, iteration, and definition constructs used inside executable DCode bodies.11
StatementsExecutable forms for authority, transitions, timing, no-op behavior, and channel writes.14
DirectivesCompile-time and module-level forms that import code, define parameters, or expand templates.3
SyntaxDCode values, expressions, scope, channel paths, comments, and indentation.9
Context VariablesValues supplied by the engine only in the runtime blocks and handlers where they are meaningful.10
DCode FunctionsFunctions supplied by DARTWIC for channels, prompting, logging, timing, and other runtime behavior.38
Lua BaseLua keywords, literals, base functions, and standard libraries available to DCode scripts.42