a reactive (signals based) hypermedia web framework (wip)
stormlightlabs.github.io/volt/
hypermedia
frontend
signals
1---
2version: 1.0
3updated: 2025-10-18
4---
5
6# evaluator
7
8Safe expression evaluation with operators support
9
10Implements a recursive descent parser for expressions without using eval()
11
12## isSignal
13
14```typescript
15export function isSignal(value: unknown): value is Dep
16```
17
18## evaluate
19
20Evaluate an expression against a scope object.
21
22Supports literals, property access, operators, and member access.
23
24```typescript
25export function evaluate(expr: string, scope: Scope): unknown
26```
27
28## extractDependencies
29
30Extract all signal dependencies from an expression by finding identifiers
31that correspond to signals in the scope.
32
33```typescript
34export function extractDependencies(expr: string, scope: Scope): Array<Dep>
35```