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.

CategoryDescriptionEntries
Runtime BlocksTop-level declarations that create engine-managed tasks, calculations, or loops with persistent runtime state.8
Runtime SectionsNamed sections that configure handlers or data inside a compatible runtime block.14
BlocksOrdinary indentation-based control-flow, iteration, and definition constructs used inside executable DCode bodies.12
StatementsExecutable forms for authority, transitions, timing, no-op behavior, and channel writes.13
DirectivesCompile-time and module-level forms that import code, define parameters, or expand templates.3
SyntaxDCode and inherited Lua language rules that shape expressions, channel paths, tables, comments, and indentation.8
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.17
Lua BaseLua keywords, literals, base functions, and standard libraries available to DCode scripts.45
Event MetadataDCode event metadata reference.8