Function: parseExpression()
function parseExpression(src, opts?): Ast;
Defined in: packages/core/src/expr/parser.ts:412
Parses REL source into a frozen AST.
Parameters
| Parameter | Type |
|---|---|
src | string |
opts? | { cache?: boolean; } |
opts.cache? | boolean |
Returns
Throws
RasdError RASD_EXPR_PARSE with details: { source, offset, expected? }.
Results are memoised by source string (opts.cache, default true). The map
is bounded at 2,000 entries with FIFO eviction — a plain LRU would need a
touch on every read, and REL sources are short-lived per form anyway.