5. Embedding and Integration¶
This section explains how to embed the daslang scripting language into a host application written in C++ or C (and, by extension, any language that can call C functions). It is organized from simple to advanced:
Quick Start — minimal host program, compilation, and evaluation
C++ API Reference — modules, function/type/enum bindings, cast infrastructure
C API Reference — the
daslang/c_api/c_api.hheader for C-only hosts and FFIExternal Modules — building and distributing modules outside the main source tree,
.das_moduledescriptors,find_package(DAS)Project Files —
.das_projectfiles for custom module resolution and sandboxingAdvanced Topics — AOT compilation, standalone contexts, class adapters
For step-by-step walk-throughs with complete, compilable source code, see the C++ integration tutorials and C integration tutorials.