|
Enzo
|
A compiled daslang program ready to run. More...
#include <DasRuntime.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| bool | evalFloat (const String &functionName, const ExpressionContext *context, floatT &result, String &error) |
| Evaluates an exported function as a float. | |
| bool | evalInt (const String &functionName, const ExpressionContext *context, intT &result, String &error) |
| Evaluates an exported function as an integer. | |
| bool | evalString (const String &functionName, const ExpressionContext *context, String &result, String &error) |
| Evaluates an exported function as a string. | |
Friends | |
| class | DasRuntime |
A compiled daslang program ready to run.
Reused across many evaluations so the cost of compiling is paid once. Each eval helper runs an exported function by name and returns its result.
Example
| bool enzo::expr::CompiledScript::evalFloat | ( | const String & | functionName, |
| const ExpressionContext * | context, | ||
| floatT & | result, | ||
| String & | error ) |
Evaluates an exported function as a float.
| bool enzo::expr::CompiledScript::evalInt | ( | const String & | functionName, |
| const ExpressionContext * | context, | ||
| intT & | result, | ||
| String & | error ) |
Evaluates an exported function as an integer.
| bool enzo::expr::CompiledScript::evalString | ( | const String & | functionName, |
| const ExpressionContext * | context, | ||
| String & | result, | ||
| String & | error ) |
Evaluates an exported function as a string.