Enzo
Loading...
Searching...
No Matches
enzo::expr::DasRuntime Class Reference

Shared host for the daslang runtime. More...

#include <DasRuntime.h>

Public Member Functions

std::shared_ptr< CompiledScriptcompile (const String &name, const String &source, String &error)
 Compiles source text into a reusable script.
 
 DasRuntime (const DasRuntime &)=delete
 
DasRuntimeoperator= (const DasRuntime &)=delete
 

Static Public Member Functions

static DasRuntimeinstance ()
 

Detailed Description

Shared host for the daslang runtime.

Owns the one time setup of the daslang module system and turns source text into reusable compiled scripts.

Note
Every daslang consumer builds on this rather than touching daslang directly, so parameter expressions today and geometry script nodes later share one runtime and one place that knows how to compile.

Member Function Documentation

◆ compile()

std::shared_ptr< CompiledScript > enzo::expr::DasRuntime::compile ( const String & name,
const String & source,
String & error )

Compiles source text into a reusable script.

Returns
The compiled script, or null when compilation fails.
Note
On failure the daslang diagnostics are written to error.

The documentation for this class was generated from the following files: